|
@@ -729,10 +729,14 @@ static void nvme_init_integrity(struct nvme_ns *ns)
|
|
switch (ns->pi_type) {
|
|
switch (ns->pi_type) {
|
|
case NVME_NS_DPS_PI_TYPE3:
|
|
case NVME_NS_DPS_PI_TYPE3:
|
|
integrity.profile = &t10_pi_type3_crc;
|
|
integrity.profile = &t10_pi_type3_crc;
|
|
|
|
+ integrity.tag_size = sizeof(u16) + sizeof(u32);
|
|
|
|
+ integrity.flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
|
|
break;
|
|
break;
|
|
case NVME_NS_DPS_PI_TYPE1:
|
|
case NVME_NS_DPS_PI_TYPE1:
|
|
case NVME_NS_DPS_PI_TYPE2:
|
|
case NVME_NS_DPS_PI_TYPE2:
|
|
integrity.profile = &t10_pi_type1_crc;
|
|
integrity.profile = &t10_pi_type1_crc;
|
|
|
|
+ integrity.tag_size = sizeof(u16);
|
|
|
|
+ integrity.flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
integrity.profile = NULL;
|
|
integrity.profile = NULL;
|