nvme-fc: Set new cmd set indicator in nvme-fc cmnd iu
Set the new category field in the FC-NVME CMND_IU based on queue number. Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Родитель
53b2b2f599
Коммит
44fbf3bb1a
|
@ -1732,6 +1732,11 @@ __nvme_fc_init_request(struct nvme_fc_ctrl *ctrl,
|
|||
cmdiu->format_id = NVME_CMD_FORMAT_ID;
|
||||
cmdiu->fc_id = NVME_CMD_FC_ID;
|
||||
cmdiu->iu_len = cpu_to_be16(sizeof(*cmdiu) / sizeof(u32));
|
||||
if (queue->qnum)
|
||||
cmdiu->rsv_cat = fccmnd_set_cat_css(0,
|
||||
(NVME_CC_CSS_NVM >> NVME_CC_CSS_SHIFT));
|
||||
else
|
||||
cmdiu->rsv_cat = fccmnd_set_cat_admin(0);
|
||||
|
||||
op->fcp_req.cmddma = fc_dma_map_single(ctrl->lport->dev,
|
||||
&op->cmd_iu, sizeof(op->cmd_iu), DMA_TO_DEVICE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче