All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
	Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
	Kirill Tkhai <ktkhai@virtuozzo.com>
Subject: [PATCH net-next 0/2] net: cleanup datagram receive helpers
Date: Thu, 27 Feb 2020 12:30:36 +0100	[thread overview]
Message-ID: <cover.1582802470.git.pabeni@redhat.com> (raw)

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


             reply	other threads:[~2020-02-27 11:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 11:30 Paolo Abeni [this message]
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 19:51     ` kbuild test robot
2020-02-27 22:19   ` kbuild test robot
2020-02-27 22:19     ` kbuild test robot
2020-02-27 23:29   ` kbuild test robot
2020-02-27 23:29     ` kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1582802470.git.pabeni@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=ktkhai@virtuozzo.com \
    --cc=netdev@vger.kernel.org \
    --cc=willemdebruijn.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.