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:
parent
1749ef00f7
commit
b184487c1a
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue