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>
This commit is contained in:
Varun Prakash 2019-02-21 19:34:23 +05:30 committed by Martin K. Petersen
parent 1749ef00f7
commit b184487c1a
1 changed files with 1 additions and 2 deletions

View File

@ -2122,8 +2122,7 @@ static void *t4_uld_add(const struct cxgb4_lld_info *lldi)
cdev->itp = &cxgb4i_iscsi_transport; cdev->itp = &cxgb4i_iscsi_transport;
cdev->owner = THIS_MODULE; cdev->owner = THIS_MODULE;
cdev->pfvf = FW_VIID_PFN_G(cxgb4_port_viid(lldi->ports[0])) cdev->pfvf = FW_PFVF_CMD_PFN_V(lldi->pf);
<< FW_VIID_PFN_S;
pr_info("cdev 0x%p,%s, pfvf %u.\n", pr_info("cdev 0x%p,%s, pfvf %u.\n",
cdev, lldi->ports[0]->name, cdev->pfvf); cdev, lldi->ports[0]->name, cdev->pfvf);