aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules
diff options
context:
space:
mode:
authorThomas Langer <tlanger@maxlinear.com>2022-07-29 18:36:01 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-05 22:55:37 +0100
commit3ca45248fd9bf5b52dc2bd03a4c18ce1795bf1dd (patch)
tree8eec5407ab90ac2688cecbd71b2d6b1b04498612 /package/kernel/linux/modules
parent7ee55d82fc521fb89dc05ea830f3c85f3d07a7ba (diff)
downloadupstream-3ca45248fd9bf5b52dc2bd03a4c18ce1795bf1dd.tar.gz
upstream-3ca45248fd9bf5b52dc2bd03a4c18ce1795bf1dd.tar.bz2
upstream-3ca45248fd9bf5b52dc2bd03a4c18ce1795bf1dd.zip
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@maxlinear.com> Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com> (cherry picked from commit aba1bdaed8cb612d4a4d9e8bba2dc963d6ceca76)
Diffstat (limited to 'package/kernel/linux/modules')
-rw-r--r--package/kernel/linux/modules/netsupport.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 2eeec94230..399cf5bd92 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