]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit613d09b30f8b589d5a9b49775054c8865db95d1c
tree93178a4839a7caaca7b9318bc2736dc1c5676859
parentcd2fbe1b6b517ca7c0e80b103c674fdf5bd50f76
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