From 3379b158b2a1ad4b40325630d49144f240711dea Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 7 May 2015 19:41:12 -0700 Subject: [PATCH] bonding: 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 --- drivers/net/bonding/rte_eth_bond_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bonding/rte_eth_bond_api.c b/drivers/net/bonding/rte_eth_bond_api.c index d4caa83717..d810ec46fc 100644 --- a/drivers/net/bonding/rte_eth_bond_api.c +++ b/drivers/net/bonding/rte_eth_bond_api.c @@ -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; -- 2.20.1