net/smc: switch connections to alternate link
Add smc_switch_conns() to switch all connections from a link that is going down. Find an other link to switch the connections to, and switch each connection to the new link. smc_switch_cursor() updates the cursors of a connection to the state of the last successfully sent CDC message. When there is no link to switch to, terminate the link group. Call smc_switch_conns() when a link is going down. And with the possibility that links of connections can switch adapt CDC and TX functions to detect and handle link switches. 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>
Showing
- net/smc/smc_cdc.c 16 additions, 2 deletionsnet/smc/smc_cdc.c
- net/smc/smc_cdc.h 1 addition, 0 deletionsnet/smc/smc_cdc.h
- net/smc/smc_core.c 130 additions, 2 deletionsnet/smc/smc_core.c
- net/smc/smc_core.h 2 additions, 0 deletionsnet/smc/smc_core.h
- net/smc/smc_llc.c 3 additions, 3 deletionsnet/smc/smc_llc.c
- net/smc/smc_tx.c 10 additions, 2 deletionsnet/smc/smc_tx.c
Loading
Please register or sign in to comment