diff options
| author | Yishai Hadas <yishaih@nvidia.com> | 2026-09-15 17:09:31 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-28 08:13:15 -0400 |
| commit | 05a078c97eb0bb7158526dae414b853737692485 (patch) | |
| tree | 56f3313f3c4c6bda61fdc63d1683024619e06c8c /tools/lib/python/kdoc/python_version.py | |
| parent | a4fa6497002c80b55ebe597242a1bba2ff268886 (diff) | |
RDMA/mlx5: Set QP event handler before firmware QPC insertion
Four QP creation paths assigned base->container_mibqp and
base->mqp.event after the firmware create call that inserts the QP into
dev->qp_table.tree. A firmware error EQE in that window reaches
qp->event() with a NULL pointer.
Move both assignments before the firmware call.
Also set ibqp.qp_num inside mlx5_qpc_create_qp() before
create_resource_common() so an EQE arriving early does not observe
qp_num==0.
In addition, add a WARN_ON_ONCE(!qp->event) guard in
rsc_event_notifier() as a safeguard for future regressions.
Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://patch.msgid.link/20260915140933.40580-14-yishaih@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
