Skip to content

Commit eadde3a

Browse files
Chien TungRoland Dreier
authored andcommitted
RDMA/nes: Correct cap.max_inline_data assignment in nes_query_qp()
cap.max_inline_data is incorrectly set in init_attr instead of attr. Set it in attr so subsequent init_attr.cap assignment will get the correct value. Signed-off-by: Chien Tung <chien.tin.tung@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
1 parent b72c409 commit eadde3a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/infiniband/hw/nes/nes_verbs.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,11 +2820,10 @@ static int nes_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
28202820
attr->cap.max_send_wr = nesqp->hwqp.sq_size;
28212821
attr->cap.max_recv_wr = nesqp->hwqp.rq_size;
28222822
attr->cap.max_recv_sge = 1;
2823-
if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA) {
2824-
init_attr->cap.max_inline_data = 0;
2825-
} else {
2826-
init_attr->cap.max_inline_data = 64;
2827-
}
2823+
if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA)
2824+
attr->cap.max_inline_data = 0;
2825+
else
2826+
attr->cap.max_inline_data = 64;
28282827

28292828
init_attr->event_handler = nesqp->ibqp.event_handler;
28302829
init_attr->qp_context = nesqp->ibqp.qp_context;

0 commit comments

Comments
 (0)