Pavel Begunkov 8eb77cc739 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>
2022-07-18 19:58:03 -07:00
..
2021-06-30 15:51:09 -07:00
2022-05-25 12:22:58 -07:00
2022-04-12 14:56:33 -07:00
2021-05-17 15:29:35 -07:00
2022-04-30 15:12:58 +01:00
2022-07-18 19:58:03 -07:00
2021-10-13 09:41:37 -07:00
2021-06-30 15:51:09 -07:00
2021-10-13 09:41:37 -07:00
2022-04-30 15:12:58 +01:00
2022-04-12 14:56:33 -07:00
2021-05-17 15:29:35 -07:00
2021-05-17 15:29:35 -07:00
2022-05-16 10:31:06 +01:00
2021-05-17 15:29:35 -07:00