DPDK patches and discussions
 help / color / mirror / Atom feed
From: Tomasz Kulasek <tomaszx.kulasek@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v7 2/9] null: fix segfault when null_pmd added to bonding
Date: 30 Oct 2015 06:56:30 -0700	[thread overview]
Message-ID: <f90827$o22rp8@orsmga001.jf.intel.com> (raw)

Date: Fri, 30 Oct 2015 14:55:57 +0100
Message-Id: <1446213364-11856-3-git-send-email-tomaszx.kulasek@intel.com>
X-Mailer: git-send-email 2.1.4
In-Reply-To: <1446213364-11856-1-git-send-email-tomaszx.kulasek@intel.com>
References: <1444989651-6236-1-git-send-email-tomaszx.kulasek@intel.com>
 <1446213364-11856-1-git-send-email-tomaszx.kulasek@intel.com>

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 <tomaszx.kulasek@intel.com>

Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>

---

 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(&eth_dev->link_intr_cbs);

 

 	/* finally assign rx and tx ops */

 	if (packet_copy) {

-- 

1.7.9.5

             reply	other threads:[~2015-10-30 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30 13:56 Tomasz Kulasek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-10-16 10:00 [dpdk-dev] [PATCH v6 0/9] Dynamic RSS Configuration for Bonding Tomasz Kulasek
2015-10-30 14:25 ` [dpdk-dev] [PATCH v7 " Tomasz Kulasek
2015-10-30 14:25   ` [dpdk-dev] [PATCH v7 2/9] null: fix segfault when null_pmd added to bonding Tomasz Kulasek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='f90827$o22rp8@orsmga001.jf.intel.com' \
    --to=tomaszx.kulasek@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).