File tree Expand file tree Collapse file tree
src/unix/linux_like/linux/arch Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ SO_CNX_ADVICE
3535SO_COOKIE
3636SO_DETACH_BPF
3737SO_DETACH_FILTER
38- SO_DETACH_REUSEPORT_BPF
3938SO_GET_FILTER
4039SO_INCOMING_CPU
4140SO_INCOMING_NAPI_ID
Original file line number Diff line number Diff line change @@ -3182,6 +3182,7 @@ SO_BINDTODEVICE
31823182SO_BUF_LOCK
31833183SO_BUSY_POLL
31843184SO_BUSY_POLL_BUDGET
3185+ SO_DETACH_REUSEPORT_BPF
31853186SO_DEVMEM_DMABUF
31863187SO_DEVMEM_DONTNEED
31873188SO_DEVMEM_LINEAR
Original file line number Diff line number Diff 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 ;
149149pub const SO_PREFER_BUSY_POLL : c_int = 69 ;
150150pub const SO_BUSY_POLL_BUDGET : c_int = 70 ;
151151pub const SO_NETNS_COOKIE : c_int = 71 ;
Original file line number Diff line number Diff 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 ;
121121pub const SO_PREFER_BUSY_POLL : c_int = 69 ;
122122pub const SO_BUSY_POLL_BUDGET : c_int = 70 ;
123123pub const SO_NETNS_COOKIE : c_int = 71 ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ pub const SO_ZEROCOPY: c_int = 60;
105105pub const SO_TXTIME : c_int = 61 ;
106106pub const SCM_TXTIME : c_int = SO_TXTIME ;
107107pub 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 ;
109109pub const SO_PREFER_BUSY_POLL : c_int = 69 ;
110110pub const SO_BUSY_POLL_BUDGET : c_int = 70 ;
111111pub const SO_NETNS_COOKIE : c_int = 71 ;
Original file line number Diff line number Diff 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 ;
9898pub const SO_PREFER_BUSY_POLL : c_int = 0x0048 ;
9999pub const SO_BUSY_POLL_BUDGET : c_int = 0x0049 ;
100100pub const SO_NETNS_COOKIE : c_int = 0x0050 ;
You can’t perform that action at this time.
0 commit comments