diff options
author | Dmitry Bogdanov <d.bogdanov@yadro.com> | 2022-09-06 12:34:18 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-10-27 03:44:32 +0200 |
commit | 553b08d9b3a78aa602f818c0c94705774f018df0 (patch) | |
tree | 813cbe2628a1c130a54cec102135bca8743f0da1 /include/target | |
parent | scsi: target: core: Add list of opcodes for RSOC (diff) | |
download | linux-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.h | 1 |
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[]; }; |