]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Tweak tc filters for mirror-to-gretap tests
authorPetr Machata <petrm@mellanox.com>
Thu, 28 Jun 2018 16:56:33 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:34:09 +0000 (20:34 +0900)
commit8f1076e5362dd71c845f913e953767f2230945d3
tree717b8fa29dbbbe4a730e60ab23726ee982b460ed
parent70f081b5e92c4870e71bea6ba64eef1f795e9ddf
selftests: forwarding: Tweak tc filters for mirror-to-gretap tests

When running mirror_gre_bridge_1d_vlan tests on veth, several issues
cause spurious failures:

- vlan_ethtype should be ip, not ipv6 even in mirror-to-ip6gretap case,
  because the overlay packet is still IPv4.
- Similarly ip_proto matches the innermost IP protocol, so can't be used
  to filter out GRE packet. Drop the corresponding condition.
- Because the above fixes the filters to match in slow path as well,
  they need to be made skip_hw so as not to double-count packets.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_bridge_1d_vlan.sh
tools/testing/selftests/net/forwarding/mirror_gre_lib.sh
tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh