From e38d2af27bf6ba6070d16d5b00ab3067f66f4444 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 28 Nov 2024 06:10:45 -0800 Subject: [PATCH] Disable the `xdp_umem_reg` size check for now. (#1227) Linux added fields to `xdp_umem_reg`, so disable rustix's sizeof check for now, to unbreak the `test_sizes` test. --- src/net/types.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/types.rs b/src/net/types.rs index 853d6fbc9..bcda0f987 100644 --- a/src/net/types.rs +++ b/src/net/types.rs @@ -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")]