Re: [net-next 02/15] i40e: Enable VF specific ethtool statistics via VF Port representor netdevs

2016-09-20 Thread Or Gerlitz
On Wed, Sep 21, 2016 at 8:59 AM, Samudrala, Sridhar wrote: > On 9/20/2016 9:26 PM, Or Gerlitz wrote: >> Now, when the SW stats are finally upstream for 4.9 in net-next, the >> correct approach >> for the VF reps counters is to follow the architecture presented there >> [1] -- and this is >> for t

Re: [net-next 02/15] i40e: Enable VF specific ethtool statistics via VF Port representor netdevs

2016-09-20 Thread Samudrala, Sridhar
On 9/20/2016 9:26 PM, Or Gerlitz wrote: On Wed, Sep 21, 2016 at 6:43 AM, Jeff Kirsher wrote: From: Sridhar Samudrala Sample script that shows ethtool stats on VF representor netdev PF: enp5s0f0, VF0: enp5s2 VF_REP0: enp5s0f0-vf0 # echo 2 > /sys/class/net/enp5s0f0/device/sriov_numvfs

Re: [net-next 02/15] i40e: Enable VF specific ethtool statistics via VF Port representor netdevs

2016-09-20 Thread Or Gerlitz
On Wed, Sep 21, 2016 at 6:43 AM, Jeff Kirsher wrote: > From: Sridhar Samudrala > > Sample script that shows ethtool stats on VF representor netdev > PF: enp5s0f0, VF0: enp5s2 VF_REP0: enp5s0f0-vf0 > ># echo 2 > /sys/class/net/enp5s0f0/device/sriov_numvfs ># ip link set enp5s2 up ># e

[net-next 02/15] i40e: Enable VF specific ethtool statistics via VF Port representor netdevs

2016-09-20 Thread Jeff Kirsher
From: Sridhar Samudrala Sample script that shows ethtool stats on VF representor netdev PF: enp5s0f0, VF0: enp5s2 VF_REP0: enp5s0f0-vf0 # echo 2 > /sys/class/net/enp5s0f0/device/sriov_numvfs # ip link set enp5s2 up # ethtool -S enp5s0f0-vf0 NIC statistics: tx_bytes: 0 tx_u