]> git.baikalelectronics.ru Git - kernel.git/commit
net: merge net->core.prot_inuse and net->core.sock_inuse
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 17:11:49 +0000 (09:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:20:45 +0000 (13:20 +0000)
commit90eaa5710844c28e23d9ded2e8a6ae1d479038bc
treeb2961c173f6371d1e6c6025c8dc8d7cee442dc7f
parent6a6651dce5b7fecb75a2e6ed7b8bf6738215fdfd
net: merge net->core.prot_inuse and net->core.sock_inuse

net->core.sock_inuse is a per cpu variable (int),
while net->core.prot_inuse is another per cpu variable
of 64 integers.

per cpu allocator tend to place them in very different places.

Grouping them together makes sense, since it makes
updates potentially faster, if hitting the same
cache line.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/core.h
include/net/sock.h
net/core/sock.c