aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorGuillaume Nault <[email protected]>2021-02-12 19:05:43 +0000
committerDavid S. Miller <[email protected]>2021-02-13 01:13:52 +0000
commitc09bfd9a5df933f614af909d33ada673485b46ac (patch)
treebee225453643595b9efd38d0d38061d7ccf2e97f /net/switchdev/switchdev.c
parentselftests: tc: Add basic mpls_* matching support for tc-flower (diff)
downloadkernel-c09bfd9a5df933f614af909d33ada673485b46ac.tar.gz
kernel-c09bfd9a5df933f614af909d33ada673485b46ac.zip
selftests: tc: Add generic mpls matching support for tc-flower
Add tests in tc_flower.sh for generic matching on MPLS Label Stack Entries. The label, tc, bos and ttl fields are tested for the first and second labels. For each field, the minimal and maximal values are tested (the former at depth 1 and the later at depth 2). There are also tests for matching the presence of a label stack entry at a given depth. In order to reduce the amount of code, all "lse" subcommands are tested in match_mpls_lse_test(). Action "continue" is used, so that test packets are evaluated by all filters. Then, we can verify if each filter matched the expected number of packets. Some versions of tc-flower produced invalid json output when dumping MPLS filters with depth > 1. Skip the test if tc isn't recent enough. Signed-off-by: Guillaume Nault <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions