net/smc: prepare for more proposed ISM devices
SMCD Version 2 allows proposing of up to 8 ISM devices in addition to the native ISM device of SMCD Version 1. This patch prepares the struct smc_init_info to deal with these additional 8 ISM devices. 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
e15c6c46de
commit
3fc6493761
@@ -933,10 +933,10 @@ static void smc_pnet_find_ism_by_pnetid(struct net_device *ndev,
|
||||
list_for_each_entry(ismdev, &smcd_dev_list.list, list) {
|
||||
if (smc_pnet_match(ismdev->pnetid, ndev_pnetid) &&
|
||||
!ismdev->going_away &&
|
||||
(!ini->ism_peer_gid ||
|
||||
!smc_ism_cantalk(ini->ism_peer_gid, ini->vlan_id,
|
||||
(!ini->ism_peer_gid[0] ||
|
||||
!smc_ism_cantalk(ini->ism_peer_gid[0], ini->vlan_id,
|
||||
ismdev))) {
|
||||
ini->ism_dev = ismdev;
|
||||
ini->ism_dev[0] = ismdev;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -970,7 +970,7 @@ void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini)
|
||||
{
|
||||
struct dst_entry *dst = sk_dst_get(sk);
|
||||
|
||||
ini->ism_dev = NULL;
|
||||
ini->ism_dev[0] = NULL;
|
||||
if (!dst)
|
||||
goto out;
|
||||
if (!dst->dev)
|
||||
|
Reference in New Issue
Block a user