]> 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)
commit8a1bd5880e322958f061767a5590f906a6fa43ef
tree3cbafa8484e0c5adfcc924d44822915a28382a6f
parentb199b84eb726df92c89c0fdd81ed5f10be981768
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: 44fba57887d8 ("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