mpt2sas: T10 DIF Support - EEDP
Quoted 7 lines · Martin K. Petersen
For Type 1 I expect you to check guard + match ref tag to CDB LBA + offset.
For Type 2 I expect you to check guard + match ref tag to E.I.LBA in 32-byte CDB + offset.
For Type 3 I expect you to check guard only.
Does this patch look good?
(1) I modified _scsih_setup_eedp so for TYPE1, its sets ref and gaurd checking, and for TYPE2 it sets gauard checking.
(2) I removed the calling of scsi_host_set_guard.
I'll repost the entire patch set if this is good to go.
Eric Moore
drivers/scsi/mpt2sas/mpt2sas_base.h +1 -0
@@ -61,6 +61,7 @@#include <scsi/scsi_tcq.h> #include <scsi/scsi_transport_sas.h> #include <scsi/scsi_dbg.h> +#include <scsi/scsi_eh.h> #include "mpt2sas_debug.h"
drivers/scsi/mpt2sas/mpt2sas_scsih.c +118 -0
148 lines not on this page · raw message
Martin K. Petersen
Reviewed-byQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Eric" == Eric Moore <[email protected]> writes:
Eric,
Eric> (1) I modified _scsih_setup_eedp so for TYPE1, its sets ref and
Eric> gaurd checking, and for TYPE2 it sets gauard checking.
You mean Type 3 and not Type 2. But yes, looks ok.
Feel free to add:
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering