Skip to contentSkip to conversation

null: fix segfault when null_pmd added to bonding

PATCH Superseded Tomasz Kulasek 1 participant 1 message Oct 30, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH v7 2/9 null: fix segfault when null_pmd added to bonding

Date: Fri, 30 Oct 2015 14:55:57 +0100
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.1.4
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>

This patch initializes eth_dev->link_intr_cbs queue used when null pmd is

added to the bonding.

v5 changes:

- removed unnecessary malloc for eth_driver (rte_null_pmd)

---

 drivers/net/null/rte_eth_null.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/net/null/rte_eth_null.c +0 -0

index e244595..c748101 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(&eth_dev->link_intr_cbs);

/* finally assign rx and tx ops */

if (packet_copy) {

Signature · 1 line
1.7.9.5