]> 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)
commit47ed2897275f954fb693a546210dcea3fc145bba
treea3edb0eceb44b9df876836e6ca8d33db8acff73b
parent5d15d1253b20499f7d50dfadc628ef68a526a010
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: 07761e32fb60 ("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