Skip to content

Commit 02e2d8f

Browse files
tyreldmartinkpetersen
authored andcommitted
scsi: ibmvfc: Add protocol field to target structure
Add a per target protocol field so target code can determine correct protocol specific actions as well as identify the correct channel group target list. Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com> Link: https://lore.kernel.org/r/20230921225435.3537728-12-tyreld@linux.ibm.com Reviewed-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 50fe1a3 commit 02e2d8f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/scsi/ibmvscsi/ibmvfc.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,15 @@ enum ibmvfc_target_action {
716716
IBMVFC_TGT_ACTION_LOGOUT_DELETED_RPORT,
717717
};
718718

719+
enum ibmvfc_protocol {
720+
IBMVFC_PROTO_SCSI = 0,
721+
IBMVFC_PROTO_NVME = 1,
722+
};
723+
719724
struct ibmvfc_target {
720725
struct list_head queue;
721726
struct ibmvfc_host *vhost;
727+
enum ibmvfc_protocol protocol;
722728
u64 scsi_id;
723729
u64 wwpn;
724730
u64 new_scsi_id;
@@ -816,11 +822,6 @@ struct ibmvfc_queue {
816822
irq_handler_t handler;
817823
};
818824

819-
enum ibmvfc_protocol {
820-
IBMVFC_PROTO_SCSI = 0,
821-
IBMVFC_PROTO_NVME = 1,
822-
};
823-
824825
struct ibmvfc_channels {
825826
struct ibmvfc_queue *scrqs;
826827
enum ibmvfc_protocol protocol;

0 commit comments

Comments
 (0)