Skip to content

Commit feb786b

Browse files
Rakesh Dattalguohan
authored andcommitted
Add psample and act_sample drivers (#94)
What I did Backport psample and act_sample drivers to sonic linux kernel 4.9. How I did it Both psample and act_sample are needed for sflow feature. psample driver is needed for collecting samples from the interfaces at the kernel level. act_sample driver is needed for the 'tc' command to be able to program the sampling configurations into the interfaces at the kernel level. psample and act_sample drivers are not back-ported yet to the linux kernel version that sonic-linux-kernel is using. Hence, I have taken the patches for both the drivers and included it in our sonic kernel. Signed-off-by: Rakesh Datta <[email protected]>
1 parent 15f8651 commit feb786b

4 files changed

+1025
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From: Rakesh Datta <[email protected]>
2+
Date: Thu, 27 Jun 2019 11:07:08 +0100
3+
Subject: [PATCH] net: Introduce psample and sample modules - adding the below config:
4+
5+
CONFIG_PSAMPLE=m
6+
CONFIG_NET_ACT_SAMPLE=m
7+
8+
Signed-off-by: Rakesh Datta <[email protected]>
9+
---
10+
debian/build/build_amd64_none_amd64/.config | 2 +
11+
1 file changed, 2 insertion(+)
12+
13+
diff --git a/debian/build/build_amd64_none_amd64/.config b/debian/build/build_amd64_none_amd64/.config
14+
index db2a5c1..9851a0c 100644
15+
--- a/debian/build/build_amd64_none_amd64/.config
16+
+++ b/debian/build/build_amd64_none_amd64/.config
17+
@@ -47,6 +47,8 @@ CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
18+
CONFIG_IRQ_WORK=y
19+
CONFIG_BUILDTIME_EXTABLE_SORT=y
20+
CONFIG_THREAD_INFO_IN_TASK=y
21+
+CONFIG_PSAMPLE=m
22+
+CONFIG_NET_ACT_SAMPLE=m
23+
24+
#
25+
# General setup
26+
--
27+
2.7.4

0 commit comments

Comments
 (0)