[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6269bccd77ead_d9e8d20820@john.notmuch>
Date: Wed, 27 Apr 2022 14:59:41 -0700
From: John Fastabend <john.fastabend@...il.com>
To: Liu Jian <liujian56@...wei.com>, john.fastabend@...il.com,
daniel@...earbox.net, jakub@...udflare.com, davem@...emloft.net,
kuba@...nel.org, pabeni@...hat.com, ast@...nel.org,
andrii@...nel.org, kafai@...com, songliubraving@...com, yhs@...com,
kpsingh@...nel.org, netdev@...r.kernel.org, bpf@...r.kernel.org
Cc: liujian56@...wei.com
Subject: RE: [PATCH bpf-next] bpf, sockmap: Call skb_linearize only when
required in sk_psock_skb_ingress_enqueue
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@...wei.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@...il.com>
Powered by blists - more mailing lists