Commit 12d0447
IB/mlx5: Set and get correct qp_num for a DCT QP
When a DCT QP is created on an active lag, it's dctc.port is assigned
in a round-robin way, which is from 1 to dev->lag_port. In this case
when querying this QP, we may get qp_attr.port_num > 2.
Fix this by setting qp->port when modifying a DCT QP, and read port_num
from qp->port instead of dctc.port when querying it.
Fixes: 7c4b1ab ("IB/mlx5: Add DCT RoCE LAG support")
Signed-off-by: Mark Zhang <[email protected]>
Reviewed-by: Maher Sanalla <[email protected]>
Link: https://patch.msgid.link/94c76bf0adbea997f87ffa27674e0a7118ad92a9.1737290358.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <[email protected]>1 parent d97505b commit 12d0447
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4579 | 4579 | | |
4580 | 4580 | | |
4581 | 4581 | | |
| 4582 | + | |
| 4583 | + | |
4582 | 4584 | | |
4583 | 4585 | | |
4584 | 4586 | | |
| |||
5074 | 5076 | | |
5075 | 5077 | | |
5076 | 5078 | | |
5077 | | - | |
| 5079 | + | |
5078 | 5080 | | |
5079 | 5081 | | |
5080 | 5082 | | |
| |||
0 commit comments