mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-16 16:25:08 +00:00
fix: remove opportunistic GRO syscall
This commit is contained in:
committed by
Benjamin Saunders
parent
56bba7c0fa
commit
04ba57c643
@@ -135,9 +135,6 @@ impl UdpSocketState {
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
{
|
||||
// opportunistically try to enable GRO. See gro::gro_segments().
|
||||
let _ = set_socket_option(&*io, libc::SOL_UDP, libc::UDP_GRO, OPTION_ON);
|
||||
|
||||
// Forbid IPv4 fragmentation. Set even for IPv6 to account for IPv6 mapped IPv4 addresses.
|
||||
// Set `may_fragment` to `true` if this option is not supported on the platform.
|
||||
may_fragment |= !set_socket_option_supported(
|
||||
|
||||
Reference in New Issue
Block a user