Skip to content

Commit

Permalink
Disable the xdp_umem_reg size check for now. (#1227)
Browse files Browse the repository at this point in the history
Linux added fields to `xdp_umem_reg`, so disable rustix's sizeof check
for now, to unbreak the `test_sizes` test.
  • Loading branch information
sunfishcode committed Dec 8, 2024
1 parent 78b5a1d commit fa38bd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1809,8 +1809,11 @@ fn test_sizes() {
#[cfg(linux_kernel)]
assert_eq_size!(UCred, libc::ucred);

// Linux added fields to `xdp_umem_reg` so it's bigger now.
/*
#[cfg(target_os = "linux")]
assert_eq_size!(super::xdp::XdpUmemReg, c::xdp_umem_reg);
*/
#[cfg(target_os = "linux")]
assert_eq_size!(super::xdp::XdpOptions, c::xdp_options);
#[cfg(target_os = "linux")]
Expand Down

0 comments on commit fa38bd8

Please sign in to comment.