]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3868fb69ec76ee7af0f4cfa6221983db5ac2efb1
treeb454242763a07899ce2812f7226ce92c782cd8c0
parent3a69e2585d45097bf52b7e02fc0e7e5459288600
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: a6c0c80b2280 ('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