From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 710B491CC for ; Fri, 30 Oct 2015 15:26:09 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 30 Oct 2015 07:26:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,218,1444719600"; d="scan'208";a="838881226" Received: from unknown (HELO Sent) ([10.217.248.220]) by orsmga002.jf.intel.com with SMTP; 30 Oct 2015 07:26:07 -0700 Received: by Sent (sSMTP sendmail emulation); Fri, 30 Oct 2015 15:26:06 +0100 From: Tomasz Kulasek To: dev@dpdk.org Date: Fri, 30 Oct 2015 15:25:49 +0100 Message-Id: <1446215156-12260-3-git-send-email-tomaszx.kulasek@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446215156-12260-1-git-send-email-tomaszx.kulasek@intel.com> References: <1444989651-6236-1-git-send-email-tomaszx.kulasek@intel.com> <1446215156-12260-1-git-send-email-tomaszx.kulasek@intel.com> Subject: [dpdk-dev] [PATCH v7 2/9] null: fix segfault when null_pmd added to bonding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 14:26:09 -0000 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) 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 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(ð_dev->link_intr_cbs); /* finally assign rx and tx ops */ if (packet_copy) { -- 1.7.9.5