HV: rename vbdf in struct pci_vdev to bdf

Rename vbdf to bdf for the following reasons:
Use the same coding style as struct pci_pdev, as pci_pdev uses bdf instead of pbdf

pci_vdev implies the its bdf is virtual, no need to prefix bdf with the v
prefix (redundant)

Tracked-On: #3241
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
dongshen
2019-06-25 14:17:52 -07:00
committed by wenlingz
parent 148e747349
commit 012ec75163
6 changed files with 12 additions and 12 deletions

View File

@@ -98,7 +98,7 @@ static inline bool has_msix_cap(const struct pci_vdev *vdev)
*/
static inline bool is_hostbridge(const struct pci_vdev *vdev)
{
return (vdev->vbdf.value == 0U);
return (vdev->bdf.value == 0U);
}
void init_vhostbridge(struct pci_vdev *vdev);