diff options
| author | Ariel Ehrenberg <aehrenberg@nvidia.com> | 2026-06-15 08:15:54 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-07-07 11:25:32 +0000 |
| commit | 0e9bbbdcbea8edc6ad259a9428234b494014bc4e (patch) | |
| tree | 48dc4bf2cc5cfd95475e5373fc70cfab7d829b94 | |
| parent | a7298669cd53a9fc8446c53db6872bc2f64c508d (diff) | |
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
| -rw-r--r-- | sys/dev/mlx5/mlx5_core/mlx5_eq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |
