qtnfmac: support 64-bit network interface stats
authorVasily Ulyanov <vulyanov@quantenna.com>
Mon, 22 Jan 2018 12:46:26 +0000 (15:46 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 16:00:30 +0000 (18:00 +0200)
commit04b01affb824ef1f2a3e3f4e64a133d3b45376cd
treec84d47be3636a4adfce428963ad57d4a0ca404a8
parent87affddef94e65a10683cc43229f0bb4f47b2bee
qtnfmac: support 64-bit network interface stats

On 32-bit platforms packet counters are stored in a net_device_stats struct
as unsigned long integers. As a result, after some time of network activity
an overflow takes place in network packet counters. This patch makes use of
new structs for holding interface statistics.

Signed-off-by: Vasily Ulyanov <vulyanov@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/core.c
drivers/net/wireless/quantenna/qtnfmac/core.h
drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c