]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: move add link processing for new device into llc layer
authorKarsten Graul <kgraul@linux.ibm.com>
Sat, 18 Jul 2020 13:06:14 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jul 2020 22:30:22 +0000 (15:30 -0700)
commit5e39605338a573947c61921b45d232122ec6ad39
treea3edb0eceb44b9df876836e6ca8d33db8acff73b
parent3ed6b68808c46ee329cb57e46623b305fd544e9c
net/smc: move add link processing for new device into llc layer

When a new ib device is up smc will send an add link invitation to the
peer if needed. This is currently done with rudimentary flow control.
Under high workload these add link invitations can disturb other llc
flows because they arrive unexpected. Fix this by integrating the
invitations into the normal llc event flow and handle them as a flow.
While at it, check for already assigned requests in the flow before
the new add link request is assigned.

Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Fixes: 2806967cd6a3 ("net/smc: add smcr_port_add() and smcr_link_up() processing")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_llc.c
net/smc/smc_llc.h