From c92db8aefb614338bda56d1af7a4612bd538305f Mon Sep 17 00:00:00 2001 From: Tomasz Kulasek Date: Fri, 30 Oct 2015 15:25:49 +0100 Subject: [PATCH] null: fix crash when added to bonding This patch initializes eth_dev->link_intr_cbs queue used when null pmd is added to the bonding. Signed-off-by: Tomasz Kulasek Acked-by: Tetsuya Mukawa --- drivers/net/null/rte_eth_null.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index e244595c4d..c748101a8a 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -432,6 +432,7 @@ eth_dev_null_create(const char *name, internals->numa_node = numa_node; pci_dev->numa_node = numa_node; + pci_dev->driver = &rte_null_pmd.pci_drv; data->dev_private = internals; data->port_id = eth_dev->data->port_id; @@ -445,6 +446,7 @@ eth_dev_null_create(const char *name, eth_dev->dev_ops = &ops; eth_dev->pci_dev = pci_dev; eth_dev->driver = &rte_null_pmd; + TAILQ_INIT(ð_dev->link_intr_cbs); /* finally assign rx and tx ops */ if (packet_copy) { -- 2.20.1