aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tc-testing/tdc_config.py
diff options
context:
space:
mode:
authorChris Mi <chrism@mellanox.com>2017-10-26 18:24:43 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-29 22:49:31 +0900
commit31c2611b66e01378b54f7ef641cb0d23fcd8502f (patch)
tree9977e690a21f354b5ed0535f8ddad4ec176f6dac /tools/testing/selftests/tc-testing/tdc_config.py
parent7f071998474a9e5f7b98103d3058a1b8ca5887e6 (diff)
downloadlinux-stericsson-31c2611b66e01378b54f7ef641cb0d23fcd8502f.tar.gz
selftests: Introduce a new test case to tc testsuite
In this patchset, we fixed a tc bug. This patch adds the test case that reproduces the bug. To run this test case, user should specify an existing NIC device: # sudo ./tdc.py -d enp4s0f0 This test case belongs to category "flower". If user doesn't specify a NIC device, the test cases belong to "flower" will not be run. In this test case, we create 1M filters and all filters share the same action. When destroying all filters, kernel should not panic. It takes about 18s to run it. Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Lucas Bates <lucasb@mojatatu.com> Signed-off-by: Chris Mi <chrism@mellanox.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tdc_config.py')
-rw-r--r--tools/testing/selftests/tc-testing/tdc_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc_config.py b/tools/testing/selftests/tc-testing/tdc_config.py
index 01087375a7c3..b6352515c1b5 100644
--- a/tools/testing/selftests/tc-testing/tdc_config.py
+++ b/tools/testing/selftests/tc-testing/tdc_config.py
@@ -12,6 +12,8 @@ NAMES = {
# Name of veth devices to be created for the namespace
'DEV0': 'v0p0',
'DEV1': 'v0p1',
+ 'DEV2': '',
+ 'BATCH_FILE': './batch.txt',
# Name of the namespace to use
'NS': 'tcut'
}