summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorTom Barbette <barbette@kth.se>2018-11-23 09:03:37 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-13 16:31:06 +0000
commitce9494d76c478345679abbda2a5606646de9886f (patch)
tree5ed949f2c1cb9d2706590ec99f8cecf6cc3a6845 /drivers/net/mlx5/mlx5_trigger.c
parent8eb9f9f025a04a37a678c9dfa1921dec87543f5e (diff)
downloaddpdk-ce9494d76c478345679abbda2a5606646de9886f.zip
dpdk-ce9494d76c478345679abbda2a5606646de9886f.tar.gz
dpdk-ce9494d76c478345679abbda2a5606646de9886f.tar.xz
net/mlx5: report imissed statistics
The imissed counters (number of packets dropped because the queues were full) were actually reported through xstats as "rx_out_of_buffer" but was not reported through stats. Following a recent discussion on the ML, as there is no way to tell the user if a counter is implemented or not, this should be considered a bug. For example, user looking at imissed will think the packets are lost before reaching the device. Signed-off-by: Tom Barbette <barbette@kth.se> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index e2a9bb7..3015edd 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -181,7 +181,7 @@ mlx5_dev_start(struct rte_eth_dev *dev)
dev->data->port_id);
goto error;
}
- mlx5_xstats_init(dev);
+ mlx5_stats_init(dev);
ret = mlx5_traffic_enable(dev);
if (ret) {
DRV_LOG(DEBUG, "port %u failed to set defaults flows",