Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91018f86 authored by Kumar Sanghvi's avatar Kumar Sanghvi Committed by Roland Dreier
Browse files

RDMA/cxgb4: Add missing peer2peer check in MPAv2 code



Don't worry about p2p_type if peer2peer itself is not requested in the
first place.

Signed-off-by: default avatarKumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 6b21d18e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1114,7 +1114,7 @@ static void process_mpa_reply(struct c4iw_ep *ep, struct sk_buff *skb)
	 * generated when moving QP to RTS state.
	 * generated when moving QP to RTS state.
	 * A TERM message will be sent after QP has moved to RTS state
	 * A TERM message will be sent after QP has moved to RTS state
	 */
	 */
	if ((ep->mpa_attr.version == 2) &&
	if ((ep->mpa_attr.version == 2) && peer2peer &&
			(ep->mpa_attr.p2p_type != p2p_type)) {
			(ep->mpa_attr.p2p_type != p2p_type)) {
		ep->mpa_attr.p2p_type = FW_RI_INIT_P2PTYPE_DISABLED;
		ep->mpa_attr.p2p_type = FW_RI_INIT_P2PTYPE_DISABLED;
		rtr_mismatch = 1;
		rtr_mismatch = 1;