]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add VLAN offloads statistics
authorGal Pressman <galp@mellanox.com>
Sun, 10 Sep 2017 10:49:59 +0000 (13:49 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 9 Nov 2017 04:28:22 +0000 (13:28 +0900)
commit117e9a16a3dcb9e8481061cdb06d555f9e7c6a30
treec8ebd85c3067128f22ac4e735d1e16e78e0c3605
parent995a54715f0819499916577f8d2c84e03fed3ee7
net/mlx5e: Add VLAN offloads statistics

The following counters are now exposed through ethtool -S:
rx[i]_removed_vlan_packets (per channel)
rx_removed_vlan_packets
tx[i]_added_vlan_packets (per channel)
tx_added_vlan_packets

rx_removed_vlan_packets: The number of packets that had their
outer VLAN header stripped to the CQE by the hardware.
tx_added_vlan_packets: The number of packets that had their
outer VLAN header inserted by the hardware.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c