Commit 56e8091c authored by Karsten Graul's avatar Karsten Graul Committed by David S. Miller

net/smc: move the TEST_LINK response processing into event handler

Get rid of the extra function and move the two-liner for the TEST_LINK
response processing into the event handler function.
Signed-off-by: default avatarKarsten Graul <kgraul@linux.ibm.com>
Reviewed-by: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d74c3a8
...@@ -563,13 +563,6 @@ static void smc_llc_rx_delete_link(struct smc_link *link, ...@@ -563,13 +563,6 @@ static void smc_llc_rx_delete_link(struct smc_link *link,
smc_lgr_terminate_sched(lgr); smc_lgr_terminate_sched(lgr);
} }
static void smc_llc_rx_test_link(struct smc_link *link,
struct smc_llc_msg_test_link *llc)
{
llc->hd.flags |= SMC_LLC_FLAG_RESP;
smc_llc_send_message(link, llc);
}
static void smc_llc_rx_confirm_rkey(struct smc_link *link, static void smc_llc_rx_confirm_rkey(struct smc_link *link,
struct smc_llc_msg_confirm_rkey *llc) struct smc_llc_msg_confirm_rkey *llc)
{ {
...@@ -640,7 +633,8 @@ static void smc_llc_event_handler(struct smc_llc_qentry *qentry) ...@@ -640,7 +633,8 @@ static void smc_llc_event_handler(struct smc_llc_qentry *qentry)
switch (llc->raw.hdr.common.type) { switch (llc->raw.hdr.common.type) {
case SMC_LLC_TEST_LINK: case SMC_LLC_TEST_LINK:
smc_llc_rx_test_link(link, &llc->test_link); llc->test_link.hd.flags |= SMC_LLC_FLAG_RESP;
smc_llc_send_message(link, llc);
break; break;
case SMC_LLC_ADD_LINK: case SMC_LLC_ADD_LINK:
if (list_empty(&lgr->list)) if (list_empty(&lgr->list))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment