On 12/09/2017 02:18 AM, James Smart wrote: > Handling a rcv'ed PRLI incorrectly can cause the ndlp to end up > in the wrong state or the driver to ACC and PRLI when it should > send LS_RJT. > > The cause was due to the driver not properly looking at the PRLI > type and taking the multiple protocol support into consideration. > > Resolved by adding checks in the various PRLI receive points to > validate PRLI type and reject if not valid for the enabled protocols > and mode (host vs target). > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- > drivers/scsi/lpfc/lpfc_els.c | 7 ----- > drivers/scsi/lpfc/lpfc_nportdisc.c | 54 > +++++++++++++++++++++++++++++++++----- > 2 files changed, 47 insertions(+), 14 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com>
Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)