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)
commit15239302edd46b184e758048253541fb211e315e
tree99a70d1555c7c2cf0df9e4f663986296ba2497a2
parent3b24d854cb35383c30642116e5992fd619bdc9bc
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