bond: initialize backpointer from pci device to driver
PATCH 1/1 bond: initialize backpointer from pci device to driver
Add missing initialization of to pci_dev driver
The link from pci_dev back to the ethernet driver was not being set.
Signed-off-by Stephen Hemminger <[email protected]>
--- lib/librte_pmd_bond/rte_eth_bond_api.c | 1 + 1 file changed, 1 insertion(+)
lib/librte_pmd_bond/rte_eth_bond_api.c +1 -0
@@ -260,6 +260,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id) pci_dev->numa_node = socket_id; pci_drv->name = driver_name; + pci_dev->driver = pci_drv; eth_dev->driver = eth_drv; eth_dev->data->dev_private = internals;
Signature · 1 line
2.1.4
Thomas Monjalon
Applied2015-05-07 19:41, Stephen Hemminger:
Quoted 4 lines
Add missing initialization of to
pci_devdriver
The link frompci_devback to the ethernet driver was not being set.Signed-off-by Stephen Hemminger <[email protected]>
Applied, thanks