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)
commit192132b9a034d87566294be0fba5f8f75c2cf16b
treec4d7126eb3cd4eb84effc223fb98fdf8e0b80658
parent5345c2e12d41f815c1009c9dee72f3d5fcfd4282
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