summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorDmitry Bogdanov <d.bogdanov@yadro.com>2022-09-06 12:34:18 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2022-10-27 03:44:32 +0200
commit553b08d9b3a78aa602f818c0c94705774f018df0 (patch)
tree813cbe2628a1c130a54cec102135bca8743f0da1 /include/target
parentscsi: target: core: Add list of opcodes for RSOC (diff)
downloadlinux-553b08d9b3a78aa602f818c0c94705774f018df0.tar.xz
linux-553b08d9b3a78aa602f818c0c94705774f018df0.zip
scsi: target: core: Dynamic opcode support in RSOC
Report supported opcodes depending on a dynamic device configuration. Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com> Link: https://lore.kernel.org/r/20220906103421.22348-4-d.bogdanov@yadro.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 02a2d48d20b6..7542a8de8fb5 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -876,6 +876,7 @@ struct target_opcode_descriptor {
u8 specific_timeout;
u16 nominal_timeout;
u16 recommended_timeout;
+ bool (*enabled)(struct se_cmd *cmd);
u8 usage_bits[];
};