scsi: qla2xxx: Use IOCB path to submit Control VP MBX command
Use IOCB patch to submit Control VP MBX command to reduce bottle-neck for mbx interface. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
5c25d45116
commit
2853192e15
@@ -472,6 +472,10 @@ struct srb_iocb {
|
||||
uint32_t timeout_sec;
|
||||
struct list_head entry;
|
||||
} nvme;
|
||||
struct {
|
||||
u16 cmd;
|
||||
u16 vp_index;
|
||||
} ctrlvp;
|
||||
} u;
|
||||
|
||||
struct timer_list timer;
|
||||
@@ -500,6 +504,7 @@ struct srb_iocb {
|
||||
#define SRB_NVME_CMD 19
|
||||
#define SRB_NVME_LS 20
|
||||
#define SRB_PRLI_CMD 21
|
||||
#define SRB_CTRL_VP 22
|
||||
|
||||
enum {
|
||||
TYPE_SRB,
|
||||
@@ -526,6 +531,8 @@ typedef struct srb {
|
||||
struct list_head elem;
|
||||
u32 gen1; /* scratch */
|
||||
u32 gen2; /* scratch */
|
||||
int rc;
|
||||
struct completion comp;
|
||||
union {
|
||||
struct srb_iocb iocb_cmd;
|
||||
struct bsg_job *bsg_job;
|
||||
|
||||
Reference in New Issue
Block a user