aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2020-01-09 20:10:52 +0800
committerJason Gunthorpe <jgg@mellanox.com>2020-01-10 11:17:27 -0400
commit468d020e2f02867b8ec561461a1689cd4365e493 (patch)
tree54478fac0f786c0470bb8a9eb4e77907e50f6b2e /drivers/infiniband/hw/hns/hns_roce_hw_v1.c
parentIB/hfi1: Add RcvShortLengthErrCnt to hfi1stats (diff)
downloadlinux-dev-468d020e2f02867b8ec561461a1689cd4365e493.tar.xz
linux-dev-468d020e2f02867b8ec561461a1689cd4365e493.zip
RDMA/hns: Bugfix for posting a wqe with sge
Driver should first check whether the sge is valid, then fill the valid sge and the caculated total into hardware, otherwise invalid sges will cause an error. Fixes: 52e3b42a2f58 ("RDMA/hns: Filter for zero length of sge in hip08 kernel mode") Fixes: 7bdee4158b37 ("RDMA/hns: Fill sq wqe context of ud type in hip08") Link: https://lore.kernel.org/r/1578571852-13704-1-git-send-email-liweihang@huawei.com Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_hw_v1.c')
0 files changed, 0 insertions, 0 deletions