net: axienet: Switch to 64-bit RX/TX statistics
authorRobert Hancock <robert.hancock@calian.com>
Mon, 29 Aug 2022 23:39:01 +0000 (17:39 -0600)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Sep 2022 02:18:20 +0000 (19:18 -0700)
commitcb45a8bf4693965e89d115cd2c510f12bc127c37
treed432f6a39cce748a4def99804e7b1dbbe9e65d00
parenta60511cf15204e41f4edbcdc4ee80208d528917c
net: axienet: Switch to 64-bit RX/TX statistics

The RX and TX byte/packet statistics in this driver could be overflowed
relatively quickly on a 32-bit platform. Switch these stats to use the
u64_stats infrastructure to avoid this.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220829233901.3429419-1-robert.hancock@calian.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c