]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add packet dropped while vport down statistics
authorMoshe Shemesh <moshe@mellanox.com>
Sat, 13 Jan 2018 22:56:25 +0000 (00:56 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:47:11 +0000 (13:47 -0700)
commit2c3f4700c9d65cdc76885d1ee33178a524379475
treebae8e6d8fd75187988ea848b28dc4a5349554c2f
parent24fcc0ee18c2f5545710783dfb570ce97d6fb421
net/mlx5: Add packet dropped while vport down statistics

Added the following packets dropped while vport down statistics:

Rx dropped while vport down - counts packets which were steered by
e-switch to a vport, but dropped since the vport was down. This counter
will be shown on ip link tool as part of the vport rx_dropped counter.

Tx dropped while vport down - counts packets which were transmitted by
a vport, but dropped due to vport logical link down. This counter
will be shown on ip link tool as part of the vport tx_dropped counter.

The counters are read from FW by command QUERY_VNIC_ENV.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/vport.h