selftests: forwarding: gre_multipath: Fix flower filters
authorIdo Schimmel <idosch@mellanox.com>
Tue, 23 Jul 2019 08:19:26 +0000 (11:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:28:30 +0000 (08:28 +0200)
commit43d31fd9a8f243cd2a021df682dce1e6979a2a2e
tree2b2b280033307e6add3ab2a24e97b11e4255ba33
parentef52e2b9a621d1a6ccbe2fe3e7edd7e14ff0f226
selftests: forwarding: gre_multipath: Fix flower filters

[ Upstream commit 1be79d89b7ae96e004911bd228ce8c2b5cc6415f ]

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: 541ad323db3a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/forwarding/gre_multipath.sh