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/core/sock.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/core/sock.c')
-rw-r--r-- | net/core/sock.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 4bc42efb3e40..a950b54248da 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1661,21 +1661,6 @@ void sock_efree(struct sk_buff *skb) } EXPORT_SYMBOL(sock_efree); -#ifdef CONFIG_INET -void sock_edemux(struct sk_buff *skb) -{ - struct sock *sk = skb->sk; - - if (sk->sk_state == TCP_TIME_WAIT) - inet_twsk_put(inet_twsk(sk)); - else if (sk->sk_state == TCP_NEW_SYN_RECV) - reqsk_put(inet_reqsk(sk)); - else - sock_put(sk); -} -EXPORT_SYMBOL(sock_edemux); -#endif - kuid_t sock_i_uid(struct sock *sk) { kuid_t uid; |