Skip to content
Snippets Groups Projects
Commit 032a4802 authored by Paolo Abeni's avatar Paolo Abeni Committed by David S. Miller
Browse files

ipv4: fix validate_source for VRF setup


David reported breakages of VRF scenarios due to the
commit 6e617de8 ("net: avoid a full fib lookup when rp_filter is
disabled."): the local addresses based test is too strict when VRFs
are in place.

With this change we fall-back to a full lookup when custom fib rules
are in place; so that we address the VRF use case and possibly other
similar issues in non trivial setups.

v1 -> v2:
 - fix build breakage when CONFIG_IP_MULTIPLE_TABLES is not defined,
   reported by the kbuild test robot

Reported-by: default avatarDavid Ahern <dsahern@gmail.com>
Fixes: 6e617de8 ("net: avoid a full fib lookup when rp_filter is disabled.")
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dc82673f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment