Hi,

On 18/07/2022 17:01, Hauke Mehrtens wrote:
From: Thomas Langer <tlan...@maxlinear.com>

This adds the act_sample.ko and psample.ko kernel module which allows
traffic sampling.

Signed-off-by: Thomas Langer <tlan...@maxlinear.com>
Signed-off-by: Hauke Mehrtens <hmehrt...@maxlinear.com>
---
  package/kernel/linux/modules/netsupport.mk | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

diff --git a/package/kernel/linux/modules/netsupport.mk 
b/package/kernel/linux/modules/netsupport.mk
index 40d304c52f..54c8d2dacd 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -855,6 +855,24 @@ endef
  $(eval $(call KernelPackage,sched-flower))
+define KernelPackage/sched-act-sample
+  SUBMENU:=$(NETWORK_SUPPORT_MENU)
+  TITLE:=Traffic Sampling
+  DEPENDS:=+kmod-sched-core
+  KCONFIG:=CONFIG_NET_ACT_SAMPLE CONFIG_PSAMPLE
+  FILES:= \
+       $(LINUX_DIR)/net/sched/act_sample.ko \
+       $(LINUX_DIR)/net/psample/psample.ko
+  AUTOLOAD:=$(call AutoProbe, psample act_sample)

We generally try to maintain alphabetical order in lists, so please order paths and module names alphabetically.

Thanks,
Stijn



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to