diff options
author | Andy Grover <agrover@redhat.com> | 2015-05-19 17:44:41 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-30 22:58:11 -0400 |
commit | a3541703ebbf99d499656b15987175f6579b42ac (patch) | |
tree | e89b458123a97639550974de649c3da382144219 /include | |
parent | 7bfea53b5c936d706d0bf60ec218fa72cde77121 (diff) |
target: Use a PASSTHROUGH flag instead of transport_types
It seems like we only care if a transport is passthrough or not. Convert
transport_type to a flags field and replace TRANSPORT_PLUGIN_* with a
flag, TRANSPORT_FLAG_PASSTHROUGH.
Signed-off-by: Andy Grover <agrover@redhat.com>
Reviewed-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/target/target_core_backend.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h index 563e11970152..5f1225706993 100644 --- a/include/target/target_core_backend.h +++ b/include/target/target_core_backend.h | |||
@@ -1,9 +1,7 @@ | |||
1 | #ifndef TARGET_CORE_BACKEND_H | 1 | #ifndef TARGET_CORE_BACKEND_H |
2 | #define TARGET_CORE_BACKEND_H | 2 | #define TARGET_CORE_BACKEND_H |
3 | 3 | ||
4 | #define TRANSPORT_PLUGIN_PHBA_PDEV 1 | 4 | #define TRANSPORT_FLAG_PASSTHROUGH 1 |
5 | #define TRANSPORT_PLUGIN_VHBA_PDEV 2 | ||
6 | #define TRANSPORT_PLUGIN_VHBA_VDEV 3 | ||
7 | 5 | ||
8 | struct target_backend_cits { | 6 | struct target_backend_cits { |
9 | struct config_item_type tb_dev_cit; | 7 | struct config_item_type tb_dev_cit; |
@@ -22,7 +20,7 @@ struct se_subsystem_api { | |||
22 | char inquiry_rev[4]; | 20 | char inquiry_rev[4]; |
23 | struct module *owner; | 21 | struct module *owner; |
24 | 22 | ||
25 | u8 transport_type; | 23 | u8 transport_flags; |
26 | 24 | ||
27 | int (*attach_hba)(struct se_hba *, u32); | 25 | int (*attach_hba)(struct se_hba *, u32); |
28 | void (*detach_hba)(struct se_hba *); | 26 | void (*detach_hba)(struct se_hba *); |