Commit 27e6772b authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Nicholas Bellinger

target/spc: Set SPT correctly in Extended INQUIRY Data VPD page

LIO supports protection types 1,3 so setting a hard-coded SPT=3
is fine for now.
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 9b353cc8
...@@ -458,6 +458,9 @@ spc_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf) ...@@ -458,6 +458,9 @@ spc_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf)
buf[4] = 0x4; buf[4] = 0x4;
} }
/* logical unit supports type 1 and type 3 protection */
buf[4] |= (0x3 << 3);
/* Set HEADSUP, ORDSUP, SIMPSUP */ /* Set HEADSUP, ORDSUP, SIMPSUP */
buf[5] = 0x07; buf[5] = 0x07;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment