tun2proxy / rust-tun

TUN device creation and handling.
https://docs.rs/tun2/
44 stars 20 forks source link

feat(linux): add generic segmentation/receive offload #45

Closed M0dEx closed 5 months ago

M0dEx commented 7 months ago

This PR adds GSO/GRO capability on Linux to greatly increase overall throughput.

More information about GSO/GRO: https://docs.kernel.org/networking/segmentation-offloads.html Motivation behind implementing these offloads: https://tailscale.com/blog/throughput-improvements

Using https://github.com/WireGuard/wireguard-go/blob/master/tun/offload_linux.go as a reference for implementation.

GyulyVGC commented 6 months ago

That's a feature I'm really interested in as well!

Is something specific blocking this PR? I'd be happy to help if I can.

M0dEx commented 6 months ago

That's a feature I'm really interested in as well!

Is something specific blocking this PR? I'd be happy to help if I can.

Hi, I did not have any free time for this PR in the last month or so, help would be welcome.