Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/rdmavt: Correct multi-port QP iteration

When finding special QPs, the iterator makes an incorrect port
index calculation. Fix the calculation.

Signed-off-by: Dean Luick <dean.luick@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Link: https://patch.msgid.link/177308909468.1279894.5073405674644246445.stgit@awdrv-04.cornelisnetworks.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Dean Luick and committed by
Leon Romanovsky
0fed679e 679eb25d

+1 -1
+1 -1
drivers/infiniband/sw/rdmavt/qp.c
··· 2707 2707 struct rvt_ibport *rvp; 2708 2708 int pidx; 2709 2709 2710 - pidx = n % rdi->ibdev.phys_port_cnt; 2710 + pidx = n / 2; /* QP0 and QP1 */ 2711 2711 rvp = rdi->ports[pidx]; 2712 2712 qp = rcu_dereference(rvp->qp[n & 1]); 2713 2713 } else {