mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 00:17:40 +07:00
tc-testing: implement tests for new fast_init action flag
Add basic tests to verify action creation with new fast_init flag for all actions that support the flag. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e382267860
commit
9ae6b78708
@ -525,5 +525,29 @@
|
||||
"teardown": [
|
||||
"$TC actions flush action csum"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "eaf0",
|
||||
"name": "Add csum iph action with no_percpu flag",
|
||||
"category": [
|
||||
"actions",
|
||||
"csum"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action csum",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
]
|
||||
],
|
||||
"cmdUnderTest": "$TC actions add action csum iph no_percpu",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions list action csum",
|
||||
"matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*no_percpu",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action csum"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -310,5 +310,29 @@
|
||||
"teardown": [
|
||||
"$TC actions flush action ct"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "3991",
|
||||
"name": "Add simple ct action with no_percpu flag",
|
||||
"category": [
|
||||
"actions",
|
||||
"ct"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action ct",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
]
|
||||
],
|
||||
"cmdUnderTest": "$TC actions add action ct no_percpu",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions list action ct",
|
||||
"matchPattern": "action order [0-9]*: ct zone 0 pipe.*no_percpu",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action ct"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -585,5 +585,29 @@
|
||||
"teardown": [
|
||||
"$TC actions flush action gact"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "95ad",
|
||||
"name": "Add gact pass action with no_percpu flag",
|
||||
"category": [
|
||||
"actions",
|
||||
"gact"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action gact",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
]
|
||||
],
|
||||
"cmdUnderTest": "$TC actions add action pass no_percpu",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions list action gact",
|
||||
"matchPattern": "action order [0-9]*: gact action pass.*no_percpu",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action gact"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -553,5 +553,29 @@
|
||||
"matchPattern": "^[ \t]+index [0-9]+ ref",
|
||||
"matchCount": "0",
|
||||
"teardown": []
|
||||
},
|
||||
{
|
||||
"id": "31e3",
|
||||
"name": "Add mirred mirror to egress action with no_percpu flag",
|
||||
"category": [
|
||||
"actions",
|
||||
"mirred"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action mirred",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
]
|
||||
],
|
||||
"cmdUnderTest": "$TC actions add action mirred egress mirror dev lo no_percpu",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions list action mirred",
|
||||
"matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*no_percpu",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action mirred"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -909,5 +909,29 @@
|
||||
"teardown": [
|
||||
"$TC actions flush action tunnel_key"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "0cd2",
|
||||
"name": "Add tunnel_key set action with no_percpu flag",
|
||||
"category": [
|
||||
"actions",
|
||||
"tunnel_key"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action tunnel_key",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
]
|
||||
],
|
||||
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1 no_percpu",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions list action tunnel_key",
|
||||
"matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*no_percpu",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action tunnel_key"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -807,5 +807,29 @@
|
||||
"matchPattern": "^[ \t]+index [0-9]+ ref",
|
||||
"matchCount": "0",
|
||||
"teardown": []
|
||||
},
|
||||
{
|
||||
"id": "1a3d",
|
||||
"name": "Add vlan pop action with no_percpu flag",
|
||||
"category": [
|
||||
"actions",
|
||||
"vlan"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action vlan",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
]
|
||||
],
|
||||
"cmdUnderTest": "$TC actions add action vlan pop no_percpu",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions list action vlan",
|
||||
"matchPattern": "action order [0-9]+: vlan.*pop.*no_percpu",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action vlan"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user