summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_tx.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-05-01 12:48:09 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-02 01:20:04 +0200
commit87523930a16eb57ebb20318e92b5df4b64fe8b20 (patch)
tree4f577d099fe20de54107b0db48b0b3c7b7cf71b3 /net/smc/smc_tx.c
parentnet/smc: add smcr_port_err() and smcr_link_down() processing (diff)
downloadlinux-87523930a16eb57ebb20318e92b5df4b64fe8b20.tar.xz
linux-87523930a16eb57ebb20318e92b5df4b64fe8b20.zip
net/smc: take link down instead of terminating the link group
Use the introduced link down processing in all places where the link group is terminated and take down the affected link only. 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>
Diffstat (limited to 'net/smc/smc_tx.c')
-rw-r--r--net/smc/smc_tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_tx.c b/net/smc/smc_tx.c
index d74bfe6a90f1..417204572a69 100644
--- a/net/smc/smc_tx.c
+++ b/net/smc/smc_tx.c
@@ -283,7 +283,7 @@ static int smc_tx_rdma_write(struct smc_connection *conn, int peer_rmbe_offset,
rdma_wr->rkey = lgr->rtokens[conn->rtoken_idx][link->link_idx].rkey;
rc = ib_post_send(link->roce_qp, &rdma_wr->wr, NULL);
if (rc)
- smc_lgr_terminate_sched(lgr);
+ smcr_link_down_cond_sched(link);
return rc;
}