sma: updated tweak modes names

According to some suggestions updated tweak mode names
to make them more self-commenting

Signed-off-by: Michal Rozegnal <michal.rozegnal@intel.com>
Change-Id: Icde75e997ddddde2a7b711c6fba8a7f0928867dc
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16504
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
Michal Rozegnal 2023-01-25 14:17:20 +01:00 committed by Tomasz Zawadzki
parent 31ce6cd8a3
commit d6c42f87e8

View File

@ -40,17 +40,17 @@ message VolumeCryptoParameters {
TWEAK_MODE_SIMPLE_LBA = 0; TWEAK_MODE_SIMPLE_LBA = 0;
// Tweak[127:0] = {1b0, ~LBA[62:0], LBA[63:0]} // Tweak[127:0] = {1b0, ~LBA[62:0], LBA[63:0]}
TWEAK_MODE_NOT_AND_LBA = 1; TWEAK_MODE_JOIN_NEG_LBA_WITH_LBA = 1;
// tweak is derived from nvme LBA that is internally incremented by 1 for every 512 bytes processed // tweak is derived from nvme LBA that is internally incremented by 1 for every 512 bytes processed
// so initial lba = (BLOCK_SIZE_IN_BYTES / 512) * LBA // so initial lba = (BLOCK_SIZE_IN_BYTES / 512) * LBA
// Tweak[127:0] = {lba[127:0]} // Tweak[127:0] = {lba[127:0]}
TWEAK_MODE_FORCE_512_FULL = 2; TWEAK_MODE_INCR_512_FULL_LBA = 2;
// tweak is derived from nvme LBA that is internally incremented by 1 for every 512 bytes processed // tweak is derived from nvme LBA that is internally incremented by 1 for every 512 bytes processed
// so initial lba = (BLOCK_SIZE_IN_BYTES / 512) * LBA // so initial lba = (BLOCK_SIZE_IN_BYTES / 512) * LBA
// Tweak[127:0] = {lba[63:0], 64'b0} // Tweak[127:0] = {lba[63:0], 64'b0}
TWEAK_MODE_FORCE_512_UPPER = 3; TWEAK_MODE_INCR_512_UPPER_LBA = 3;
} }
TweakMode tweak_mode = 4; TweakMode tweak_mode = 4;
} }