Re: [PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-03 Thread Florian Fainelli
On 08/03/2017 11:11 AM, Andrew Lunn wrote: > On Thu, Aug 03, 2017 at 10:30:56AM -0700, Florian Fainelli wrote: >> On 08/02/2017 04:49 PM, David Miller wrote: >>> From: Florian Fainelli >>> Date: Tue, 1 Aug 2017 15:00:36 -0700 >>> DSA slave network devices maintain a

Re: [PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 10:30:56AM -0700, Florian Fainelli wrote: > On 08/02/2017 04:49 PM, David Miller wrote: > > From: Florian Fainelli > > Date: Tue, 1 Aug 2017 15:00:36 -0700 > > > >> DSA slave network devices maintain a pair of bytes and packets counters > >> for

Re: [PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-03 Thread Florian Fainelli
On 08/02/2017 04:49 PM, David Miller wrote: > From: Florian Fainelli > Date: Tue, 1 Aug 2017 15:00:36 -0700 > >> DSA slave network devices maintain a pair of bytes and packets counters >> for each directions, but these are not 64-bit capable. Re-use >> pcpu_sw_netstats

Re: [PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-02 Thread David Miller
From: Florian Fainelli Date: Tue, 1 Aug 2017 15:00:36 -0700 > DSA slave network devices maintain a pair of bytes and packets counters > for each directions, but these are not 64-bit capable. Re-use > pcpu_sw_netstats which contains exactly what we need for that purpose >

Re: [PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-01 Thread Florian Fainelli
On 08/01/2017 03:00 PM, Florian Fainelli wrote: > DSA slave network devices maintain a pair of bytes and packets counters > for each directions, but these are not 64-bit capable. Re-use > pcpu_sw_netstats which contains exactly what we need for that purpose > and update the code path to report

[PATCH net-next] net: dsa: Add support for 64-bit statistics

2017-08-01 Thread Florian Fainelli
DSA slave network devices maintain a pair of bytes and packets counters for each directions, but these are not 64-bit capable. Re-use pcpu_sw_netstats which contains exactly what we need for that purpose and update the code path to report 64-bit capable statistics. Signed-off-by: Florian Fainelli