diff options
| author | Liu Jian <liujian56@huawei.com> | 2022-04-27 19:51:50 +0800 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-04-28 23:40:01 +0200 |
| commit | 3527bfe6a92d940abfca87929207e734039f496b (patch) | |
| tree | e476bb3fbfef579a4a060fc3d34a51db9f52d447 /tools/perf/scripts/python | |
| parent | bpf, docs: Fix typo "respetively" to "respectively" (diff) | |
| download | linux-3527bfe6a92d940abfca87929207e734039f496b.tar.gz linux-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 <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
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
