net: make /proc/net/protocols namespace aware
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 19 Nov 2008 23:14:01 +0000 (15:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Nov 2008 23:14:01 +0000 (15:14 -0800)
commit14e943db133489c98d426a0dcfce4a99c6e8ad97
tree892ae3f726e9f71fb120eb262ab249d36dedb14e
parent3680453c8be54fff0d23fdf33e8961a48e1f2cd6
net: make /proc/net/protocols namespace aware

Converting /proc/net/protocols to be namespace aware is quite easy
and permits us to use sock_prot_inuse_get().

This provides seperate counters for each protocol. For example
we can really count TCPv6 sockets and TCPv4 sockets, while previously,
we had the same value, and this value was not namespace aware.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c