aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorLiu Jian <[email protected]>2022-04-27 11:51:50 +0000
committerDaniel Borkmann <[email protected]>2022-04-28 21:40:01 +0000
commit3527bfe6a92d940abfca87929207e734039f496b (patch)
treee476bb3fbfef579a4a060fc3d34a51db9f52d447 /tools/lib/bpf/libbpf.c
parentbpf, docs: Fix typo "respetively" to "respectively" (diff)
downloadkernel-3527bfe6a92d940abfca87929207e734039f496b.tar.gz
kernel-3527bfe6a92d940abfca87929207e734039f496b.zip
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions