tailscale/net/tstun
Maisem Ali eb1adf629f net/tstun: reuse buffered packet from pool
We would call parsedPacketPool.Get() for all packets received in Read/Write.
This was wasteful and not necessary, fetch a single *packet.Parsed for
all packets.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-12-09 23:37:15 +05:00
..
constants.go wgengine/netstack: make netstack MTU be 1280 also 2022-06-01 12:16:41 -07:00
fake.go net/tstun, wgengine/magicsock: enable vectorized I/O on Linux (#6663) 2022-12-08 17:58:14 -08:00
ifstatus_noop.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
ifstatus_windows.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
linkattrs_linux.go net/tstun: set link speed to SPEED_UNKNOWN 2022-02-27 23:11:35 -08:00
linkattrs_notlinux.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
tap_linux.go net/tstun, wgengine/magicsock: enable vectorized I/O on Linux (#6663) 2022-12-08 17:58:14 -08:00
tap_unsupported.go net/tstun, wgengine/magicsock: enable vectorized I/O on Linux (#6663) 2022-12-08 17:58:14 -08:00
tun_linux.go net/tstun: diagnose /dev/net/tun fd leak, give better failure message 2022-07-16 14:21:56 -07:00
tun_macos.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
tun_notwindows.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
tun_windows.go net/tstun: update tun_windows for wintun 0.14 API revisions, update wireguard-go dependency to 82d2aa87aa623cb5143a41c3345da4fb875ad85d 2021-10-12 16:07:46 -06:00
tun.go net/tstun, wgengine/magicsock: enable vectorized I/O on Linux (#6663) 2022-12-08 17:58:14 -08:00
wrap_test.go net/tstun: reuse buffered packet from pool 2022-12-09 23:37:15 +05:00
wrap.go net/tstun: reuse buffered packet from pool 2022-12-09 23:37:15 +05:00