net/smc: stop links when their GID is removed
authorKarsten Graul <kgraul@linux.ibm.com>
Sat, 16 Oct 2021 09:37:52 +0000 (11:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Oct 2021 13:58:13 +0000 (14:58 +0100)
commit29397e34c76b57ce596493008176cf374f1cb867
treeff5b7bfb081c8b75c9f60ea7cf42c197ceda1e65
parentb0539f5eddc2eefd24378bda3ee9cbbca916f58d
net/smc: stop links when their GID is removed

With SMC-Rv2 the GID is an IP address that can be deleted from the
device. When an IB_EVENT_GID_CHANGE event is provided then iterate over
all active links and check if their GID is still defined. Otherwise
stop the affected link.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ib.c