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>
This commit is contained in:

committed by
Saeed Mahameed

parent
5c298143be
commit
aaabd0783b
@@ -1009,7 +1009,9 @@ struct mlx5_ifc_cmd_hca_cap_bits {
|
||||
u8 log_max_xrcd[0x5];
|
||||
|
||||
u8 nic_receive_steering_discard[0x1];
|
||||
u8 reserved_at_341[0x7];
|
||||
u8 receive_discard_vport_down[0x1];
|
||||
u8 transmit_discard_vport_down[0x1];
|
||||
u8 reserved_at_343[0x5];
|
||||
u8 log_max_flow_counter_bulk[0x8];
|
||||
u8 max_flow_counter_15_0[0x10];
|
||||
|
||||
|
Reference in New Issue
Block a user