]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:08 +0000 (15:11 +0200)
commitfac3629829ec16e1e7f9e0690b6a49c5e612a134
tree29f1d059149e3fa2a5f30e73ea2d14bedc534f8e
parent15d2b2bf096ed7e6438173a5d530337e5d7283a5
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>
Stable-dep-of: 5a6caa2cfabb ("net: xilinx: axienet: Fix packet counting")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c