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, 5 Nov 2022 21:55:37 +0000 (22:55 +0100)
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)

package/kernel/linux/modules/netsupport.mk

index 2eeec94230ba63778b13e51e01f6579a77cc6f3f..399cf5bd922ebebce0958d528e37c0a8e6dcc459 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