netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: cleanup datagram receive helpers
@ 2020-02-27 11:30 Paolo Abeni
  2020-02-27 11:30 ` [PATCH net-next 1/2] unix: uses an atomic type for scm files accounting Paolo Abeni
  2020-02-27 11:30 ` [PATCH net-next 2/2] net: datagram: drop 'destructor' argument from several helpers Paolo Abeni
  0 siblings, 2 replies; 8+ messages in thread
From: Paolo Abeni @ 2020-02-27 11:30 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, Willem de Bruijn, Kirill Tkhai

Several receive helpers have an optional destructor argument, which uglify
the code a bit and is taxed by retpoline overhead.

This series refactor the code so that we can drop such optional argument,
cleaning the helpers a bit and avoiding an indirect call in fast path.

The first patch refactor a bit the caller, so that the second patch
actually dropping the argument is more straight-forward

Paolo Abeni (2):
  unix: uses an atomic type for scm files accounting
  net: datagram: drop 'destructor' argument from several helpers

 include/linux/skbuff.h | 12 ++----------
 include/net/af_unix.h  |  2 +-
 net/core/datagram.c    | 25 +++++++------------------
 net/ipv4/udp.c         | 14 ++++++++------
 net/unix/af_unix.c     | 27 ++++++++++-----------------
 5 files changed, 28 insertions(+), 52 deletions(-)

-- 
2.21.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-28  1:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27 11:30 [PATCH net-next 0/2] net: cleanup datagram receive helpers Paolo Abeni
2020-02-27 11:30 ` [PATCH net-next 1/2] unix: uses an atomic type for scm files accounting Paolo Abeni
2020-02-27 11:30 ` [PATCH net-next 2/2] net: datagram: drop 'destructor' argument from several helpers Paolo Abeni
2020-02-27 12:31   ` Kirill Tkhai
2020-02-27 14:36     ` Paolo Abeni
2020-02-27 19:51   ` kbuild test robot
2020-02-27 22:19   ` kbuild test robot
2020-02-27 23:29   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).