mirror-linux/drivers/net
Colin Foster 9e62a49608 net: mscc: ocelot: fix stat counter register values
[ Upstream commit cdc2e28e21 ]

Commit d4c3676507 ("net: mscc: ocelot: keep ocelot_stat_layout by reg
address, not offset") organized the stats counters for Ocelot chips, namely
the VSC7512 and VSC7514. A few of the counter offsets were incorrect, and
were caught by this warning:

WARNING: CPU: 0 PID: 24 at drivers/net/ethernet/mscc/ocelot_stats.c:909
ocelot_stats_init+0x1fc/0x2d8
reg 0x5000078 had address 0x220 but reg 0x5000079 has address 0x214,
bulking broken!

Fix these register offsets.

Fixes: d4c3676507 ("net: mscc: ocelot: keep ocelot_stat_layout by reg address, not offset")
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:32 +01:00
..
appletalk
arcnet
bonding bonding: fix send_peer_notif overflow 2023-05-24 17:32:32 +01:00
caif
can can: esd_usb: Make use of can_change_state() and relocate checking skb for NULL 2023-03-10 09:33:06 +01:00
dsa net: dsa: mt7530: fix network connectivity with multiple CPU ports 2023-05-17 11:53:38 +02:00
ethernet net: mscc: ocelot: fix stat counter register values 2023-05-24 17:32:32 +01:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Check status in SEND_RNDIS_PKT completion message 2023-03-10 09:33:53 +01:00
ieee802154 ca8210: Fix unsigned mac_len comparison with zero in ca8210_skb_tx() 2023-04-06 12:10:42 +02:00
ipa net: ipa: compute DMA pool size properly 2023-04-06 12:10:48 +02:00
ipvlan ipvlan:Fix out-of-bounds caused by unclear skb->cb 2023-05-24 17:32:32 +01:00
mctp
mdio net: mdio: mvusb: Fix an error handling path in mvusb_mdio_probe() 2023-05-24 17:32:31 +01:00
netdevsim
pcs net: pcs: xpcs: remove double-read of link state when using AN 2023-05-11 23:03:18 +09:00
phy net: phy: bcm7xx: Correct read from expansion register 2023-05-24 17:32:31 +01:00
plip
ppp
pse-pd
slip
team
usb r8152: move setting r8153b_rx_agg_chg_indicate() 2023-05-17 11:53:34 +02:00
vmxnet3 vmxnet3: use gro callback when UPT is enabled 2023-04-06 12:10:52 +02:00
vxlan
wan
wireguard wireguard: timers: cast enum limits members to int in prints 2023-05-11 23:02:58 +09:00
wireless wifi: rtw88: rtw8821c: Fix rfe_option field width 2023-05-17 11:53:54 +02:00
wwan net: wwan: t7xx: do not compile with -Werror 2023-05-11 23:02:58 +09:00
xen-netback xen/netback: use same error messages for same errors 2023-04-26 14:28:37 +02:00
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c net/net_failover: fix txq exceeding warning 2023-04-06 12:10:46 +02:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c net: add vlan_get_protocol_and_depth() helper 2023-05-24 17:32:32 +01:00
thunderbolt.c
tun.c tun: tun_chr_open(): correctly initialize socket uid 2023-03-10 09:33:01 +01:00
veth.c veth: Fix use after free in XDP_REDIRECT 2023-03-22 13:33:49 +01:00
virtio_net.c virtio_net: suppress cpu stall when free_unused_bufs 2023-05-17 11:53:38 +02:00
vrf.c
vsockmon.c
xen-netfront.c