summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_device.h
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2019-07-08 21:41:20 +0800
committerJason Gunthorpe <jgg@mellanox.com>2019-07-25 12:23:10 -0300
commit947441eadb909b031fc0793d049e1af0d5855a21 (patch)
tree9501cb44a1b76891e4e2e892a3309841b1c463d3 /drivers/infiniband/hw/hns/hns_roce_device.h
parent606bf89e98efb1174891c4d96afd39c1a974ce3d (diff)
downloadlinux-947441eadb909b031fc0793d049e1af0d5855a21.tar.bz2
RDMA/hns: Use a separated function for setting extend sge paramters
Moves the related lines of setting extended sge size into a separate function as well as remove the unused variables. Link: https://lore.kernel.org/r/1562593285-8037-5-git-send-email-oulijun@huawei.com Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_device.h')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_device.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index a548b28aab63..b39497a13b61 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -654,8 +654,6 @@ struct hns_roce_qp {
u32 doorbell_qpn;
__le32 sq_signal_bits;
u32 sq_next_wqe;
- int sq_max_wqes_per_wr;
- int sq_spare_wqes;
struct hns_roce_wq sq;
struct ib_umem *umem;