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>,
	Eric Dumazet <edumazet@google.com>,
	Hannes Frederic Sowa <hannes@stressinduktion.org>,
	linux-nfs@vger.kernel.org
Subject: [PATCH net-next 0/2] udp: do fwd memory scheduling on dequeue
Date: Fri,  4 Nov 2016 11:28:57 +0100	[thread overview]
Message-ID: <cover.1478254512.git.pabeni@redhat.com> (raw)

After commit 850cbaddb52d ("udp: use it's own memory accounting schema"),
the udp code needs to acquire twice the receive queue spinlock on dequeue.

This patch series remove the need for the second lock at skb free time,
moving the udp memory scheduling inside the dequeue operation; the skb
destructor field is not used anymore and an additional sk argument is added
to ip_cmsg_recv_offset() to cope with null skb->sk after dequeue.

Many thanks to Eric Dumazed for suggesting pretty all much the above.

Paolo Abeni (2):
  net/sock: add an explicit sk argument for ip_cmsg_recv_offset()
  udp: do fwd memory scheduling on dequeue

 include/linux/skbuff.h |  4 ++++
 include/net/ip.h       |  5 +++--
 include/net/udp.h      | 15 +++++++++++++++
 net/core/datagram.c    | 17 ++++++++++++-----
 net/ipv4/ip_sockglue.c |  6 +++---
 net/ipv4/udp.c         | 44 +++++++++++++++++++++++++-------------------
 net/ipv6/udp.c         |  5 ++---
 net/rxrpc/input.c      |  7 +++----
 net/sunrpc/svcsock.c   |  2 +-
 net/sunrpc/xprtsock.c  |  2 +-
 net/unix/af_unix.c     |  4 ++--
 11 files changed, 71 insertions(+), 40 deletions(-)

-- 
1.8.3.1


             reply	other threads:[~2016-11-04 10:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04 10:28 Paolo Abeni [this message]
2016-11-04 10:28 ` [PATCH net-next v2 1/2] net/sock: add an explicit sk argument for ip_cmsg_recv_offset() Paolo Abeni
2016-11-04 10:28   ` Paolo Abeni
2016-11-04 12:36   ` Eric Dumazet
2016-11-04 12:36     ` Eric Dumazet
2016-11-04 10:28 ` [PATCH net-next v2 2/2] udp: do fwd memory scheduling on dequeue Paolo Abeni
2016-11-04 10:28   ` Paolo Abeni
2016-11-04 12:38   ` Eric Dumazet
2016-11-07 18:24 ` [PATCH net-next 0/2] " David Miller
2016-11-07 18:24   ` David Miller

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.1478254512.git.pabeni@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hannes@stressinduktion.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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.