]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add support for VRFs to inetpeer cache
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 27 Aug 2015 23:07:03 +0000 (16:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 20:32:36 +0000 (13:32 -0700)
commit594d8f13fa18ccee24aafd24e0883514e92baf6d
treec4d7126eb3cd4eb84effc223fb98fdf8e0b80658
parent0109ffb37f25c8efdf6278f7c6107049e9398e19
net: Add support for VRFs to inetpeer cache

inetpeer caches based on address only, so duplicate IP addresses within
a namespace return the same cached entry. Enhance the ipv4 address key
to contain both the IPv4 address and VRF device index.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inetpeer.h
net/ipv4/icmp.c
net/ipv4/ip_fragment.c
net/ipv4/route.c