diff options
author | Craig Gallek <kraig@google.com> | 2015-06-15 17:26:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-16 04:49:22 +0200 |
commit | eb4cb008529ca08e0d8c0fa54e8f739520197a65 (patch) | |
tree | e7f6c004e7e540abba090a618240c6426d2df956 /include/net | |
parent | Merge branch 'mlx4-vf-counters' (diff) | |
download | linux-eb4cb008529ca08e0d8c0fa54e8f739520197a65.tar.xz linux-eb4cb008529ca08e0d8c0fa54e8f739520197a65.zip |
sock_diag: define destruction multicast groups
These groups will contain socket-destruction events for
AF_INET/AF_INET6, IPPROTO_TCP/IPPROTO_UDP.
Near the end of socket destruction, a check for listeners is
performed. In the presence of a listener, rather than completely
cleanup the socket, a unit of work will be added to a private
work queue which will first broadcast information about the socket
and then finish the cleanup operation.
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 26c1c3171e00..3e8258699270 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1518,6 +1518,7 @@ static inline void unlock_sock_fast(struct sock *sk, bool slow) struct sock *sk_alloc(struct net *net, int family, gfp_t priority, struct proto *prot, int kern); void sk_free(struct sock *sk); +void sk_destruct(struct sock *sk); struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority); struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, |