OSDN Git Service

RDMA/hns: Limit extend sq sge num
authorLijun Ou <oulijun@huawei.com>
Sun, 30 Sep 2018 09:00:34 +0000 (17:00 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Oct 2018 22:21:18 +0000 (16:21 -0600)
commitb28ca7cceff8b2cfadebd34a907742cd396c2c33
tree48a5873cc4455ba8922b038939704d707710806b
parent3a63c964eaa168c4ada1076b7c6ffd6a53a9ef86
RDMA/hns: Limit extend sq sge num

According to hip08 limit, the buffer size of extend sge needs to be an
integer wqe_sge_buf_page size. For example, the value of sge_shift field
of qp context is greater or equal to eight when buffer page size is 4K
size. The value of sge_shift field of qp context assigned by
hr_qp->sge.sge_cnt.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_qp.c