scsi: lpfc: Validate adapter support for SRIU option
When using the special option to suppress the response iu, ensure the adapter fully supports the feature by checking feature flags from the adapter and validating the support when formatting the WQE. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
c1dd9111b7
commit
20aefac3a9
@@ -2290,9 +2290,10 @@ lpfc_nvmet_prep_fcp_wqe(struct lpfc_hba *phba,
|
||||
if (rsp->op == NVMET_FCOP_READDATA_RSP) {
|
||||
atomic_inc(&tgtp->xmt_fcp_read_rsp);
|
||||
bf_set(wqe_ar, &wqe->fcp_tsend.wqe_com, 1);
|
||||
if ((ndlp->nlp_flag & NLP_SUPPRESS_RSP) &&
|
||||
(rsp->rsplen == 12)) {
|
||||
bf_set(wqe_sup, &wqe->fcp_tsend.wqe_com, 1);
|
||||
if (rsp->rsplen == LPFC_NVMET_SUCCESS_LEN) {
|
||||
if (ndlp->nlp_flag & NLP_SUPPRESS_RSP)
|
||||
bf_set(wqe_sup,
|
||||
&wqe->fcp_tsend.wqe_com, 1);
|
||||
bf_set(wqe_wqes, &wqe->fcp_tsend.wqe_com, 0);
|
||||
bf_set(wqe_irsp, &wqe->fcp_tsend.wqe_com, 0);
|
||||
bf_set(wqe_irsplen, &wqe->fcp_tsend.wqe_com, 0);
|
||||
|
Reference in New Issue
Block a user