]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net/smc: rework pnet table to support SMC-R failover
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 29 Apr 2020 15:10:37 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2020 19:26:32 +0000 (12:26 -0700)
commitfdff704dc60418e9a1bac78ae09c857d05c65aa3
treecb062642b536079b4771f8db824cbbf2c9b0d728
parent21615efa6a69891fa287bade979d56dd68b09878
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>
net/smc/smc_ib.c
net/smc/smc_ism.c
net/smc/smc_pnet.c
net/smc/smc_pnet.h