Skip to content

Commit

Permalink
RDMA/hns: Enable stash feature of HIP09
Browse files Browse the repository at this point in the history
The stash feature is enabled by default on HIP09.

Fixes: f93c39b ("RDMA/hns: Add support for QP stash")
Fixes: bfefae9 ("RDMA/hns: Add support for CQ stash")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Yixing Liu <[email protected]>
Signed-off-by: Wenpeng Liang <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
Yixing Liu authored and jgunthorpe committed Aug 23, 2021
1 parent 0110a1e commit 260f64a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/hns/hns_roce_hw_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,7 @@ static void set_default_caps(struct hns_roce_dev *hr_dev)
caps->gid_table_len[0] = HNS_ROCE_V2_GID_INDEX_NUM;

if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09) {
caps->flags |= HNS_ROCE_CAP_FLAG_STASH;
caps->max_sq_inline = HNS_ROCE_V3_MAX_SQ_INLINE;
} else {
caps->max_sq_inline = HNS_ROCE_V2_MAX_SQ_INLINE;
Expand Down

0 comments on commit 260f64a

Please sign in to comment.