[Intel-wired-lan] [PATCH net-next v2] i40e: implement VF stats NDO

Bowers, AndrewX andrewx.bowers at intel.com
Fri Nov 1 16:50:56 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Jesse Brandeburg
> Sent: Monday, October 28, 2019 5:37 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net-next v2] i40e: implement VF stats NDO
> 
> Implement the VF stats gathering via the kernel via ndo_get_vf_stats().
> The driver will show per-VF stats in the output of the command:
> ip -s link show dev <PF>
> 
> Testing Hints:
> ip -s link show dev eth0
> will return non-zero VF stats.
> ...
>    vf 0 MAC 00:55:aa:00:55:aa, spoof checking on, link-state enable, trust off
>    RX: bytes  packets  mcast   bcast
>    128000     1000     104     104
>    TX: bytes  packets
>    128000     1000
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> 
> ---
> 
> v2: remove transmit stats from multicast and broadcast based on feedback,
> add a little to commit message.
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c   |  1 +
>  .../ethernet/intel/i40e/i40e_virtchnl_pf.c    | 48 +++++++++++++++++++
>  .../ethernet/intel/i40e/i40e_virtchnl_pf.h    |  2 +
>  3 files changed, 51 insertions(+)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list