]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net: af_netlink should update its inuse counter
authorEric Dumazet <dada1@cosmosbay.com>
Sun, 23 Nov 2008 23:48:22 +0000 (15:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Nov 2008 23:48:22 +0000 (15:48 -0800)
commitc1fd3b9455a977057f73534324d4e07a3d9fe502
treed145a2db2a6195666cf89ff92563de5613847ec9
parent04f258ce7f085dd69422fa01d41c8f0194a0e270
net: af_netlink should update its inuse counter

In order to have relevant information for NETLINK protocol, in
/proc/net/protocols, we should use sock_prot_inuse_add() to
update a (percpu and pernamespace) counter of inuse sockets.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c