From 487b43cdf8339f38f3ad9d23d2dea5299cd9ef1b Mon Sep 17 00:00:00 2001 From: Pedro Tammela Date: Thu, 21 Nov 2024 13:06:04 -0300 Subject: [PATCH] Add SO_PREFER_BUSY_POLL and SO_BUSY_POLL_BUDGET Remove the comment of these socket options. Reference: https://elixir.bootlin.com/linux/latest/source/include/uapi/asm-generic/socket.h Note, musl hardcodes 'SO_*' constants instead of inheriting them from the OS. Signed-off-by: Pedro Tammela --- libc-test/semver/TODO-linux.txt | 2 ++ src/unix/linux_like/linux/arch/generic/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libc-test/semver/TODO-linux.txt b/libc-test/semver/TODO-linux.txt index 8427cf1ea12c8..7193ab0c63368 100644 --- a/libc-test/semver/TODO-linux.txt +++ b/libc-test/semver/TODO-linux.txt @@ -31,6 +31,7 @@ SO_ATTACH_REUSEPORT_EBPF SO_BINDTOIFINDEX SO_BPF_EXTENSIONS SO_BSDCOMPAT +SO_BUSY_POLL_BUDGET SO_CNX_ADVICE SO_COOKIE SO_DETACH_BPF @@ -46,6 +47,7 @@ SO_NOFCS SO_NO_CHECK SO_PEERGROUPS SO_PEERNAME +SO_PREFER_BUSY_POLL SO_RCVTIMEO_NEW SO_SECURITY_AUTHENTICATION SO_SECURITY_ENCRYPTION_NETWORK diff --git a/src/unix/linux_like/linux/arch/generic/mod.rs b/src/unix/linux_like/linux/arch/generic/mod.rs index 3e7d3a1117d52..324405fc585f9 100644 --- a/src/unix/linux_like/linux/arch/generic/mod.rs +++ b/src/unix/linux_like/linux/arch/generic/mod.rs @@ -110,10 +110,10 @@ cfg_if! { pub const SO_RCVTIMEO_NEW: c_int = 66; pub const SO_SNDTIMEO_NEW: c_int = 67; pub const SO_DETACH_REUSEPORT_BPF: c_int = 68; + pub const SO_PREFER_BUSY_POLL: c_int = 69; + pub const SO_BUSY_POLL_BUDGET: c_int = 70; } } -// pub const SO_PREFER_BUSY_POLL: c_int = 69; -// pub const SO_BUSY_POLL_BUDGET: c_int = 70; cfg_if! { if #[cfg(any(