]> git.baikalelectronics.ru Git - kernel.git/commit
sock_diag: add SK_MEMINFO_DROPS
authorEric Dumazet <edumazet@google.com>
Fri, 1 Apr 2016 15:52:18 +0000 (08:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 02:11:20 +0000 (22:11 -0400)
commit030531126b69c848c294fdc8b9dbc5443f4fc39d
tree99a70d1555c7c2cf0df9e4f663986296ba2497a2
parentda82e0ee8f4ee6da4a61368f889caefbf4ce5b8f
sock_diag: add SK_MEMINFO_DROPS

Reporting sk_drops to user space was available for UDP
sockets using /proc interface.

Add this to sock_diag, so that we can have the same information
available to ss users, and we'll be able to add sk_drops
indications for TCP sockets as well.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/sock_diag.h
net/core/sock_diag.c