Skip to content

Commit 817167c

Browse files
committed
linux: add SO_DETACH_REUSEPORT_BPF
1 parent 545663c commit 817167c

7 files changed

Lines changed: 7 additions & 5 deletions

File tree

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4291,6 +4291,8 @@ fn test_linux(target: &str) {
42914291
| "PR_SCHED_CORE_SHARE_TO" => return true,
42924292

42934293
/* Added in versions more recent than what we test */
4294+
// Since 1.2.0
4295+
"SO_DETACH_REUSEPORT_BPF" => return true,
42944296
// Since 1.2.3
42954297
"SO_BUSY_POLL_BUDGET" | "SO_PREFER_BUSY_POLL" => return true,
42964298

libc-test/semver/TODO-linux.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ SO_CNX_ADVICE
3535
SO_COOKIE
3636
SO_DETACH_BPF
3737
SO_DETACH_FILTER
38-
SO_DETACH_REUSEPORT_BPF
3938
SO_GET_FILTER
4039
SO_INCOMING_CPU
4140
SO_INCOMING_NAPI_ID

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,6 +3182,7 @@ SO_BINDTODEVICE
31823182
SO_BUF_LOCK
31833183
SO_BUSY_POLL
31843184
SO_BUSY_POLL_BUDGET
3185+
SO_DETACH_REUSEPORT_BPF
31853186
SO_DEVMEM_DMABUF
31863187
SO_DEVMEM_DONTNEED
31873188
SO_DEVMEM_LINEAR

src/unix/linux_like/linux/arch/generic/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ cfg_if! {
143143
pub const SO_TIMESTAMPING_NEW: c_int = 65;
144144
pub const SO_RCVTIMEO_NEW: c_int = 66;
145145
pub const SO_SNDTIMEO_NEW: c_int = 67;
146-
pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
147146
}
148147
}
148+
pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
149149
pub const SO_PREFER_BUSY_POLL: c_int = 69;
150150
pub const SO_BUSY_POLL_BUDGET: c_int = 70;
151151
pub const SO_NETNS_COOKIE: c_int = 71;

src/unix/linux_like/linux/arch/mips/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ cfg_if! {
117117
}
118118
}
119119

120-
// pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
120+
pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
121121
pub const SO_PREFER_BUSY_POLL: c_int = 69;
122122
pub const SO_BUSY_POLL_BUDGET: c_int = 70;
123123
pub const SO_NETNS_COOKIE: c_int = 71;

src/unix/linux_like/linux/arch/powerpc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub const SO_ZEROCOPY: c_int = 60;
105105
pub const SO_TXTIME: c_int = 61;
106106
pub const SCM_TXTIME: c_int = SO_TXTIME;
107107
pub const SO_BINDTOIFINDEX: c_int = 62;
108-
// pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
108+
pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
109109
pub const SO_PREFER_BUSY_POLL: c_int = 69;
110110
pub const SO_BUSY_POLL_BUDGET: c_int = 70;
111111
pub const SO_NETNS_COOKIE: c_int = 71;

src/unix/linux_like/linux/arch/sparc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub const SO_TIMESTAMPING: c_int = 0x0023;
9494
// pub const SO_TIMESTAMPING_NEW: c_int = 0x0043;
9595
// pub const SO_RCVTIMEO_NEW: c_int = 0x0044;
9696
// pub const SO_SNDTIMEO_NEW: c_int = 0x0045;
97-
// pub const SO_DETACH_REUSEPORT_BPF: c_int = 0x0047;
97+
pub const SO_DETACH_REUSEPORT_BPF: c_int = 0x0047;
9898
pub const SO_PREFER_BUSY_POLL: c_int = 0x0048;
9999
pub const SO_BUSY_POLL_BUDGET: c_int = 0x0049;
100100
pub const SO_NETNS_COOKIE: c_int = 0x0050;

0 commit comments

Comments
 (0)