]> www.infradead.org Git - users/dwmw2/linux.git/commit
wireguard: device: support big tcp GSO
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 17 Nov 2024 21:20:30 +0000 (22:20 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 03:32:27 +0000 (19:32 -0800)
commit06a34f7db773e01efa8a90c5b4d912207a80dd60
tree307759d8d81b3c2634b203c4d9019970fe87da59
parent0290abc9860917f1ee8b58309c2bbd740a39ee8e
wireguard: device: support big tcp GSO

Advertise GSO_MAX_SIZE as TSO max size in order support BIG TCP for wireguard.
This helps to improve wireguard performance a bit when enabled as it allows
wireguard to aggregate larger skbs in wg_packet_consume_data_done() via
napi_gro_receive(), but also allows the stack to build larger skbs on xmit
where the driver then segments them before encryption inside wg_xmit().
We've seen a 15% improvement in TCP stream performance.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://patch.msgid.link/20241117212030.629159-5-Jason@zx2c4.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wireguard/device.c