Date: Tue, 07 Jul 2026 11:30:09 +0000 From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Ariel Ehrenberg <aehrenberg@nvidia.com> Subject: git: 0e9bbbdcbea8 - main - mlx5: pass the full EQE to the DEVX event notifier Message-ID: <6a4ce341.347e7.655c3179@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0e9bbbdcbea8edc6ad259a9428234b494014bc4e commit 0e9bbbdcbea8edc6ad259a9428234b494014bc4e Author: Ariel Ehrenberg <aehrenberg@nvidia.com> AuthorDate: 2026-06-15 08:15:54 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2026-07-07 11:25:32 +0000 mlx5: pass the full EQE to the DEVX event notifier The DEVX event notifier and its helpers expect a full struct mlx5_eqe and read eqe->data from it, but mlx5_eq_int() passed &eqe->data, so the data offset was applied twice. Reviewed by: kib Tested by: Wafa Hamzah <wafah@nvidia.com> Sponsored by: Nvidia networking MFC after: 1 month --- sys/dev/mlx5/mlx5_core/mlx5_eq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_eq.c b/sys/dev/mlx5/mlx5_core/mlx5_eq.c index 5279d71e3e86..1458c0859610 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_eq.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_eq.c @@ -271,7 +271,7 @@ static int mlx5_eq_int(struct mlx5_core_dev *dev, struct mlx5_eq *eq) devx_cb = smp_load_acquire(&dev->priv.eq_table.cb); if (devx_cb != NULL) devx_consumed = - devx_cb(dev, eqe->type, &eqe->data); + devx_cb(dev, eqe->type, eqe); rcu_read_unlock(); }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a4ce341.347e7.655c3179>
