Skip to content

: Make "prot inuse" counters work per-net.

Pavel Emelyanov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6: Add net parameter to sock_prot_inuse_(add|get).include/net/sock.h include/net/udp.h net/ipv4/inet_hashtables.c +7 more+31 -260 replies
2/6: Introduce per-net inuse counters.include/net/net_namespace.h include/net/sock.h net/core/sock.c+90 -04 replies
3/6: Swap unhash and net change for icmp and tcp service sockets.net/ipv4/icmp.c net/ipv6/icmp.c net/ipv6/mcast.c +1 more+4 -40 replies
4/6: Create sockstat and sockstat6 files in net.net/ipv4/proc.c net/ipv6/proc.c+45 -100 replies
5/6: Use proper net in sockstat file.net/ipv4/proc.c+34 -70 replies
6/6: Use proper net in sockstat6 file.net/ipv6/proc.c+34 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-2.6.26 0/6][NETNS][SOCK]: Make "prot inuse" counters work per-net.

These counters show the number of sockets used for each protocol, but currently they gather global statistics. This is useful to have them work per-net.

This set adds this possibility, but hides it under CONFIG_NET_NS option, so that not-virtualized kernel keeps using the optimized version by Eric (and he's in Cc for that reason).