mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 16:51:18 -08:00
7e5804da87b93e753ef6dcd68916da871e7957f8
rx_zerocopy (writable at /sys/module/tswg/parameters/rx_zerocopy) makes tswg_decrypt_gso decrypt data messages in place in the received packet's pages, when nothing else can see them, and hand out packets that reference those pages, rather than copy each message into a new packet. It's off because it doesn't pay: on a CPU-bound subnet router it was 7% slower, scatterlist decryption costing more than linear decryption of a cache-hot copy, and on a 200 Gbps c6in.32xlarge router, where the NIC interrupt CPUs' page allocation is the limit, it took tswg's own page allocations out but was still no faster (62.5-63.3 Gbps against 63.4-64.7) at 10% more CPU per byte, since ENA's page per received packet is what binds. It stays for NICs and loads where it might. The copying path, unchanged, moves into tswg_decrypt_message_copy. Updates #426 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: Ieb6aa3531f869dd47d768fe367c424fbd22aa3f1
Languages
Go
96.5%
C
1.2%
TypeScript
0.8%
Shell
0.5%
Swift
0.3%
Other
0.3%