]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: reduce redundant checksumming in tcpGRO()
authorJordan Whited <jordan@tailscale.com>
Mon, 2 Oct 2023 21:46:13 +0000 (14:46 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 10 Oct 2023 13:07:36 +0000 (15:07 +0200)
commit8a015f7c766564c21f6bef6fdddedce7e2ede830
tree00da122a1403ff7d0269ab767d8f74bf4f58e999
parent895d6c23cd60bd0522c5b6598a69ad6c5f1ab3a7
tun: reduce redundant checksumming in tcpGRO()

IPv4 header and pseudo header checksums were being computed on every
merge operation. Additionally, virtioNetHdr was being written at the
same time. This delays those operations until after all coalescing has
occurred.

Reviewed-by: Adrian Dewhurst <adrian@tailscale.com>
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/tcp_offload_linux.go