summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2019-02-21 15:04:23 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-02-27 15:41:45 +0100
commitb184487c1ac9504cb1f8d02751eac00f0c1581fb (patch)
treea08ea717fa23ec53fb27b396f49feb47f84c9c76 /drivers/scsi/cxgbi
parentscsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c (diff)
downloadlinux-b184487c1ac9504cb1f8d02751eac00f0c1581fb.tar.xz
linux-b184487c1ac9504cb1f8d02751eac00f0c1581fb.zip
scsi: cxgb4i: get pf number from lldi->pf
Instead of using viid to get pf number, directly get pf number from lldi->pf. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxgbi')
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 49f8028ac524..ba14a4cdf120 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -2122,8 +2122,7 @@ static void *t4_uld_add(const struct cxgb4_lld_info *lldi)
cdev->itp = &cxgb4i_iscsi_transport;
cdev->owner = THIS_MODULE;
- cdev->pfvf = FW_VIID_PFN_G(cxgb4_port_viid(lldi->ports[0]))
- << FW_VIID_PFN_S;
+ cdev->pfvf = FW_PFVF_CMD_PFN_V(lldi->pf);
pr_info("cdev 0x%p,%s, pfvf %u.\n",
cdev, lldi->ports[0]->name, cdev->pfvf);