Skip to content

Commit a261786

Browse files
Sindhu-Devalerleon
authored andcommitted
RDMA/irdma: Report RNR NAK generation in device caps
Report RNR NAK generation when device capabilities are queried Fixes: b48c24c ("RDMA/irdma: Implement device supported verb APIs") Signed-off-by: Sindhu-Devale <sindhu.devale@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Link: https://lore.kernel.org/r/20220906223244.1119-6-shiraz.saleem@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 2c88444 commit a261786

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ static int irdma_query_device(struct ib_device *ibdev,
4646
props->max_sge_rd = hw_attrs->uk_attrs.max_hw_read_sges;
4747
props->max_qp_rd_atom = hw_attrs->max_hw_ird;
4848
props->max_qp_init_rd_atom = hw_attrs->max_hw_ord;
49-
if (rdma_protocol_roce(ibdev, 1))
49+
if (rdma_protocol_roce(ibdev, 1)) {
50+
props->device_cap_flags |= IB_DEVICE_RC_RNR_NAK_GEN;
5051
props->max_pkeys = IRDMA_PKEY_TBL_SZ;
52+
}
53+
5154
props->max_ah = rf->max_ah;
5255
props->max_mcast_grp = rf->max_mcg;
5356
props->max_mcast_qp_attach = IRDMA_MAX_MGS_PER_CTX;

0 commit comments

Comments
 (0)