mbox series

[net-next,0/4] net: prot_inuse and sock_inuse cleanups

Message ID 20211115171150.3646016-1-eric.dumazet@gmail.com (mailing list archive)
Headers show
Series net: prot_inuse and sock_inuse cleanups | expand

Message

Eric Dumazet Nov. 15, 2021, 5:11 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

Small series cleaning and optimizing sock_prot_inuse_add()
and sock_inuse_add().

Eric Dumazet (4):
  net: inline sock_prot_inuse_add()
  net: make sock_inuse_add() available
  net: merge net->core.prot_inuse and net->core.sock_inuse
  net: drop nopreempt requirement on sock_prot_inuse_add()

 include/net/netns/core.h |  1 -
 include/net/sock.h       | 27 +++++++++++++++++++++++----
 net/core/sock.c          | 33 +--------------------------------
 net/ieee802154/socket.c  |  4 ++--
 net/ipv4/raw.c           |  2 +-
 net/ipv6/ipv6_sockglue.c |  8 ++++----
 net/mptcp/subflow.c      |  4 +---
 net/netlink/af_netlink.c |  4 ----
 net/packet/af_packet.c   |  4 ----
 net/sctp/socket.c        |  5 -----
 net/smc/af_smc.c         |  2 +-
 net/unix/af_unix.c       |  4 ----
 net/xdp/xsk.c            |  4 ----
 13 files changed, 33 insertions(+), 69 deletions(-)