net/smc: determine proposed ISM devices

SMCD Version 2 allows to propose up to 8 additional ISM devices
offered to the peer as candidates for SMCD communication.
This patch covers determination of the ISM devices to be proposed.
ISM devices without PNETID are preferred, since ISM devices with
PNETID are a V1 leftover and will disappear over the time.

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>
This commit is contained in:
Ursula Braun
2020-09-26 12:44:27 +02:00
committed by David S. Miller
parent e888a2e833
commit d70bf4f7a9
8 changed files with 135 additions and 58 deletions

View File

@@ -73,7 +73,7 @@ struct smc_pnetentry {
};
/* Check if the pnetid is set */
static bool smc_pnet_is_pnetid_set(u8 *pnetid)
bool smc_pnet_is_pnetid_set(u8 *pnetid)
{
if (pnetid[0] == 0 || pnetid[0] == _S)
return false;