]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb66851e06714cd315aeeb466cfd5ee37d2abc80e
tree98112fb2d34baa142e55a775606ffb4375c2a81b
parentf8abb353559c7ea616b5791a96df0310adf6c46a
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