Commit 1e20a2a5 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

IB/srpt: Inline trivial CM callback functions

Inline those CM callback functions that are only two lines long.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAlex Estrin <alex.estrin@intel.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 49f40163
...@@ -2320,18 +2320,6 @@ static void srpt_cm_rtu_recv(struct ib_cm_id *cm_id) ...@@ -2320,18 +2320,6 @@ static void srpt_cm_rtu_recv(struct ib_cm_id *cm_id)
} }
} }
static void srpt_cm_timewait_exit(struct ib_cm_id *cm_id)
{
pr_info("Received IB TimeWait exit for cm_id %p.\n", cm_id);
srpt_drain_channel(cm_id);
}
static void srpt_cm_rep_error(struct ib_cm_id *cm_id)
{
pr_info("Received IB REP error for cm_id %p.\n", cm_id);
srpt_drain_channel(cm_id);
}
/** /**
* srpt_cm_dreq_recv() - Process reception of a DREQ message. * srpt_cm_dreq_recv() - Process reception of a DREQ message.
*/ */
...@@ -2369,15 +2357,6 @@ static void srpt_cm_dreq_recv(struct ib_cm_id *cm_id) ...@@ -2369,15 +2357,6 @@ static void srpt_cm_dreq_recv(struct ib_cm_id *cm_id)
} }
} }
/**
* srpt_cm_drep_recv() - Process reception of a DREP message.
*/
static void srpt_cm_drep_recv(struct ib_cm_id *cm_id)
{
pr_info("Received InfiniBand DREP message for cm_id %p.\n", cm_id);
srpt_drain_channel(cm_id);
}
/** /**
* srpt_cm_handler() - IB connection manager callback function. * srpt_cm_handler() - IB connection manager callback function.
* *
...@@ -2409,22 +2388,26 @@ static int srpt_cm_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event) ...@@ -2409,22 +2388,26 @@ static int srpt_cm_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event)
srpt_cm_dreq_recv(cm_id); srpt_cm_dreq_recv(cm_id);
break; break;
case IB_CM_DREP_RECEIVED: case IB_CM_DREP_RECEIVED:
srpt_cm_drep_recv(cm_id); pr_info("Received CM DREP message for cm_id %p.\n",
cm_id);
srpt_drain_channel(cm_id);
break; break;
case IB_CM_TIMEWAIT_EXIT: case IB_CM_TIMEWAIT_EXIT:
srpt_cm_timewait_exit(cm_id); pr_info("Received CM TimeWait exit for cm_id %p.\n", cm_id);
srpt_drain_channel(cm_id);
break; break;
case IB_CM_REP_ERROR: case IB_CM_REP_ERROR:
srpt_cm_rep_error(cm_id); pr_info("Received CM REP error for cm_id %p.\n", cm_id);
srpt_drain_channel(cm_id);
break; break;
case IB_CM_DREQ_ERROR: case IB_CM_DREQ_ERROR:
pr_info("Received IB DREQ ERROR event.\n"); pr_info("Received CM DREQ ERROR event.\n");
break; break;
case IB_CM_MRA_RECEIVED: case IB_CM_MRA_RECEIVED:
pr_info("Received IB MRA event\n"); pr_info("Received CM MRA event\n");
break; break;
default: default:
pr_err("received unrecognized IB CM event %d\n", event->event); pr_err("received unrecognized CM event %d\n", event->event);
break; break;
} }
......
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