[PATCH 4/5] kernel: netsupport: Add kmod-sched-act-sample

Hauke Mehrtens hmehrtens at maxlinear.com
Mon Jul 18 08:01:20 PDT 2022


From: Thomas Langer <tlanger at maxlinear.com>

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

Signed-off-by: Thomas Langer <tlanger at maxlinear.com>
Signed-off-by: Hauke Mehrtens <hmehrtens at 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)
+endef
+
+define KernelPackage/sched-act-sample/description
+ Packet sampling tc action.
+endef
+
+$(eval $(call KernelPackage,sched-act-sample))
+
+
 define KernelPackage/sched-act-vlan
   SUBMENU:=$(NETWORK_SUPPORT_MENU)
   TITLE:=Traffic VLAN manipulation
-- 
2.17.1




More information about the openwrt-devel mailing list