Skip to content

Commit 65b7bec

Browse files
Chad Dupuismartinkpetersen
authored andcommitted
scsi: qedf: Honor default_prio module parameter even if DCBX does not converge
Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 4b9b7fa commit 65b7bec

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

drivers/scsi/qedf/qedf_main.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3011,7 +3011,14 @@ static int __qedf_probe(struct pci_dev *pdev, int mode)
30113011
INIT_DELAYED_WORK(&qedf->grcdump_work, qedf_wq_grcdump);
30123012
qedf->fipvlan_retries = qedf_fipvlan_retries;
30133013
/* Set a default prio in case DCBX doesn't converge */
3014-
qedf->prio = QEDF_DEFAULT_PRIO;
3014+
if (qedf_default_prio > -1) {
3015+
/*
3016+
* This is the case where we pass a modparam in so we want to
3017+
* honor it even if dcbx doesn't converge.
3018+
*/
3019+
qedf->prio = qedf_default_prio;
3020+
} else
3021+
qedf->prio = QEDF_DEFAULT_PRIO;
30153022

30163023
/*
30173024
* Common probe. Takes care of basic hardware init and pci_*

0 commit comments

Comments
 (0)