bonding: initialize backpointer from pci device to driver
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 8 May 2015 02:41:12 +0000 (19:41 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 29 Jun 2015 10:13:37 +0000 (12:13 +0200)
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 <stephen@networkplumber.org>
drivers/net/bonding/rte_eth_bond_api.c

index d4caa83..d810ec4 100644 (file)
@@ -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;