net/smc: handle incoming CDC validation message
authorKarsten Graul <kgraul@linux.ibm.com>
Mon, 4 May 2020 12:18:40 +0000 (14:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:54:39 +0000 (10:54 -0700)
commitb286a0651e4404ab96cdfdcdad8a839a26b3751e
treefde15ccaa6888d7058d401943134f3e18f139274
parent29bd73dba4f72970895a2459f7190d388f5204f7
net/smc: handle incoming CDC validation message

Call smc_cdc_msg_validate() when a CDC message with the failover
validation bit enabled was received. Validate that the sequence number
sent with the message is one we already have received. If not, messages
were lost and the connection is terminated using a new abort_work.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc.h
net/smc/smc_cdc.c
net/smc/smc_core.c