]> 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)
commit3f35b809e3618df38cd972b2fc5a43c18fabcfd9
tree67019b2e0ea27e96b578e5c2604f9903f963c8e2
parent71ec3f7e71aa9978380d247a80145688c6e0bdf2
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: 8ab4ae335668 ("selftests: forwarding: Add a test for VXLAN asymmetric routing")
Fixes: 7d7ac52eb8af ("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