Re: [PATCH net-next] net: dsa: Provide CPU port statistics to master netdev

2016-06-03 Thread Florian Fainelli
On 06/03/2016 05:05 PM, Florian Fainelli wrote: > This patch overloads the DSA master netdev, aka CPU Ethernet MAC to also > include switch-side statistics, which is useful for debugging purposes, > when the switch is not properly connected to the Ethernet MAC (duplex > mismatch, (RG)MII electrical

Re: [PATCH net-next] net: dsa: Provide CPU port statistics to master netdev

2016-04-28 Thread David Miller
From: Florian Fainelli Date: Wed, 27 Apr 2016 11:45:14 -0700 > This patch overloads the DSA master netdev, aka CPU Ethernet MAC to also > include switch-side statistics, which is useful for debugging purposes, > when the switch is not properly connected to the Ethernet MAC (duplex > mismatch, (RG

Re: [PATCH net-next] net: dsa: Provide CPU port statistics to master netdev

2016-04-27 Thread Florian Fainelli
On 27/04/16 12:03, Andrew Lunn wrote: >> +if (stringset == ETH_SS_STATS && ds->drv->get_strings) { >> +ndata = data + mcount * len; >> +/* This function copies ETH_GSTRINGS_LEN bytes, we will mangle >> + * the output after to prepend our CPU port prefix we >>

Re: [PATCH net-next] net: dsa: Provide CPU port statistics to master netdev

2016-04-27 Thread Andrew Lunn
> + if (stringset == ETH_SS_STATS && ds->drv->get_strings) { > + ndata = data + mcount * len; > + /* This function copies ETH_GSTRINGS_LEN bytes, we will mangle > + * the output after to prepend our CPU port prefix we > + * constructed earlier >