]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0f0c07c5d66db76e981bcd3d8437b6c89c9daa0
treefde15ccaa6888d7058d401943134f3e18f139274
parentc89b2e4eb941e2aeb458544ee033b99f71e3dfd7
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