]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:30:04 +0000 (08:30 +0200)
commit24c21fa645604c17a8368a0816c9a3ddc4b2b573
tree1db6888b3fea46b8e03cb9ce266266a4a861ea53
parentf4bed7ed14a2c47cc08a13f95b13eb288b884f2c
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