mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 09:46:55 +07:00
tc-testing: add test for testing ife type
This patch adds a new testcase for the IFE type setting in tc. In case of user specified the type it will check if the ife is correctly configured to react on it. If it's not specified the default IFE type should be used. Signed-off-by: Alexander Aring <aring@mojatatu.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b522ed6ed6
commit
1d51f65a36
@ -1111,5 +1111,55 @@
|
||||
"teardown": [
|
||||
"$TC actions flush action gact"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "a568",
|
||||
"name": "Add action with ife type",
|
||||
"category": [
|
||||
"actions",
|
||||
"ife"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action ife",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
],
|
||||
"$TC actions add action ife encode type 0xDEAD index 1"
|
||||
],
|
||||
"cmdUnderTest": "$TC actions get action ife index 1",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions get action ife index 1",
|
||||
"matchPattern": "type 0xDEAD",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action ife"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b983",
|
||||
"name": "Add action without ife type",
|
||||
"category": [
|
||||
"actions",
|
||||
"ife"
|
||||
],
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action ife",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
],
|
||||
"$TC actions add action ife encode index 1"
|
||||
],
|
||||
"cmdUnderTest": "$TC actions get action ife index 1",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC actions get action ife index 1",
|
||||
"matchPattern": "type 0xED3E",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC actions flush action ife"
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user