RDMA/hns: Add vendor_err info to error WC
Subsystems (2)
PATCH 1/1 RDMA/hns: Add vendor_err info to error WC
From: Lang Cheng <[email protected]>
ULP can get more error information of CQ through verbs instead of prints.
Signed-off-by Lang Cheng <[email protected]>
Signed-off-by Weihang Li <[email protected]>
--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +1 -0
@@ -3544,6 +3544,7 @@ static void get_cqe_status(struct hns_roce_dev *hr_dev, struct hns_roce_qp *qp,ibdev_err (&hr_dev->ib_dev,"error cqe status 0x%x:\n" , cqe_status);print_hex_dump (KERN_ERR ,"" ,DUMP_PREFIX_NONE ,16 ,4 , cqe, cq->cqe_size, false); + wc->vendor_err =hr_reg_read (cqe,CQE_SUB_STATUS );/* * For hns ROCEE, GENERAL_ERR is an error type that is not defined in
Signature · 1 line
2.7.4
Quoted 9 lines · Weihang Li
From: Lang Cheng <[email protected]>
ULP can get more error information of CQ through verbs instead of prints.
Signed-off-by Lang Cheng <[email protected]>Signed-off-by Weihang Li <[email protected]>--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 + 1 file changed, 1 insertion(+)
Applied to for-next, thanks
Jason