]> git.karo-electronics.de Git - linux-beck.git/commit
IB/hns: Add phy_port for computing GSI/QPN
authorLijun Ou <oulijun@huawei.com>
Thu, 15 Sep 2016 22:48:10 +0000 (23:48 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:10 +0000 (11:43 -0400)
commit7716809efe5727d7fbf9cbf5689ef4162d999de5
tree0bb10dd764b2a655e53af12fad655c5f4d4a1a6c
parentc24bf895c56157e4d0fba7717ed565f2f3fc25aa
IB/hns: Add phy_port for computing GSI/QPN

This patch mainly adds phy_port to HNS RoCE QP. This shall be
used in calculating the GSI QPN for the port.
Initally when RDMA is being established, all IB ports share a
QPN which later needs to be re-assigned to a particular GSI/QPN
and which is per-port.
This also fixes a bug in base driver where iboe port was being
used instead of phy_port at some places. This values might not
be same always.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_qp.c