diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-16 05:12:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-16 20:55:29 +0100 |
commit | 2c13270b441054a9596bcd99c0f446603c9ad131 (patch) | |
tree | 4e142a3fc6b9f60dbc7c96ed0af1c329ef380de2 /net/ipv4/inet_hashtables.c | |
parent | inet_diag: allow sk_diag_fill() to handle request socks (diff) | |
download | linux-2c13270b441054a9596bcd99c0f446603c9ad131.tar.xz linux-2c13270b441054a9596bcd99c0f446603c9ad131.zip |
inet: factorize sock_edemux()/sock_gen_put() code
sock_edemux() is not used in fast path, and should
really call sock_gen_put() to save some code.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_hashtables.c')
-rw-r--r-- | net/ipv4/inet_hashtables.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 64401a2fdd33..c28bca4cc15b 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -269,6 +269,12 @@ void sock_gen_put(struct sock *sk) } EXPORT_SYMBOL_GPL(sock_gen_put); +void sock_edemux(struct sk_buff *skb) +{ + sock_gen_put(skb->sk); +} +EXPORT_SYMBOL(sock_edemux); + struct sock *__inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, const __be16 sport, |