diff options
author | 2025-05-22 01:33:55 +0200 | |
---|---|---|
committer | 2025-05-22 01:43:39 +0200 | |
commit | c92064f1ce35f82bf0c5a183b54e51fd5d58ad50 (patch) | |
tree | e0f56c257ab3d95bf9ac833cf8c616633985f527 /uapi_linux.go | |
parent | device: optimize message encoding (diff) | |
download | wireguard-go-c92064f1ce35f82bf0c5a183b54e51fd5d58ad50.tar.xz wireguard-go-c92064f1ce35f82bf0c5a183b54e51fd5d58ad50.zip |
conn: don't enable GRO on Linux < 5.12
Kernels below 5.12 are missing this:
commit 98184612aca0a9ee42b8eb0262a49900ee9eef0d
Author: Norman Maurer <norman_maurer@apple.com>
Date: Thu Apr 1 08:59:17 2021
net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);
Support for UDP_GRO was added in the past but the implementation for
getsockopt was missed which did lead to an error when we tried to
retrieve the setting for UDP_GRO. This patch adds the missing switch
case for UDP_GRO
Fixes: e20cf8d3f1f7 ("udp: implement GRO for plain UDP sockets.")
Signed-off-by: Norman Maurer <norman_maurer@apple.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
That means we can't set the option and then read it back later. Given
how buggy UDP_GRO is in general on odd kernels, just disable it on older
kernels all together.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'uapi_linux.go')
0 files changed, 0 insertions, 0 deletions