Skip to content

Commit 01b225e

Browse files
Kumar Sanghvirolandd
authored andcommitted
RDMA/cxgb4: Fix retry with MPAv1 logic for MPAv2
Fix logic so that we don't retry with MPAv1 once we have done that already. Otherwise, we end up retrying with MPAv1 even when its not needed on getting peer aborts - and this could lead to kernel panic. Signed-off-by: Kumar Sanghvi <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent c34c97a commit 01b225e

File tree

1 file changed

+3
-1
lines changed
  • drivers/infiniband/hw/cxgb4

1 file changed

+3
-1
lines changed

drivers/infiniband/hw/cxgb4/cm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,10 @@ static void send_mpa_req(struct c4iw_ep *ep, struct sk_buff *skb,
542542
(mpa_rev_to_use == 2 ? MPA_ENHANCED_RDMA_CONN : 0);
543543
mpa->private_data_size = htons(ep->plen);
544544
mpa->revision = mpa_rev_to_use;
545-
if (mpa_rev_to_use == 1)
545+
if (mpa_rev_to_use == 1) {
546546
ep->tried_with_mpa_v1 = 1;
547+
ep->retry_with_mpa_v1 = 0;
548+
}
547549

548550
if (mpa_rev_to_use == 2) {
549551
mpa->private_data_size +=

0 commit comments

Comments
 (0)