]> git.baikalelectronics.ru Git - kernel.git/commit
net: Use VRF device index for lookups on TX
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 13 Aug 2015 20:59:02 +0000 (14:59 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Aug 2015 05:43:20 +0000 (22:43 -0700)
commitfe72c20b1eac18e9b8cdb233a9e0d39a03c7f272
tree93178a4839a7caaca7b9318bc2736dc1c5676859
parent5517be16488f6df1cb905268e577b47e0218e675
net: Use VRF device index for lookups on TX

As with ingress use the index of VRF master device for route lookups on
egress. However, the oif should only be used to direct the lookups to a
specific table. Routes in the table are not based on the VRF device but
rather interfaces that are part of the VRF so do not consider the oif for
lookups within the table. The FLOWI_FLAG_VRFSRC is used to control this
latter part.

Signed-off-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
include/net/route.h
net/ipv4/fib_trie.c
net/ipv4/icmp.c
net/ipv4/route.c