Liu Jian 3527bfe6a9 bpf, sockmap: Call skb_linearize only when required in sk_psock_skb_ingress_enqueue
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>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20220427115150.210213-1-liujian56@huawei.com
2022-04-28 23:40:01 +02:00
..
2022-03-17 16:34:49 -07:00
2022-03-07 11:40:41 +00:00
2022-02-25 09:36:06 +01:00
2022-04-25 12:08:40 +01:00
2022-04-07 21:06:41 -07:00
2022-04-22 12:47:50 +01:00
2022-03-03 09:55:28 +00:00