aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-08-28 13:32:37 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-28 13:32:37 -0700
commitfe55565ef251d486c2c97779512ad22faf57384c (patch)
treec4d7126eb3cd4eb84effc223fb98fdf8e0b80658 /include/net/ip.h
parentnet: Add ethernet header for pass through VRF device (diff)
parentnet: Add support for VRFs to inetpeer cache (diff)
downloadlinux-dev-fe55565ef251d486c2c97779512ad22faf57384c.tar.xz
linux-dev-fe55565ef251d486c2c97779512ad22faf57384c.zip
Merge branch 'vrf-inetpeer'
David Ahern says: ==================== net: Refactor inetpeer cache and add support for VRFs Per Dave's comment on the version 1 patch adding VRF support to inetpeer cache by explicitly making the address + index a key. Refactored the inetpeer code in the process; mostly impacts the use by tcp_metrics. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip.h')
-rw-r--r--include/net/ip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index bee5f3582e38..7b9e1c782aa3 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -458,6 +458,11 @@ static __inline__ void inet_reset_saddr(struct sock *sk)
#endif
+static inline unsigned int ipv4_addr_hash(__be32 ip)
+{
+ return (__force unsigned int) ip;
+}
+
bool ip_call_ra_chain(struct sk_buff *skb);
/*