]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix display statistics for veb_tc
authorEryk Rybak <eryk.roch.rybak@intel.com>
Tue, 2 Mar 2021 07:46:27 +0000 (08:46 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 1 Apr 2021 16:27:38 +0000 (09:27 -0700)
commit3f69f96bb57518c1b34cce2ad2fb81802326ff80
tree3cbafa8484e0c5adfcc924d44822915a28382a6f
parent8862c82321245ec382af1e23790d9c06398f5b3a
i40e: Fix display statistics for veb_tc

If veb-stats was enabled, the ethtool stats triggered a warning
due to invalid size: 'unexpected stat size for veb.tc_%u_tx_packets'.
This was due to an incorrect structure definition for the statistics.
Structures and functions have been improved in line with requirements
for the presentation of statistics, in particular for the functions:
'i40e_add_ethtool_stats' and 'i40e_add_stat_strings'.

Fixes: e16696534346 ("i40e: convert VEB TC stats to use an i40e_stats array")
Signed-off-by: Eryk Rybak <eryk.roch.rybak@intel.com>
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c