kernel: netsupport: Add kmod-sched-act-sample
authorThomas Langer <tlanger@maxlinear.com>
Fri, 29 Jul 2022 16:36:01 +0000 (18:36 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 6 Aug 2022 19:32:35 +0000 (21:32 +0200)
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>
package/kernel/linux/modules/netsupport.mk

index 8b984ec17fcc50970e8e45420a8c4b3a8ad95ad3..74af7a9e411de4b216c6b234c5e59a61b42a55c2 100644 (file)
@@ -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