diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2017-06-29 20:31:12 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-07-04 00:56:25 +0200 |
commit | 128b6f9fdd9ace9e56cb3a263b4bc269658f9c40 (patch) | |
tree | 7424d26a92a1a7354293e5117e344b26b84499c0 /drivers/scsi/lpfc | |
parent | bio-integrity: fold bio_integrity_enabled to bio_integrity_prep (diff) | |
download | linux-128b6f9fdd9ace9e56cb3a263b4bc269658f9c40.tar.xz linux-128b6f9fdd9ace9e56cb3a263b4bc269658f9c40.zip |
t10-pi: Move opencoded contants to common header
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 54fd0c81ceaf..99d2e990b231 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -26,6 +26,7 @@ #include <linux/export.h> #include <linux/delay.h> #include <asm/unaligned.h> +#include <linux/t10-pi.h> #include <linux/crc-t10dif.h> #include <net/checksum.h> @@ -2934,8 +2935,8 @@ lpfc_calc_bg_err(struct lpfc_hba *phba, struct lpfc_scsi_buf *lpfc_cmd) * First check to see if a protection data * check is valid */ - if ((src->ref_tag == 0xffffffff) || - (src->app_tag == 0xffff)) { + if ((src->ref_tag == T10_PI_REF_ESCAPE) || + (src->app_tag == T10_PI_APP_ESCAPE)) { start_ref_tag++; goto skipit; } |