]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: tolerate future SMCD versions
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 8 Jul 2020 15:05:15 +0000 (17:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 19:35:15 +0000 (12:35 -0700)
commit82f58b109a334bd2f59663fe65781deb9acadbda
tree2aaec43150c7273cedf19469c011ee52148ac4a6
parentaf320dd1257a236b6424c66b31aa280ef0bd4b4b
net/smc: tolerate future SMCD versions

CLC proposal messages of future SMCD versions could be larger than SMCD
V1 CLC proposal messages.
To enable toleration in SMC V1 the receival of CLC proposal messages
is adapted:
* accept larger length values in CLC proposal
* check trailing eye catcher for incoming CLC proposal with V1 length only
* receive the whole CLC proposal even in cases it does not fit into the
  V1 buffer

Fixes: 70f8114cab611 ("smc: support variable CLC proposal messages")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_clc.c
net/smc/smc_clc.h