summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_output.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-07-12 21:52:25 +0100
committerJakub Kicinski <kuba@kernel.org>2022-07-18 19:58:03 -0700
commit8eb77cc73977d88787b37c92831b1c242e035396 (patch)
treeebc67f292b3513e9ca1cfac0599daccf59cb01af /net/ipv6/ip6_output.c
parent32346491ddf24599decca06190ebca03ff9de7f8 (diff)
ipv4: 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. 148 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/ip6_output.c')
0 files changed, 0 insertions, 0 deletions