]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: mirror_gre_nh: Unset rp_filter on host VRF
authorPetr Machata <petrm@mellanox.com>
Tue, 10 Jul 2018 12:44:26 +0000 (14:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:59:27 +0000 (23:59 -0700)
commitdd2c5d5f5af461a34f21fce317cb8c8947262a3b
tree1d181c2928a7872aacf5b9c48b935defbff5fbd1
parent24846dd0f603373b018007f611be01e4cf9b8a1c
selftests: forwarding: mirror_gre_nh: Unset rp_filter on host VRF

The mirrored packets arrive at $h3 encapsulated in GRE/IPv4, with IP
address from 192.0.2.128/28 network. However the interface is configured
as a member of 192.0.2.160/28 and there's no route directing traffic
from the former network through that interface. Correspondingly, the RP
filter on the VRF rejects it.

Therefore turn off the VRF's RP filter.

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