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:

committed by
David S. Miller

parent
e888a2e833
commit
d70bf4f7a9
@@ -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;
|
||||
|
Reference in New Issue
Block a user