summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
context:
space:
mode:
authorThierry Herbelot <thierry.herbelot@6wind.com>2017-11-14 14:52:44 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-11-14 18:44:24 +0100
commitcb98affeefff891cfce331cb88e0e93d006693a5 (patch)
treea83e806734c0e450b7c9c1cb354535645336c4fd /drivers/net/mlx5/mlx5_rxtx.c
parente49f11365427159317d8c18250c31c2f98bf5dce (diff)
downloaddpdk-cb98affeefff891cfce331cb88e0e93d006693a5.zip
dpdk-cb98affeefff891cfce331cb88e0e93d006693a5.tar.gz
dpdk-cb98affeefff891cfce331cb88e0e93d006693a5.tar.xz
net/mlx5: fix build without soft counters
total_length is only visible when SOFT_COUNTERS are enabled Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO") Cc: stable@dpdk.org Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index 9658b37..2d30c50 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;
}