net/mlx5e: Add HW vport counters to representor ethtool stats
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 30 Apr 2018 08:42:26 +0000 (11:42 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 May 2018 00:48:54 +0000 (17:48 -0700)
commita228060a7c9ab88597eeac131e4578595d5d46ae
tree98112fb2d34baa142e55a775606ffb4375c2a81b
parent8f8ae8953fb34ac01723f1dae5b231f64a3c526b
net/mlx5e: Add HW vport counters to representor ethtool stats

Currently the representor only report the SW (slow-path) traffic
counters.

Add packet/bytes reporting of the HW counters, which account for the
total amount of traffic that was handled by the vport, both slow and
fast (offloaded) paths. The newly exposed counters are named
vport_rx/tx_packets/bytes.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Adi Nissim <adin@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c