[SOCK][NETNS]: Add a struct net argument to sock_prot_inuse_add and _get.
This counter is about to become per-proto-and-per-net, so we'll need two arguments to determine which cell in this "table" to work with. All the places, but proc already pass proper net to it - proc will be tuned a bit later. Some indentation with spaces in proc files is done to keep the file coding style consistent. Signed-off-by:Pavel Emelyanov <xemul@openvz.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sock.h 4 additions, 3 deletionsinclude/net/sock.h
- include/net/udp.h 1 addition, 1 deletioninclude/net/udp.h
- net/core/sock.c 2 additions, 2 deletionsnet/core/sock.c
- net/ipv4/inet_hashtables.c 4 additions, 4 deletionsnet/ipv4/inet_hashtables.c
- net/ipv4/inet_timewait_sock.c 1 addition, 1 deletionnet/ipv4/inet_timewait_sock.c
- net/ipv4/proc.c 7 additions, 4 deletionsnet/ipv4/proc.c
- net/ipv4/raw.c 2 additions, 2 deletionsnet/ipv4/raw.c
- net/ipv4/udp.c 1 addition, 1 deletionnet/ipv4/udp.c
- net/ipv6/inet6_hashtables.c 2 additions, 2 deletionsnet/ipv6/inet6_hashtables.c
- net/ipv6/ipv6_sockglue.c 6 additions, 4 deletionsnet/ipv6/ipv6_sockglue.c
- net/ipv6/proc.c 4 additions, 4 deletionsnet/ipv6/proc.c
Loading
Please register or sign in to comment