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

Commit 5607016c authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: no cursor update send in state SMC_INIT



If a writer blocked condition is received without data, the current
consumer cursor is immediately sent. Servers could already receive this
condition in state SMC_INIT without finished tx-setup. This patch
avoids sending a consumer cursor update in this case.

Signed-off-by: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f664e37d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ static void smc_cdc_msg_recv_action(struct smc_sock *smc,
			/* force immediate tx of current consumer cursor, but
			 * under send_lock to guarantee arrival in seqno-order
			 */
			if (smc->sk.sk_state != SMC_INIT)
				smc_tx_sndbuf_nonempty(conn);
		}
	}