]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: Fix multipath selection with vrf
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 10 Jan 2017 22:37:35 +0000 (14:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 14:59:55 +0000 (09:59 -0500)
commitc4787b1ca01d2a5b679571b15cbb21ccd34d2156
tree3f903f4e1515788b2d85c8c0ed1d4120fb01b8f7
parenta5effcc653a1584bf17c9d32f5350125c08dea0f
net: ipv4: Fix multipath selection with vrf

fib_select_path does not call fib_select_multipath if oif is set in the
flow struct. For VRF use cases oif is always set, so multipath route
selection is bypassed. Use the FLOWI_FLAG_SKIP_NH_OIF to skip the oif
check similar to what is done in fib_table_lookup.

Add saddr and proto to the flow struct for the fib lookup done by the
VRF driver to better match hash computation for a flow.

Fixes: b8ceeef2ca2c ("net: Use VRF device index for lookups on TX")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c
net/ipv4/fib_semantics.c