netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] udp: do fwd memory scheduling on dequeue
@ 2016-11-04 10:28 Paolo Abeni
       [not found] ` <cover.1478254512.git.pabeni-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Abeni @ 2016-11-04 10:28 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller, Eric Dumazet, Hannes Frederic Sowa, linux-nfs

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

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

end of thread, other threads:[~2016-11-07 18:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-04 10:28 [PATCH net-next 0/2] udp: do fwd memory scheduling on dequeue Paolo Abeni
     [not found] ` <cover.1478254512.git.pabeni-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
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
     [not found]     ` <1b4e5292a0c15494515423245e8eeb7adf2ebcea.1478254512.git.pabeni-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
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 12:38     ` Eric Dumazet
2016-11-07 18:24   ` [PATCH net-next 0/2] " David Miller

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).