diff options
author | David S. Miller <davem@davemloft.net> | 2015-08-28 13:32:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-28 13:32:37 -0700 |
commit | fe55565ef251d486c2c97779512ad22faf57384c (patch) | |
tree | c4d7126eb3cd4eb84effc223fb98fdf8e0b80658 /include/net/ip.h | |
parent | net: Add ethernet header for pass through VRF device (diff) | |
parent | net: Add support for VRFs to inetpeer cache (diff) | |
download | linux-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.h | 5 |
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); /* |