Skip to content

Commit 260f64a

Browse files
Yixing Liujgunthorpe
authored andcommitted
RDMA/hns: Enable stash feature of HIP09
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/1629539607-33217-3-git-send-email-liangwenpeng@huawei.com Signed-off-by: Yixing Liu <liuyixing1@huawei.com> Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 0110a1e commit 260f64a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,7 @@ static void set_default_caps(struct hns_roce_dev *hr_dev)
19971997
caps->gid_table_len[0] = HNS_ROCE_V2_GID_INDEX_NUM;
19981998

19991999
if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09) {
2000+
caps->flags |= HNS_ROCE_CAP_FLAG_STASH;
20002001
caps->max_sq_inline = HNS_ROCE_V3_MAX_SQ_INLINE;
20012002
} else {
20022003
caps->max_sq_inline = HNS_ROCE_V2_MAX_SQ_INLINE;

0 commit comments

Comments
 (0)