scsi: lpfc: Add MDS Diagnostic support.
Added code to support Cisco MDS loopback diagnostic. The diagnostics run various loopbacks including one which loops-back frame through the driver. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
dc53a61852
commit
ae9e28f36a
@@ -4421,6 +4421,19 @@ struct fcp_treceive64_wqe {
|
||||
};
|
||||
#define TXRDY_PAYLOAD_LEN 12
|
||||
|
||||
#define CMD_SEND_FRAME 0xE1
|
||||
|
||||
struct send_frame_wqe {
|
||||
struct ulp_bde64 bde; /* words 0-2 */
|
||||
uint32_t frame_len; /* word 3 */
|
||||
uint32_t fc_hdr_wd0; /* word 4 */
|
||||
uint32_t fc_hdr_wd1; /* word 5 */
|
||||
struct wqe_common wqe_com; /* words 6-11 */
|
||||
uint32_t fc_hdr_wd2; /* word 12 */
|
||||
uint32_t fc_hdr_wd3; /* word 13 */
|
||||
uint32_t fc_hdr_wd4; /* word 14 */
|
||||
uint32_t fc_hdr_wd5; /* word 15 */
|
||||
};
|
||||
|
||||
union lpfc_wqe {
|
||||
uint32_t words[16];
|
||||
@@ -4439,7 +4452,7 @@ union lpfc_wqe {
|
||||
struct fcp_trsp64_wqe fcp_trsp;
|
||||
struct fcp_tsend64_wqe fcp_tsend;
|
||||
struct fcp_treceive64_wqe fcp_treceive;
|
||||
|
||||
struct send_frame_wqe send_frame;
|
||||
};
|
||||
|
||||
union lpfc_wqe128 {
|
||||
|
Reference in New Issue
Block a user