net/mlx5e: Provide correct packet/bytes statistics
authorGal Pressman <galp@mellanox.com>
Mon, 29 Feb 2016 19:17:15 +0000 (21:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:37:26 +0000 (14:37 -0500)
commitfaf4478bf8b7b5e6c94cb07a52a00e4d1cd647c6
treeb454242763a07899ce2812f7226ce92c782cd8c0
parentb081da5ee1860d1874381a413a1b71d8f9f67e83
net/mlx5e: Provide correct packet/bytes statistics

Using the HW VPort counters for traffic (rx/tx packets/bytes)
statistics is wrong. This is because frames dropped due to steering or
out of buffer will be counted as received. To fix that, we move to use
the packet/bytes accounting done by the driver for what the netdev
reports out.

Fixes: f62b8bb8f2d3 ('net/mlx5: Extend mlx5_core to support [...]')
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
This page took 0.025565 seconds and 5 git commands to generate.