]> git.baikalelectronics.ru Git - kernel.git/commit
udp_diag: implement idiag_get_info for udp/udplite to get queue information
authorShan Wei <davidshan@tencent.com>
Tue, 24 Apr 2012 18:15:41 +0000 (18:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2012 00:43:01 +0000 (20:43 -0400)
commit7cbfc73eba05ad6917f2fa157ff8702bb44dee52
tree6c8a4302149d69c5cd3933bbf09a7da5b148780e
parent7874f70caedf1078c3d0562e3d6da8a96547388d
udp_diag: implement idiag_get_info for udp/udplite to get queue information

When we use netlink to monitor queue information for udp socket,
idiag_rqueue and idiag_wqueue of inet_diag_msg are returned with 0.

Keep consistent with netstat, just return back allocated rmem/wmem size.

Signed-off-by: Shan Wei <davidshan@tencent.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c
net/ipv4/udp_diag.c