mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
selftests/tc-testing: Add tests exercising act_ife metalist replace behaviour
Add 2 test cases to exercise fix in act_ife's internal metalist behaviour. - Update decode ife action into encode with tcindex metadata - Update decode ife action into encode with multiple metadata Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Victor Nogueira <victor@mojatatu.com> Link: https://patch.msgid.link/20260304140603.76500-2-jhs@mojatatu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e2cedd400c
commit
5d1271ff4c
1 changed files with 99 additions and 0 deletions
|
|
@ -1279,5 +1279,104 @@
|
|||
"teardown": [
|
||||
"$TC actions flush action ife"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f2a0",
|
||||
"name": "Update decode ife action with encode metadata",
|
||||
"category": [
|
||||
"actions",
|
||||
"ife"
|
||||
],
|
||||
"plugins": {
|
||||
"requires": "nsPlugin"
|
||||
},
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action ife",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
],
|
||||
"$TC actions add action ife decode index 10"
|
||||
],
|
||||
"cmdUnderTest": "$TC actions replace action ife encode use tcindex 1 index 10",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC -j actions get action ife index 10",
|
||||
"matchJSON": [
|
||||
{
|
||||
"total acts": 0
|
||||
},
|
||||
{
|
||||
"actions": [
|
||||
{
|
||||
"order": 1,
|
||||
"kind": "ife",
|
||||
"mode": "encode",
|
||||
"control_action": {
|
||||
"type": "pipe"
|
||||
},
|
||||
"type": "0xed3e",
|
||||
"tcindex": 1,
|
||||
"index": 10,
|
||||
"ref": 1,
|
||||
"bind": 0,
|
||||
"not_in_hw": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"teardown": [
|
||||
"$TC actions flush action ife"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "d352",
|
||||
"name": "Update decode ife action into encode with multiple metadata",
|
||||
"category": [
|
||||
"actions",
|
||||
"ife"
|
||||
],
|
||||
"plugins": {
|
||||
"requires": "nsPlugin"
|
||||
},
|
||||
"setup": [
|
||||
[
|
||||
"$TC actions flush action ife",
|
||||
0,
|
||||
1,
|
||||
255
|
||||
],
|
||||
"$TC actions add action ife decode index 10"
|
||||
],
|
||||
"cmdUnderTest": "$TC actions replace action ife encode use tcindex 1 use mark 22 index 10",
|
||||
"expExitCode": "0",
|
||||
"verifyCmd": "$TC -j actions get action ife index 10",
|
||||
"matchJSON": [
|
||||
{
|
||||
"total acts": 0
|
||||
},
|
||||
{
|
||||
"actions": [
|
||||
{
|
||||
"order": 1,
|
||||
"kind": "ife",
|
||||
"mode": "encode",
|
||||
"control_action": {
|
||||
"type": "pipe"
|
||||
},
|
||||
"type": "0xed3e",
|
||||
"tcindex": 1,
|
||||
"mark": 22,
|
||||
"index": 10,
|
||||
"ref": 1,
|
||||
"bind": 0,
|
||||
"not_in_hw": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"teardown": [
|
||||
"$TC actions flush action ife"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue