i40e: Add bus number info to i40e_bus_info struct
Currently i40e_bus_info has PCI device and function info only and log messages print device number as bus number. Added field to provide bus number info and modified log statements to print bus, device and function information. Change-ID: I811617cee2714cc0d6bade8d369f57040990756f Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
3bb83baf9a
commit
b3f028fc8a
@@ -442,6 +442,7 @@ struct i40e_bus_info {
|
||||
u16 func;
|
||||
u16 device;
|
||||
u16 lan_id;
|
||||
u16 bus_id;
|
||||
};
|
||||
|
||||
/* Flow control (FC) parameters */
|
||||
|
@@ -2726,6 +2726,7 @@ static int i40evf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
hw->subsystem_device_id = pdev->subsystem_device;
|
||||
hw->bus.device = PCI_SLOT(pdev->devfn);
|
||||
hw->bus.func = PCI_FUNC(pdev->devfn);
|
||||
hw->bus.bus_id = pdev->bus->number;
|
||||
|
||||
/* set up the locks for the AQ, do this only once in probe
|
||||
* and destroy them only once in remove
|
||||
|
Reference in New Issue
Block a user