mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 12:55:04 +07:00
31c2611b66
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>
20 lines
525 B
Python
20 lines
525 B
Python
"""
|
|
tdc_config.py - tdc user-specified values
|
|
|
|
Copyright (C) 2017 Lucas Bates <lucasb@mojatatu.com>
|
|
"""
|
|
|
|
# Dictionary containing all values that can be substituted in executable
|
|
# commands.
|
|
NAMES = {
|
|
# Substitute your own tc path here
|
|
'TC': '/sbin/tc',
|
|
# 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'
|
|
}
|