On 12/20/19 11:37 PM, James Smart wrote: > This patch continues the libefc library population. > > This patch adds library interface definitions for: > - FC node PRLI handling and state management > > Signed-off-by: Ram Vegesna <ram.vegesna@xxxxxxxxxxxx> > Signed-off-by: James Smart <jsmart2021@xxxxxxxxx> > --- > drivers/scsi/elx/libefc/efc_device.c | 1658 ++++++++++++++++++++++++++++++++++ > drivers/scsi/elx/libefc/efc_device.h | 72 ++ > 2 files changed, 1730 insertions(+) > create mode 100644 drivers/scsi/elx/libefc/efc_device.c > create mode 100644 drivers/scsi/elx/libefc/efc_device.h > > diff --git a/drivers/scsi/elx/libefc/efc_device.c b/drivers/scsi/elx/libefc/efc_device.c > new file mode 100644 > index 000000000000..f87525f65b72 > --- /dev/null > +++ b/drivers/scsi/elx/libefc/efc_device.c [ .. ] > + case EFC_EVT_LOGO_RCVD: { > + struct fc_frame_header *hdr = cbdata->header->dma.virt; > + > + node_printf(node, "%s received attached=%d\n", > + efc_sm_event_name(evt), node->attached); > + /* sm: / send LOGO acc */ > + efc->tt.els_send_resp(efc, node, ELS_LOGO, > + be16_to_cpu(hdr->fh_ox_id)); > + efc_node_transition(node, __efc_d_wait_logo_acc_cmpl, NULL); > + break; > + } > + > + case EFC_EVT_ADISC_RCVD: { > + struct fc_frame_header *hdr = cbdata->header->dma.virt; > + /* sm: / send ADISC acc */ > + efc->tt.els_send_resp(efc, node, ELS_ADISC, > + be16_to_cpu(hdr->fh_ox_id)); > + break; > + } > + > + case EFC_EVT_ABTS_RCVD: > + /* sm: / process ABTS */ > + // This should not happpen ... then I would expect a logging message, not a C++ style comment. Please fix. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer