Skip to content

Commit

Permalink
Add SO_PREFER_BUSY_POLL and SO_BUSY_POLL_BUDGET
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tammela authored and tgross35 committed Nov 21, 2024
1 parent 0a8f04a commit 23732fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2882,6 +2882,7 @@ SOL_X25
SOMAXCONN
SO_BINDTODEVICE
SO_BUSY_POLL
SO_BUSY_POLL_BUDGET
SO_DOMAIN
SO_EE_OFFENDER
SO_EE_ORIGIN_ICMP
Expand All @@ -2901,6 +2902,7 @@ SO_PASSSEC
SO_PEEK_OFF
SO_PEERCRED
SO_PEERSEC
SO_PREFER_BUSY_POLL
SO_RCVBUFFORCE
SO_REUSEPORT
SO_RXQ_OVFL
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/arch/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,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(
Expand Down

0 comments on commit 23732fe

Please sign in to comment.