From 7187ded8417200bb02870d49f53e3073f695e0a4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 28 Nov 2024 05:50:11 -0800 Subject: [PATCH] Disable the `xdp_umem_reg` size check for now. 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")]