mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
RDMA/mlx5: Use QP port when decoding responder CQEs
The responder CQE path determines the link layer via rdma_port_get_link_layer(). Use qp->port instead of hardcoding port 1, which can mis-decode completions on multi-port devices. Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn> Link: https://patch.msgid.link/20260410074046.2044595-1-zhaochenguang@kylinos.cn Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
e79389115b
commit
194762e6e4
|
|
@ -169,7 +169,8 @@ enum {
|
|||
static void handle_responder(struct ib_wc *wc, struct mlx5_cqe64 *cqe,
|
||||
struct mlx5_ib_qp *qp)
|
||||
{
|
||||
enum rdma_link_layer ll = rdma_port_get_link_layer(qp->ibqp.device, 1);
|
||||
enum rdma_link_layer ll =
|
||||
rdma_port_get_link_layer(qp->ibqp.device, qp->port);
|
||||
struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device);
|
||||
struct mlx5_ib_srq *srq = NULL;
|
||||
struct mlx5_ib_wq *wq;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user