From: John Fastabend <john.fastabend@gmail•com>
To: Liu Jian <liujian56@huawei•com>,
john.fastabend@gmail•com, daniel@iogearbox•net,
jakub@cloudflare•com, davem@davemloft•net, kuba@kernel•org,
pabeni@redhat•com, ast@kernel•org, andrii@kernel•org,
kafai@fb•com, songliubraving@fb•com, yhs@fb•com,
kpsingh@kernel•org, netdev@vger•kernel.org, bpf@vger•kernel.org
Cc: liujian56@huawei•com
Subject: RE: [PATCH bpf-next] bpf, sockmap: Call skb_linearize only when required in sk_psock_skb_ingress_enqueue
Date: Wed, 27 Apr 2022 14:59:41 -0700 [thread overview]
Message-ID: <6269bccd77ead_d9e8d20820@john.notmuch> (raw)
In-Reply-To: <20220427115150.210213-1-liujian56@huawei.com>
Liu Jian wrote:
> The skb_to_sgvec fails only when the number of frag_list and frags exceeds
> MAX_MSG_FRAGS. Therefore, we can call skb_linearize only when the
> conversion fails.
>
> Signed-off-by: Liu Jian <liujian56@huawei•com>
> ---
Looks good. I guess performance improvement for some use cases with lots of packets that
no longer need linearizing must be fairly good.
Acked-by: John Fastabend <john.fastabend@gmail•com>
next prev parent reply other threads:[~2022-04-27 21:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 11:51 [PATCH bpf-next] bpf, sockmap: Call skb_linearize only when required in sk_psock_skb_ingress_enqueue Liu Jian
2022-04-27 21:59 ` John Fastabend [this message]
2022-04-28 21:50 ` 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=6269bccd77ead_d9e8d20820@john.notmuch \
--to=john.fastabend@gmail$(echo .)com \
--cc=andrii@kernel$(echo .)org \
--cc=ast@kernel$(echo .)org \
--cc=bpf@vger$(echo .)kernel.org \
--cc=daniel@iogearbox$(echo .)net \
--cc=davem@davemloft$(echo .)net \
--cc=jakub@cloudflare$(echo .)com \
--cc=kafai@fb$(echo .)com \
--cc=kpsingh@kernel$(echo .)org \
--cc=kuba@kernel$(echo .)org \
--cc=liujian56@huawei$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=songliubraving@fb$(echo .)com \
--cc=yhs@fb$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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