From 3876b60022cbb420a62cef5cee2272e91a977ba1 Mon Sep 17 00:00:00 2001 From: Pedro Tammela Date: Wed, 11 Sep 2024 16:52:51 -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 Signed-off-by: Pedro Tammela --- src/unix/linux_like/linux/arch/generic/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/linux_like/linux/arch/generic/mod.rs b/src/unix/linux_like/linux/arch/generic/mod.rs index 2f437e16db26a..ef6b88dbbb69b 100644 --- a/src/unix/linux_like/linux/arch/generic/mod.rs +++ b/src/unix/linux_like/linux/arch/generic/mod.rs @@ -106,8 +106,8 @@ cfg_if! { 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(target_arch = "x86",