git: 7560ed3a6b9d - main - mlx5: assert CQE structure size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Mar 2025 16:03:21 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7560ed3a6b9deff85b2e865b6db74eb5e0f5f64b commit 7560ed3a6b9deff85b2e865b6db74eb5e0f5f64b Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-02-10 02:02:03 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-03-13 16:00:53 +0000 mlx5: assert CQE structure size Reviewed by: Ariel Ehrenberg <aehrenberg@nvidia.com>, Slava Shwartsman <slavash@nvidia.com> Sponsored by: NVidia networking MFC after: 1 week --- sys/dev/mlx5/device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/mlx5/device.h b/sys/dev/mlx5/device.h index 67c129a0f2b3..e6d46507a5d2 100644 --- a/sys/dev/mlx5/device.h +++ b/sys/dev/mlx5/device.h @@ -727,6 +727,7 @@ struct mlx5_cqe64 { u8 signature; u8 op_own; }; +_Static_assert(sizeof(struct mlx5_cqe64) == 0x40, "CQE layout broken"); #define MLX5_CQE_TSTMP_PTP (1ULL << 63)