i40e/i40evf: Add capability to gather VEB per TC stats
This patch adds capability to update per VEB per TC statistics and dump it via ethtool. It also adds a structure to hold VEB per TC statistics. The fields can be filled by reading the GLVEBTC_* counters. Change-ID: I28b4759b9ab6ad5a61f046a1bc9ef6b16fe31538 Signed-off-by: Neerav Parikh <neerav.parikh@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
510efb2682
commit
fe860afb46
@@ -1095,6 +1095,14 @@ struct i40e_eth_stats {
|
||||
u64 tx_errors; /* tepc */
|
||||
};
|
||||
|
||||
/* Statistics collected per VEB per TC */
|
||||
struct i40e_veb_tc_stats {
|
||||
u64 tc_rx_packets[I40E_MAX_TRAFFIC_CLASS];
|
||||
u64 tc_rx_bytes[I40E_MAX_TRAFFIC_CLASS];
|
||||
u64 tc_tx_packets[I40E_MAX_TRAFFIC_CLASS];
|
||||
u64 tc_tx_bytes[I40E_MAX_TRAFFIC_CLASS];
|
||||
};
|
||||
|
||||
/* Statistics collected by the MAC */
|
||||
struct i40e_hw_port_stats {
|
||||
/* eth stats collected by the port */
|
||||
|
Reference in New Issue
Block a user