mbox series

[bpf-next,v2,0/4] sockmap: some performance optimizations

Message ID 20220502182345.306970-1-xiyou.wangcong@gmail.com (mailing list archive)
Headers show
Series sockmap: some performance optimizations | expand

Message

Cong Wang May 2, 2022, 6:23 p.m. UTC
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(-)