]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add missing 'rp_filter' configuration
authorIdo Schimmel <idosch@nvidia.com>
Thu, 15 Oct 2020 08:45:25 +0000 (11:45 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 18 Oct 2020 19:47:32 +0000 (12:47 -0700)
commitb337e1a40390f747cef0c1917bf64263c0a3a6f4
tree67019b2e0ea27e96b578e5c2604f9903f963c8e2
parent10db60b8f5ec70786960dd8a1df3fa0da310f000
selftests: forwarding: Add missing 'rp_filter' configuration

When 'rp_filter' is configured in strict mode (1) the tests fail because
packets received from the macvlan netdevs would not be forwarded through
them on the reverse path.

Fix this by disabling the 'rp_filter', meaning no source validation is
performed.

Fixes: 2a29ad7f8b2c ("selftests: forwarding: Add a test for VXLAN asymmetric routing")
Fixes: ca4830a52752 ("selftests: forwarding: Add a test for VXLAN symmetric routing")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reported-by: Hangbin Liu <liuhangbin@gmail.com>
Tested-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20201015084525.135121-1-idosch@idosch.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/vxlan_asymmetric.sh
tools/testing/selftests/net/forwarding/vxlan_symmetric.sh