Commit f132ccc5 authored by Petr Machata's avatar Petr Machata Committed by David S. Miller
Browse files

selftests: tc-testing: Add a TDC test for pedit munge ip6 dsfield



Add a self-test for the IPv6 dsfield munge that iproute2 will support.

Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 93e106da
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -1471,6 +1471,31 @@
            "$TC actions flush action pedit"
        ]
    },
    {
        "id": "94bb",
        "name": "Add pedit action with LAYERED_OP ip6 traffic_class",
        "category": [
            "actions",
            "pedit",
            "layered_op"
        ],
        "setup": [
            [
                "$TC actions flush action pedit",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC actions add action pedit ex munge ip6 traffic_class set 0x40 continue",
        "expExitCode": "0",
        "verifyCmd": "$TC actions list action pedit",
        "matchPattern": "ipv6\\+0: val 04000000 mask f00fffff",
        "matchCount": "1",
        "teardown": [
            "$TC actions flush action pedit"
        ]
    },
    {
        "id": "6f5e",
        "name": "Add pedit action with LAYERED_OP ip6 flow_lbl",