diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-04-29 17:10:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-29 12:26:32 -0700 |
commit | fdff704dc60418e9a1bac78ae09c857d05c65aa3 (patch) | |
tree | cb062642b536079b4771f8db824cbbf2c9b0d728 /net/smc/smc_pnet.h | |
parent | 21615efa6a69891fa287bade979d56dd68b09878 (diff) | |
download | linux-stable-fdff704dc60418e9a1bac78ae09c857d05c65aa3.tar.gz linux-stable-fdff704dc60418e9a1bac78ae09c857d05c65aa3.tar.bz2 linux-stable-fdff704dc60418e9a1bac78ae09c857d05c65aa3.zip |
net/smc: rework pnet table to support SMC-R failover
The pnet table stored pnet ids in the smc device structures. When a
device is going down its smc device structure is freed, and when the
device is brought online again it no longer has a pnet id set.
Rework the pnet table implementation to store the device name with their
assigned pnet id and apply the pnet id to devices when they are
registered.
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_pnet.h')
-rw-r--r-- | net/smc/smc_pnet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/smc/smc_pnet.h b/net/smc/smc_pnet.h index 4564e4d69c2e..ea207f8fc6f7 100644 --- a/net/smc/smc_pnet.h +++ b/net/smc/smc_pnet.h @@ -46,5 +46,7 @@ void smc_pnet_exit(void); void smc_pnet_net_exit(struct net *net); void smc_pnet_find_roce_resource(struct sock *sk, struct smc_init_info *ini); void smc_pnet_find_ism_resource(struct sock *sk, struct smc_init_info *ini); +int smc_pnetid_by_table_ib(struct smc_ib_device *smcibdev, u8 ib_port); +int smc_pnetid_by_table_smcd(struct smcd_dev *smcd); #endif |