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>
This commit is contained in:

committed by
Jens Axboe

parent
e23947bd76
commit
128b6f9fdd
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user