Re: [PATCH v5 net-next] net: systemport: Support 64bit statistics

2017-07-31 Thread Eric Dumazet
On Mon, 2017-07-31 at 01:01 +0100, Jianming.qiao wrote: ... > + for (q = 0; q < dev->num_tx_queues; q++) { > + ring = &priv->tx_rings[q]; > + do { > + start = u64_stats_fetch_begin_irq(&stats64->syncp); > + tx_bytes += ring->bytes

Re: [PATCH v5 net-next] net: systemport: Support 64bit statistics

2017-07-30 Thread Florian Fainelli
On July 30, 2017 5:01:15 PM PDT, "Jianming.qiao" wrote: >When using Broadcom Systemport device in 32bit Platform, ifconfig can >only report up to 4G tx,rx status, which will be wrapped to 0 when the >number of incoming or outgoing packets exceeds 4G, only taking >around 2 hours in busy network env

[PATCH v5 net-next] net: systemport: Support 64bit statistics

2017-07-30 Thread Jianming.qiao
When using Broadcom Systemport device in 32bit Platform, ifconfig can only report up to 4G tx,rx status, which will be wrapped to 0 when the number of incoming or outgoing packets exceeds 4G, only taking around 2 hours in busy network environment (such as streaming). Therefore, it makes hard for ne