All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch bpf-next v2 0/4] sockmap: some performance optimizations
@ 2022-05-02 18:23 Cong Wang
  2022-05-02 18:23 ` [Patch bpf-next v2 1/4] tcp: introduce tcp_read_skb() Cong Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Cong Wang @ 2022-05-02 18:23 UTC (permalink / raw)
  To: netdev; +Cc: bpf, Cong Wang

From: Cong Wang <cong.wang@bytedance.com>

This patchset contains two optimizations for sockmap. The first one
eliminates a skb_clone() and the second one eliminates a memset(). After
this patchset, the throughput of UDP transmission via sockmap gets
improved by 61%.

v2: clean up coding style for tcp_read_skb()
    get rid of some redundant variables
    add a comment for ->read_skb()

Cong Wang (4):
  tcp: introduce tcp_read_skb()
  net: introduce a new proto_ops ->read_skb()
  skmsg: get rid of skb_clone()
  skmsg: get rid of unncessary memset()

 include/linux/net.h |  4 +++
 include/net/tcp.h   |  1 +
 include/net/udp.h   |  3 +--
 net/core/skmsg.c    | 48 ++++++++++++++----------------------
 net/ipv4/af_inet.c  |  3 ++-
 net/ipv4/tcp.c      | 60 +++++++++++++++++++++++++++++++++++++++------
 net/ipv4/udp.c      | 11 ++++-----
 net/ipv6/af_inet6.c |  3 ++-
 net/unix/af_unix.c  | 23 +++++++----------
 9 files changed, 94 insertions(+), 62 deletions(-)

-- 
2.32.0


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

end of thread, other threads:[~2022-05-10 18:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 18:23 [Patch bpf-next v2 0/4] sockmap: some performance optimizations Cong Wang
2022-05-02 18:23 ` [Patch bpf-next v2 1/4] tcp: introduce tcp_read_skb() Cong Wang
2022-05-03  0:02   ` Eric Dumazet
2022-05-10 18:27     ` Cong Wang
2022-05-02 18:23 ` [Patch bpf-next v2 2/4] net: introduce a new proto_ops ->read_skb() Cong Wang
2022-05-02 18:23 ` [Patch bpf-next v2 3/4] skmsg: get rid of skb_clone() Cong Wang
2022-05-02 18:23 ` [Patch bpf-next v2 4/4] skmsg: get rid of unncessary memset() Cong Wang

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.