]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:12 +0000 (09:58 +0200)
commit7d1e5f5ee93dc9ef50d8eb4191a1b907777ebad9
tree0bdbb4f92536532dc1549c60d0ad7f972d248f57
parent05785ba834f23272f9d23427ae4a80ac505a5296
net: axienet: Switch to 64-bit RX/TX statistics

[ Upstream commit cb45a8bf4693965e89d115cd2c510f12bc127c37 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c