]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Add MDS driver loopback diagnostics support
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:57:08 +0000 (16:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:12 +0000 (22:41 -0400)
commit9ab4b17b23dc72dfc5984cc474b50dc998aadf96
tree0141bcf65ed5887c1b1ca04cce4db41670a0d76b
parenta9ce433188ebf53a5e77a2ef6218eec6188765e6
scsi: lpfc: Add MDS driver loopback diagnostics support

Added code to support driver loopback with MDS Diagnostics.  This style of
diagnostics passes frames from the fabric to the driver who then echo them
back out the link.  SEND_FRAME WQEs are used to transmit the frames.  Added
the SOF and EOF field location definitions for use by SEND_FRAME.

Also ensure that enable_mds_diags is a RW parameter.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hw4.h
drivers/scsi/lpfc/lpfc_sli.c