The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0e9bbbdcbea8edc6ad259a9428234b494014bc4e

commit 0e9bbbdcbea8edc6ad259a9428234b494014bc4e
Author:     Ariel Ehrenberg <[email protected]>
AuthorDate: 2026-06-15 08:15:54 +0000
Commit:     Konstantin Belousov <[email protected]>
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 <[email protected]>
    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();
                }
 

Reply via email to