mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
udp: add struct net argument to udp_hashfn
Every caller already has this one. The new argument is currently unused, but this will be fixed shortly. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e31634931d
commit
19c7578fb2
3 changed files with 9 additions and 9 deletions
|
@ -46,7 +46,7 @@ static inline struct udphdr *udp_hdr(const struct sk_buff *skb)
|
|||
|
||||
#define UDP_HTABLE_SIZE 128
|
||||
|
||||
static inline int udp_hashfn(const unsigned num)
|
||||
static inline int udp_hashfn(struct net *net, const unsigned num)
|
||||
{
|
||||
return num & (UDP_HTABLE_SIZE - 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue