mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user