Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2025 16:03:21 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7560ed3a6b9d - main - mlx5: assert CQE structure size
Message-ID:  <202503131603.52DG3Lb9048758@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202503131603.52DG3Lb9048758>