From: Olivier Gournet <ogournet@corp.free.fr>
To: dev@dpdk.org
Cc: Adrien Mazarguil <adrien.mazarguil@6wind.com>,
Nelio Laranjeiro <nelio.laranjeiro@6wind.com>,
Olivier Gournet <ogournet@corp.free.fr>
Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix init on secondary process
Date: Mon, 17 Oct 2016 14:56:33 +0200 [thread overview]
Message-ID: <1476708993-62820-1-git-send-email-ogournet@corp.free.fr> (raw)
In-Reply-To: <1475072658-29534-1-git-send-email-ogournet@corp.free.fr>
Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path")
Fixes: 21c8bb4928c9 ("net/mlx5: split Tx queue structure")
Signed-off-by: Olivier Gournet <ogournet@corp.free.fr>
---
drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index c76e754..188ade9 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -1309,11 +1309,13 @@ mlx5_secondary_data_setup(struct priv *priv)
continue;
primary_txq_ctrl = container_of(primary_txq,
struct txq_ctrl, txq);
- txq_ctrl = rte_calloc_socket("TXQ", 1, sizeof(*txq_ctrl), 0,
+ txq_ctrl = rte_calloc_socket("TXQ", 1, sizeof(*txq_ctrl) +
+ (1 << primary_txq->elts_n) *
+ sizeof(struct rte_mbuf *), 0,
primary_txq_ctrl->socket);
if (txq_ctrl != NULL) {
if (txq_ctrl_setup(priv->dev,
- primary_txq_ctrl,
+ txq_ctrl,
1 << primary_txq->elts_n,
primary_txq_ctrl->socket,
NULL) == 0) {
--
2.1.4
next prev parent reply other threads:[~2016-10-17 12:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 14:24 [dpdk-dev] [PATCH] " Olivier Gournet
2016-10-10 13:32 ` Ferruh Yigit
2016-10-11 9:45 ` Adrien Mazarguil
2016-10-17 12:05 ` Ferruh Yigit
2016-10-17 12:56 ` Olivier Gournet [this message]
2016-10-17 13:52 ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2016-10-17 14:18 ` Adrien Mazarguil
2016-10-19 9:31 ` Bruce Richardson
2016-10-19 10:05 ` Adrien Mazarguil
2016-10-24 13:26 ` Bruce Richardson
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=1476708993-62820-1-git-send-email-ogournet@corp.free.fr \
--to=ogournet@corp.free.fr \
--cc=adrien.mazarguil@6wind.com \
--cc=dev@dpdk.org \
--cc=nelio.laranjeiro@6wind.com \
/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).