net: Introduce ipv4_addr_hash and use it for tcp metrics
[cascardo/linux.git] / include / net / ip.h
index bee5f35..7b9e1c7 100644 (file)
@@ -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);
 
 /*