]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e727f9cf98216e664e1369186f897d21550461c
treed432f6a39cce748a4def99804e7b1dbbe9e65d00
parent6369ae36218b5372777262f5a2a0fb011e94374f
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