Skip to content

Commit b70f1f3

Browse files
Keara Leibovitzdavem330
authored andcommitted
tc: Update README and add config
Updated README. Added config file that contains the minimum required features enabled to run the tests currently present in the kernel. This must be updated when new unittests are created and require their own modules. Signed-off-by: Keara Leibovitz <kleib@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3305f9a commit b70f1f3

File tree

2 files changed

+59
-5
lines changed

2 files changed

+59
-5
lines changed

tools/testing/selftests/tc-testing/README

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ REQUIREMENTS
1717
* The kernel must have veth support available, as a veth pair is created
1818
prior to running the tests.
1919

20+
* The kernel must have the appropriate infrastructure enabled to run all tdc
21+
unit tests. See the config file in this directory for minimum required
22+
features. As new tests will be added, config options list will be updated.
23+
2024
* All tc-related features being tested must be built in or available as
2125
modules. To check what is required in current setup run:
2226
./tdc.py -c
@@ -109,17 +113,19 @@ COMMAND LINE ARGUMENTS
109113
Run tdc.py -h to see the full list of available arguments.
110114

111115
usage: tdc.py [-h] [-p PATH] [-D DIR [DIR ...]] [-f FILE [FILE ...]]
112-
[-c [CATG [CATG ...]]] [-e ID [ID ...]] [-l] [-s] [-i] [-v]
113-
[-d DEVICE] [-n NS] [-V]
116+
[-c [CATG [CATG ...]]] [-e ID [ID ...]] [-l] [-s] [-i] [-v] [-N]
117+
[-d DEVICE] [-P] [-n] [-V]
114118

115119
Linux TC unit tests
116120

117121
optional arguments:
118122
-h, --help show this help message and exit
119123
-p PATH, --path PATH The full path to the tc executable to use
120124
-v, --verbose Show the commands that are being run
125+
-N, --notap Suppress tap results for command under test
121126
-d DEVICE, --device DEVICE
122127
Execute the test case in flower category
128+
-P, --pause Pause execution just before post-suite stage
123129

124130
selection:
125131
select which test cases: files plus directories; filtered by categories
@@ -146,10 +152,10 @@ action:
146152
-i, --id Generate ID numbers for new test cases
147153

148154
netns:
149-
options for nsPlugin(run commands in net namespace)
155+
options for nsPlugin (run commands in net namespace)
150156

151-
-n NS, --namespace NS
152-
Run commands in namespace NS
157+
-n, --namespace
158+
Run commands in namespace as specified in tdc_config.py
153159

154160
valgrind:
155161
options for valgrindPlugin (run command under test under Valgrind)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
CONFIG_NET_SCHED=y
2+
3+
#
4+
# Queueing/Scheduling
5+
#
6+
CONFIG_NET_SCH_PRIO=m
7+
CONFIG_NET_SCH_INGRESS=m
8+
9+
#
10+
# Classification
11+
#
12+
CONFIG_NET_CLS=y
13+
CONFIG_NET_CLS_FW=m
14+
CONFIG_NET_CLS_U32=m
15+
CONFIG_CLS_U32_PERF=y
16+
CONFIG_CLS_U32_MARK=y
17+
CONFIG_NET_EMATCH=y
18+
CONFIG_NET_EMATCH_STACK=32
19+
CONFIG_NET_EMATCH_CMP=m
20+
CONFIG_NET_EMATCH_NBYTE=m
21+
CONFIG_NET_EMATCH_U32=m
22+
CONFIG_NET_EMATCH_META=m
23+
CONFIG_NET_EMATCH_TEXT=m
24+
CONFIG_NET_EMATCH_IPSET=m
25+
CONFIG_NET_EMATCH_IPT=m
26+
CONFIG_NET_CLS_ACT=y
27+
CONFIG_NET_ACT_POLICE=m
28+
CONFIG_NET_ACT_GACT=m
29+
CONFIG_GACT_PROB=y
30+
CONFIG_NET_ACT_MIRRED=m
31+
CONFIG_NET_ACT_SAMPLE=m
32+
CONFIG_NET_ACT_IPT=m
33+
CONFIG_NET_ACT_NAT=m
34+
CONFIG_NET_ACT_PEDIT=m
35+
CONFIG_NET_ACT_SIMP=m
36+
CONFIG_NET_ACT_SKBEDIT=m
37+
CONFIG_NET_ACT_CSUM=m
38+
CONFIG_NET_ACT_VLAN=m
39+
CONFIG_NET_ACT_BPF=m
40+
CONFIG_NET_ACT_CONNMARK=m
41+
CONFIG_NET_ACT_SKBMOD=m
42+
CONFIG_NET_ACT_IFE=m
43+
CONFIG_NET_ACT_TUNNEL_KEY=m
44+
CONFIG_NET_IFE_SKBMARK=m
45+
CONFIG_NET_IFE_SKBPRIO=m
46+
CONFIG_NET_IFE_SKBTCINDEX=m
47+
CONFIG_NET_CLS_IND=y
48+
CONFIG_NET_SCH_FIFO=y

0 commit comments

Comments
 (0)