[openwrt/openwrt] kernel: netsupport: Add kmod-sched-act-sample

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 6 13:44:01 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/aba1bdaed8cb612d4a4d9e8bba2dc963d6ceca76

commit aba1bdaed8cb612d4a4d9e8bba2dc963d6ceca76
Author: Thomas Langer <tlanger at maxlinear.com>
AuthorDate: Fri Jul 29 18:36:01 2022 +0200

    kernel: netsupport: Add kmod-sched-act-sample
    
    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 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 8b984ec17f..74af7a9e41 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -775,6 +775,26 @@ endef
 $(eval $(call KernelPackage,sched-core))
 
 
+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/psample/psample.ko \
+	$(LINUX_DIR)/net/sched/act_sample.ko
+  AUTOLOAD:=$(call AutoProbe,act_sample psample)
+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




More information about the lede-commits mailing list