diff options
author | Tahsin Erdogan <[email protected]> | 2023-08-09 09:47:52 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-10 19:33:35 -0700 |
commit | 6231e47b6fadf42da2e7a45b8272e80aed53c444 (patch) | |
tree | 88e72bf2193a5d6e53630b2fec8119940b7a6276 /tools/perf/scripts | |
parent | 5604ac35cb6ec34ad608008ba851568c385fd3f4 (diff) |
tun: avoid high-order page allocation for packet header
When gso.hdr_len is zero and a packet is transmitted via write() or
writev(), all payload is treated as header which requires a contiguous
memory allocation. This allocation request is harder to satisfy, and may
even fail if there is enough fragmentation.
Note that sendmsg() code path limits the linear copy length, so this change
makes write()/writev() and sendmsg() paths more consistent.
Signed-off-by: Tahsin Erdogan <[email protected]>
Acked-by: Jason Wang <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions