mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
net: Introduce ipv4_addr_hash and use it for tcp metrics
Refactors a common line into helper function. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8f58336d3f
commit
72afa352d6
2 changed files with 11 additions and 6 deletions
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue