lkml.org 
[lkml]   [2022]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] drivers, ixgbe: show VF statistics via ethtool
On Tue, 26 Apr 2022 08:46:35 +0000 Maximilian Heyne wrote:
> + for (i = 0; i < adapter->num_vfs; i++) {
> + ethtool_sprintf(&p, "VF %u Rx Packets", i);
> + ethtool_sprintf(&p, "VF %u Rx Bytes", i);
> + ethtool_sprintf(&p, "VF %u Tx Packets", i);
> + ethtool_sprintf(&p, "VF %u Tx Bytes", i);
> + ethtool_sprintf(&p, "VF %u MC Packets", i);

Please use ndo_get_vf_stats / IFLA_VF_STATS.

\
 
 \ /
  Last update: 2022-04-26 17:14    [W:0.063 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site