wireguard-go/device
Jordan Whited 9e2f386022 conn, device, tun: implement vectorized I/O on Linux
Implement TCP offloading via TSO and GRO for the Linux tun.Device, which
is made possible by virtio extensions in the kernel's TUN driver.

Delete conn.LinuxSocketEndpoint in favor of a collapsed conn.StdNetBind.
conn.StdNetBind makes use of recvmmsg() and sendmmsg() on Linux. All
platforms now fall under conn.StdNetBind, except for Windows, which
remains in conn.WinRingBind, which still needs to be adjusted to handle
multiple packets.

Also refactor sticky sockets support to eventually be applicable on
platforms other than just Linux. However Linux remains the sole platform
that fully implements it for now.

Co-authored-by: James Tucker <james@tailscale.com>
Signed-off-by: James Tucker <james@tailscale.com>
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-10 14:52:17 +01:00
..
allowedips_rand_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
allowedips_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
allowedips.go global: bump copyright year 2023-02-07 20:39:29 -03:00
bind_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
channels.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
constants.go global: bump copyright year 2023-02-07 20:39:29 -03:00
cookie_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
cookie.go global: bump copyright year 2023-02-07 20:39:29 -03:00
device_test.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
device.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
devicestate_string.go device: remove deviceStateNew 2021-02-09 15:39:19 +01:00
endpoint_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
indextable.go global: bump copyright year 2023-02-07 20:39:29 -03:00
ip.go global: bump copyright year 2023-02-07 20:39:29 -03:00
kdf_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
keypair.go global: bump copyright year 2023-02-07 20:39:29 -03:00
logger.go global: bump copyright year 2023-02-07 20:39:29 -03:00
mobilequirks.go global: bump copyright year 2023-02-07 20:39:29 -03:00
noise_test.go device: uniformly check ECDH output for zeros 2023-02-16 16:33:14 +01:00
noise-helpers.go device: uniformly check ECDH output for zeros 2023-02-16 16:33:14 +01:00
noise-protocol.go device: uniformly check ECDH output for zeros 2023-02-16 16:33:14 +01:00
noise-types.go global: bump copyright year 2023-02-07 20:39:29 -03:00
peer.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
pools_test.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
pools.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
queueconstants_android.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
queueconstants_default.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
queueconstants_ios.go global: bump copyright year 2023-02-07 20:39:29 -03:00
queueconstants_windows.go global: bump copyright year 2023-02-07 20:39:29 -03:00
race_disabled_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
race_enabled_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
receive.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
send.go conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
sticky_default.go global: remove old-style build tags 2021-10-12 12:02:10 -06:00
sticky_linux.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
timers.go global: bump copyright year 2023-02-07 20:39:29 -03:00
tun.go global: bump copyright year 2023-02-07 20:39:29 -03:00
uapi.go global: bump copyright year 2023-02-07 20:39:29 -03:00