Skip to content

Commit 33b2835

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix Async GPN_FT for FCP and FC-NVMe scan
This patch combines FCP and FC-NVMe scan into single scan when driver detects FC-NVMe capability on same port. Signed-off-by: Quinn Tran <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 60dd6e8 commit 33b2835

File tree

5 files changed

+229
-71
lines changed

5 files changed

+229
-71
lines changed

drivers/scsi/qla2xxx/qla_def.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,6 +2217,7 @@ typedef struct {
22172217

22182218
/* FCP-4 types */
22192219
#define FC4_TYPE_FCP_SCSI 0x08
2220+
#define FC4_TYPE_NVME 0x28
22202221
#define FC4_TYPE_OTHER 0x0
22212222
#define FC4_TYPE_UNKNOWN 0xff
22222223

@@ -2982,8 +2983,14 @@ enum scan_flags_t {
29822983
SF_QUEUED = BIT_1,
29832984
};
29842985

2986+
enum fc4type_t {
2987+
FS_FC4TYPE_FCP = BIT_0,
2988+
FS_FC4TYPE_NVME = BIT_1,
2989+
};
2990+
29852991
struct fab_scan_rp {
29862992
port_id_t id;
2993+
enum fc4type_t fc4type;
29872994
u8 port_name[8];
29882995
u8 node_name[8];
29892996
};
@@ -3275,6 +3282,7 @@ struct qla_work_evt {
32753282
} nack;
32763283
struct {
32773284
u8 fc4_type;
3285+
srb_t *sp;
32783286
} gpnft;
32793287
} u;
32803288
};

drivers/scsi/qla2xxx/qla_gbl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void qla24xx_handle_gpsc_event(scsi_qla_host_t *, struct event_arg *);
658658
int qla2x00_mgmt_svr_login(scsi_qla_host_t *);
659659
void qla24xx_handle_gffid_event(scsi_qla_host_t *vha, struct event_arg *ea);
660660
int qla24xx_async_gffid(scsi_qla_host_t *vha, fc_port_t *fcport);
661-
int qla24xx_async_gpnft(scsi_qla_host_t *, u8);
661+
int qla24xx_async_gpnft(scsi_qla_host_t *, u8, srb_t *);
662662
void qla24xx_async_gpnft_done(scsi_qla_host_t *, srb_t *);
663663
void qla24xx_async_gnnft_done(scsi_qla_host_t *, srb_t *);
664664
int qla24xx_async_gnnid(scsi_qla_host_t *, fc_port_t *);

0 commit comments

Comments
 (0)