]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: check for ip prefix and subnet
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 12 Apr 2019 10:57:25 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
commit122dec4c64579df3f2d4dd10a74073d55e394d7e
treebc649c24343d62b99d4ffde1aa31828323fcd262
parent9f28ca59dd564dfb6a1df2ce77c0c7accf02cce7
net/smc: check for ip prefix and subnet

The check for a matching ip prefix and subnet was only done for SMC-R
in smc_listen_rdma_check() but not when an SMC-D connection was
possible. Rename the function into smc_listen_prfx_check() and move its
call to a place where it is called for both SMC variants.
And add a new CLC DECLINE reason for the case when the IP prefix or
subnet check fails so the reason for the failing SMC connection can be
found out more easily.

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