]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: extend smc_llc_send_add_link() and smc_llc_send_delete_link()
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 1 May 2020 10:48:04 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:20:04 +0000 (16:20 -0700)
commitf910400bd07f5e6e275d0bcae76e6edd3de9017b
tree8eed11d10c4b29aef2896c351923ca8444810dc7
parent35bd509a73dd5e2a4d002b22a4bd05d6dc7ac9df
net/smc: extend smc_llc_send_add_link() and smc_llc_send_delete_link()

All LLC sends are done from worker context only, so remove the prep
functions which were used to build the message before it was sent, and
add the function content into the respective send function
smc_llc_send_add_link() and smc_llc_send_delete_link().
Extend smc_llc_send_add_link() to include the qp_mtu value in the LLC
message, which is needed to establish a link after the initial link was
created. Extend smc_llc_send_delete_link() to contain a link_id and a
reason code for the link deletion in the LLC message, which is needed
when a specific link should be deleted.
And add the list of existing DELETE_LINK reason codes.

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_core.c
net/smc/smc_llc.c
net/smc/smc_llc.h