Re: [Intel-wired-lan] [PATCH v2 12/15] ice: Add stats and ethtool support

2018-03-15 Thread Stephen Hemminger
On Thu, 15 Mar 2018 17:50:10 -0700 Alexander Duyck wrote: > On Thu, Mar 15, 2018 at 4:52 PM, Stephen Hemminger > wrote: > > On Thu, 15 Mar 2018 16:47:59 -0700 > > Anirudh Venkataramanan wrote: > > > >> + > >> +static const struct ice_stats ice_gstrings_vsi_stats[] = { > >> + ICE_VSI_STAT(

Re: [Intel-wired-lan] [PATCH v2 12/15] ice: Add stats and ethtool support

2018-03-15 Thread Alexander Duyck
On Thu, Mar 15, 2018 at 4:52 PM, Stephen Hemminger wrote: > On Thu, 15 Mar 2018 16:47:59 -0700 > Anirudh Venkataramanan wrote: > >> + >> +static const struct ice_stats ice_gstrings_vsi_stats[] = { >> + ICE_VSI_STAT("tx_unicast", eth_stats.tx_unicast), >> + ICE_VSI_STAT("rx_unicast", eth_s

Re: [PATCH v2 12/15] ice: Add stats and ethtool support

2018-03-15 Thread Stephen Hemminger
On Thu, 15 Mar 2018 16:47:59 -0700 Anirudh Venkataramanan wrote: > + > +static const struct ice_stats ice_gstrings_vsi_stats[] = { > + ICE_VSI_STAT("tx_unicast", eth_stats.tx_unicast), > + ICE_VSI_STAT("rx_unicast", eth_stats.rx_unicast), > + ICE_VSI_STAT("tx_multicast", eth_stats.tx_

[PATCH v2 12/15] ice: Add stats and ethtool support

2018-03-15 Thread Anirudh Venkataramanan
This patch implements a watchdog task to get packet statistics from the device. This patch also adds support for the following ethtool operations: ethtool devname ethtool -s devname [msglvl N] [msglevel type on|off] ethtool -g|--show-ring devname ethtool -G|--set-ring devname [rx N] [tx N] ethtoo