From: John Fastabend <john.fastabend@gmail.com>
To: Cong Wang <xiyou.wangcong@gmail.com>, netdev@vger.kernel.org
Cc: bpf@vger.kernel.org, Cong Wang <cong.wang@bytedance.com>
Subject: RE: [Patch bpf-next v4 0/4] sockmap: some performance optimizations
Date: Fri, 17 Jun 2022 18:31:46 -0700 [thread overview]
Message-ID: <62ad2b02627ce_24b342089f@john.notmuch> (raw)
In-Reply-To: <20220615162014.89193-1-xiyou.wangcong@gmail.com>
Cong Wang wrote:
> 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(). With
> this patchset, the throughput of UDP transmission via sockmap gets
> improved by 61%.
>
> v4: replace kfree_skb() with consume_skb()
>
> v3: avoid touching tcp_recv_skb()
>
> 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 | 44 +++++++++++++++++++++++++++++++++++++++++
> net/ipv4/udp.c | 11 +++++------
> net/ipv6/af_inet6.c | 3 ++-
> net/unix/af_unix.c | 23 +++++++++-------------
> 9 files changed, 86 insertions(+), 54 deletions(-)
>
> --
> 2.34.1
>
Thanks Cong, nice set of improvements.
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
next prev parent reply other threads:[~2022-06-18 1:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 16:20 [Patch bpf-next v4 0/4] sockmap: some performance optimizations Cong Wang
2022-06-15 16:20 ` [Patch bpf-next v4 1/4] tcp: introduce tcp_read_skb() Cong Wang
2022-06-16 6:25 ` Eric Dumazet
2022-06-15 16:20 ` [Patch bpf-next v4 2/4] net: introduce a new proto_ops ->read_skb() Cong Wang
2022-06-15 16:20 ` [Patch bpf-next v4 3/4] skmsg: get rid of skb_clone() Cong Wang
2022-06-15 16:20 ` [Patch bpf-next v4 4/4] skmsg: get rid of unncessary memset() Cong Wang
2022-06-18 1:31 ` John Fastabend [this message]
2022-06-20 12:10 ` [Patch bpf-next v4 0/4] sockmap: some performance optimizations patchwork-bot+netdevbpf
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=62ad2b02627ce_24b342089f@john.notmuch \
--to=john.fastabend@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=cong.wang@bytedance.com \
--cc=netdev@vger.kernel.org \
--cc=xiyou.wangcong@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 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).