]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: gre_multipath: Fix flower filters
authorIdo Schimmel <idosch@mellanox.com>
Tue, 23 Jul 2019 08:19:26 +0000 (11:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:06:48 +0000 (13:06 -0700)
commit76d072636d624213cf61f92d4be9f5a9642ebba2
tree5c810be77f49d0a8fef71699a366103978aa22c9
parente49023f1f11513e5fc7cd03ba954ee32ff0276fe
selftests: forwarding: gre_multipath: Fix flower filters

The TC filters used in the test do not work with veth devices because the
outer Ethertype is 802.1Q and not IPv4. The test passes with mlxsw
netdevs since the hardware always looks at "The first Ethertype that
does not point to either: VLAN, CNTAG or configurable Ethertype".

Fix this by matching on the VLAN ID instead, but on the ingress side.
The reason why this is not performed at egress is explained in the
commit cited below.

Fixes: a092a731cb60 ("selftests: forwarding: gre_multipath: Update next-hop statistics match criteria")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Tested-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/gre_multipath.sh