]> git.proxmox.com Git - mirror_iproute2.git/commit
testsuite: Add mpls packet matching tests for tc flower
authorGuillaume Nault <gnault@redhat.com>
Mon, 14 Dec 2020 17:14:22 +0000 (18:14 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 16 Dec 2020 04:14:26 +0000 (04:14 +0000)
commitcb0debfe2d5857613dc3592fcd994fb41f3f1b21
treea6ee1d28138466ce891129ae1e0870d3aad3778a
parentc01dec8475e84246a455d51c95e4dfb0ba267f55
testsuite: Add mpls packet matching tests for tc flower

Match all MPLS fields using smallest and highest possible values.
Test the two ways of specifying MPLS header matching:

  * with the basic mpls_{label,tc,bos,ttl} keywords (match only on the
    first LSE),

  * with the more generic "lse" keyword (allows matching at different
    depth of the MPLS label stack).

This test file allows to find problems like the one fixed by
Linux commit 7fdd375e3830 ("net: sched: Fix dump of MPLS_OPT_LSE_LABEL
attribute in cls_flower").

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
testsuite/tests/tc/flower_mpls.t [new file with mode: 0755]