We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f1f57 commit 67ee8d4Copy full SHA for 67ee8d4
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h
@@ -284,9 +284,10 @@ int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
284
int bnxt_qplib_init_rcfw(struct bnxt_qplib_rcfw *rcfw,
285
struct bnxt_qplib_ctx *ctx, int is_virtfn);
286
void bnxt_qplib_mark_qp_error(void *qp_handle);
287
+
288
static inline u32 map_qp_id_to_tbl_indx(u32 qid, struct bnxt_qplib_rcfw *rcfw)
289
{
290
/* Last index of the qp_tbl is for QP1 ie. qp_tbl_size - 1*/
- return (qid == 1) ? rcfw->qp_tbl_size - 1 : qid % rcfw->qp_tbl_size - 2;
291
+ return (qid == 1) ? rcfw->qp_tbl_size - 1 : (qid % (rcfw->qp_tbl_size - 2));
292
}
293
#endif /* __BNXT_QPLIB_RCFW_H__ */
0 commit comments