lpfc: NVME Target: Receive buffer updates
Subsystems (3)
PATCH 12/17 lpfc: NVME Target: Receive buffer updates
NVME Target: Receive buffer updates
Allocates buffer pools and configures adapter interfaces to handle receive buffer (asynchronous FCP CMD ius, first burst data) from the adapter. Splits by protocol, etc.
Signed-off-by Dick Kennedy <dick.kennedy at broadcom.com>
Signed-off-by James Smart <james.smart at broadcom.com>
--- drivers/scsi/lpfc/lpfc.h | 3 + drivers/scsi/lpfc/lpfc_attr.c | 86 +++++- drivers/scsi/lpfc/lpfc_crtn.h | 1 + drivers/scsi/lpfc/lpfc_hw4.h | 274 +++++++++++++++++++ drivers/scsi/lpfc/lpfc_init.c | 264 +++++++++++++++++- drivers/scsi/lpfc/lpfc_mbox.c | 87 ++++++ drivers/scsi/lpfc/lpfc_sli.c | 608 +++++++++++++++++++++++++++++++++++++++++- drivers/scsi/lpfc/lpfc_sli4.h | 11 + 8 files changed, 1313 insertions(+), 21 deletions(-)
drivers/scsi/lpfc/lpfc.h +3 -0
@@ -774,8 +774,11 @@ struct lpfc_hba {uint32_t cfg_nvme_max_hw_queue;uint32_t cfg_nvmet_max_hw_queue;uint32_t cfg_nvme_posted_buf; +uint32_t cfg_nvmet_mrq; +uint32_t cfg_nvmet_mrq_post;uint32_t cfg_enable_nvmet;uint32_t cfg_nvme_enable_fb; +uint32_t cfg_nvmet_fb_size;uint32_t cfg_total_seg_cnt;uint32_t cfg_sg_seg_cnt;uint32_t cfg_sg_dma_buf_size;
drivers/scsi/lpfc/lpfc_attr.c +77 -9
135 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_crtn.h +1 -0
@@ -229,6 +229,7 @@ void lpfc_reg_vfi(struct lpfcMboxq *, struct lpfc_vport *, dma_addr_t);void lpfc_init_vpi (struct lpfc_hba *,struct lpfcMboxq *,uint16_t );void lpfc_unreg_vfi (struct lpfcMboxq *,struct lpfc_vport *);void lpfc_reg_fcfi (struct lpfc_hba *,struct lpfcMboxq *); +void lpfc_reg_fcfi_mrq (struct lpfc_hba *phba,struct lpfcMboxq *mbox,int mode);void lpfc_unreg_fcfi (struct lpfcMboxq *,uint16_t );void lpfc_resume_rpi (struct lpfcMboxq *,struct lpfc_nodelist *);int lpfc_check_pending_fcoe_event (struct lpfc_hba *,uint8_t );
drivers/scsi/lpfc/lpfc_hw4.h +274 -0
322 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_init.c +255 -9
355 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_mbox.c +87 -0
105 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.c +605 -3
686 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli4.h +11 -0
@@ -551,6 +551,9 @@ struct lpfc_sli4_hba {struct lpfc_queue **hba_eq;/* Event queues for HBA */ struct lpfc_queue **fcp_cq;/* Fast-path FCP compl queue */ struct lpfc_queue **nvme_cq;/* Fast-path NVME compl queue */ +struct lpfc_queue **nvmet_cqset;/* Fast-path NVMET CQ Set queues */ +struct lpfc_queue **nvmet_mrq_hdr;/* Fast-path NVMET hdr MRQs */ +struct lpfc_queue **nvmet_mrq_data;/* Fast-path NVMET data MRQs */ struct lpfc_queue **fcp_wq;/* Fast-path FCP work queue */ struct lpfc_queue **nvme_wq;/* Fast-path NVME work queue */ uint16_t *fcp_cq_map;
@@ -656,6 +659,8 @@ struct lpfc_sli4_hba {uint16_t num_online_cpu;uint16_t num_present_cpu;uint16_t curr_disp_cpu; + +uint16_t nvmet_mrq_post_idx; };enum lpfc_sge_type {
@@ -743,12 +748,18 @@ int lpfc_eq_create(struct lpfc_hba *, struct lpfc_queue *, uint32_t);int lpfc_modify_hba_eq_delay (struct lpfc_hba *phba,uint32_t startq);int lpfc_cq_create (struct lpfc_hba *,struct lpfc_queue *,struct lpfc_queue *,uint32_t ,uint32_t ); +int lpfc_cq_create_set (struct lpfc_hba *phba,struct lpfc_queue **cqp, +struct lpfc_queue **eqp,uint32_t type, +uint32_t subtype);int32_t lpfc_mq_create (struct lpfc_hba *,struct lpfc_queue *,struct lpfc_queue *,uint32_t );int lpfc_wq_create (struct lpfc_hba *,struct lpfc_queue *,struct lpfc_queue *,uint32_t );int lpfc_rq_create (struct lpfc_hba *,struct lpfc_queue *,struct lpfc_queue *,struct lpfc_queue *,uint32_t ); +int lpfc_mrq_create (struct lpfc_hba *phba,struct lpfc_queue **hrqp, +struct lpfc_queue **drqp,struct lpfc_queue **cqp, +uint32_t subtype);void lpfc_rq_adjust_repost (struct lpfc_hba *,struct lpfc_queue *,int );int lpfc_eq_destroy (struct lpfc_hba *,struct lpfc_queue *);int lpfc_cq_destroy (struct lpfc_hba *,struct lpfc_queue *);
Signature · 1 line
2.5.0
PATCH 12/17 lpfc: NVME Target: Receive buffer updates
Quoted 9 lines · James Smart
NVME Target: Receive buffer updates
Allocates buffer pools and configures adapter interfaces to handle receive buffer (asynchronous FCP CMD ius, first burst data) from the adapter. Splits by protocol, etc.
Signed-off-by Dick Kennedy <dick.kennedy at broadcom.com>Signed-off-by James Smart <james.smart at broadcom.com>
Quoted 11 lines
--- drivers/scsi/lpfc/lpfc.h | 3 + drivers/scsi/lpfc/lpfc_attr.c | 86 +++++- drivers/scsi/lpfc/lpfc_crtn.h | 1 + drivers/scsi/lpfc/lpfc_hw4.h | 274 +++++++++++++++++++ drivers/scsi/lpfc/lpfc_init.c | 264 +++++++++++++++++- drivers/scsi/lpfc/lpfc_mbox.c | 87 ++++++ drivers/scsi/lpfc/lpfc_sli.c | 608 +++++++++++++++++++++++++++++++++++++++++- drivers/scsi/lpfc/lpfc_sli4.h | 11 + 8 files changed, 1313 insertions(+), 21 deletions(-)
Reviewed-by Hannes Reinecke <hare at suse.com>
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking hare at suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: F. Imend?rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N?rnberg)