diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-07-12 23:52:26 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-19 05:58:29 +0300 |
commit | 773ba4fe9104a64a54d1c00f0fb6ffb95def2b03 (patch) | |
tree | 5eda2b3a67d5dee6e800103090fcebdd3975bd67 /net/ipv6/af_inet6.c | |
parent | 8eb77cc73977d88787b37c92831b1c242e035396 (diff) | |
download | linux-773ba4fe9104a64a54d1c00f0fb6ffb95def2b03.tar.xz |
ipv6: avoid partial copy for zc
Even when zerocopy transmission is requested and possible,
__ip_append_data() will still copy a small chunk of data just because it
allocated some extra linear space (e.g. 128 bytes). It wastes CPU cycles
on copy and iter manipulations and also misalignes potentially aligned
data. Avoid such copies. And as a bonus we can allocate smaller skb.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/af_inet6.c')
0 files changed, 0 insertions, 0 deletions