Skip to content

Commit ebed7b7

Browse files
Wenpeng Liangjgunthorpe
authored andcommitted
RDMA/hns: Fix wrong field of SRQ number the device supports
The SRQ capacity is got from the firmware, whose field should be ended at bit 19. Fixes: ba6bb7e ("RDMA/hns: Add interfaces to get pf capabilities from firmware") Link: https://lore.kernel.org/r/1606382812-23636-1-git-send-email-liweihang@huawei.com Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 3d2a9d6 commit ebed7b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/hns/hns_roce_hw_v2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ struct hns_roce_query_pf_caps_d {
16611661
__le32 rsv_uars_rsv_qps;
16621662
};
16631663
#define V2_QUERY_PF_CAPS_D_NUM_SRQS_S 0
1664-
#define V2_QUERY_PF_CAPS_D_NUM_SRQS_M GENMASK(20, 0)
1664+
#define V2_QUERY_PF_CAPS_D_NUM_SRQS_M GENMASK(19, 0)
16651665

16661666
#define V2_QUERY_PF_CAPS_D_RQWQE_HOP_NUM_S 20
16671667
#define V2_QUERY_PF_CAPS_D_RQWQE_HOP_NUM_M GENMASK(21, 20)

0 commit comments

Comments
 (0)