summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_defs.h
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2015-10-30 19:52:36 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-10-30 22:24:08 +0100
commit87011737b715ff7c3d4054777f702315d31b4982 (patch)
tree903bd9be7b3848318a691a3197fba9fb9b358558 /drivers/net/mlx5/mlx5_defs.h
parentcf37ca9563d59a2fb28ae1c3ab728a7fb2606f68 (diff)
downloaddpdk-next-eventdev-87011737b715ff7c3d4054777f702315d31b4982.zip
dpdk-next-eventdev-87011737b715ff7c3d4054777f702315d31b4982.tar.gz
dpdk-next-eventdev-87011737b715ff7c3d4054777f702315d31b4982.tar.xz
mlx5: add software counters
Hardware counters are not supported yet. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_defs.h')
-rw-r--r--drivers/net/mlx5/mlx5_defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index c85be9c..d3a0d0e 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -64,4 +64,12 @@
#define MLX5_PMD_TX_MP_CACHE 8
#endif
+/*
+ * If defined, only use software counters. The PMD will never ask the hardware
+ * for these, and many of them won't be available.
+ */
+#ifndef MLX5_PMD_SOFT_COUNTERS
+#define MLX5_PMD_SOFT_COUNTERS 1
+#endif
+
#endif /* RTE_PMD_MLX5_DEFS_H_ */