IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Tue, 20 Sep 2016 16:07:01 +0000 (17:07 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:15 +0000 (11:43 -0400)
commitc4a193d3a84766ce01d2cfdf3afaf0252db1ddf4
tree6afec0f83b99422cffe4f329ac6010a9a87932b7
parent1ca5b253adbf7da514475f24151fb700062795c0
IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn

This patch optimized the codes of aeq and ceq interrupt handle
and fixed the bug in the calculation of qpn. For the special
qp(GSI or SMI), calculated the qp number according to physical
port and the qpn reported in the event of async event queue.

Signed-off-by: Wei Hu (Xavier) <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_eq.c
drivers/infiniband/hw/hns/hns_roce_eq.h