git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e49f113
)
net/mlx5: fix build without soft counters
author
Thierry Herbelot
<thierry.herbelot@6wind.com>
Tue, 14 Nov 2017 13:52:44 +0000
(14:52 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Tue, 14 Nov 2017 17:44:24 +0000
(18:44 +0100)
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>
drivers/net/mlx5/mlx5_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx5/mlx5_rxtx.c
b/drivers/net/mlx5/mlx5_rxtx.c
index
9658b37
..
2d30c50
100644
(file)
--- 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;
}