* [dpdk-stable] [PATCH] net/mlx5: fix compilation without soft counters
@ 2017-11-14 13:52 Nelio Laranjeiro
2017-11-14 17:46 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Nelio Laranjeiro @ 2017-11-14 13:52 UTC (permalink / raw)
To: dev; +Cc: Thierry Herbelot, Yongseok Koh, Adrien Mazarguil, shahafs, stable
From: Thierry Herbelot <thierry.herbelot@6wind.com>
total_length is only visible when SOFT_COUNTERS are enabled
Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO")
Cc: shahafs@mellanox.com
Cc: stable@dpdk.org
Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
---
drivers/net/mlx5/mlx5_rxtx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 9658b3783..2d30c507f 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -524,7 +524,9 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n)
0,
};
ds = 1;
+#ifdef MLX5_PMD_SOFT_COUNTERS
total_length = 0;
+#endif
k++;
goto next_wqe;
}
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-stable] [PATCH] net/mlx5: fix compilation without soft counters
2017-11-14 13:52 [dpdk-stable] [PATCH] net/mlx5: fix compilation without soft counters Nelio Laranjeiro
@ 2017-11-14 17:46 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-11-14 17:46 UTC (permalink / raw)
To: Thierry Herbelot
Cc: stable, Nelio Laranjeiro, dev, Yongseok Koh, Adrien Mazarguil, shahafs
14/11/2017 14:52, Nelio Laranjeiro:
> From: Thierry Herbelot <thierry.herbelot@6wind.com>
>
> total_length is only visible when SOFT_COUNTERS are enabled
>
> Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO")
> Cc: shahafs@mellanox.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-14 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-14 13:52 [dpdk-stable] [PATCH] net/mlx5: fix compilation without soft counters Nelio Laranjeiro
2017-11-14 17:46 ` Thomas Monjalon
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).