linux-stable/drivers/net
Rakesh Sankaranarayanan a84240df70 net: dsa: microchip: ksz9477: port map correction in ALU table entry register
[ Upstream commit 6c977c5c2e ]

ALU table entry 2 register in KSZ9477 have bit positions reserved for
forwarding port map. This field is referred in ksz9477_fdb_del() for
clearing forward port map and alu table.

But current fdb_del refer ALU table entry 3 register for accessing forward
port map. Update ksz9477_fdb_del() to get forward port map from correct
alu table entry register.

With this bug, issue can be observed while deleting static MAC entries.
Delete any specific MAC entry using "bridge fdb del" command. This should
clear all the specified MAC entries. But it is observed that entries with
self static alone are retained.

Tested on LAN9370 EVB since ksz9477_fdb_del() is used common across
LAN937x and KSZ series.

Fixes: b987e98e50 ("dsa: add DSA switch driver for Microchip KSZ9477")
Signed-off-by: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20230118174735.702377-1-rakesh.sankaranarayanan@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:23:16 +01:00
..
appletalk
arcnet arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:40:02 +01:00
bonding drivers/net/bonding/bond_3ad: return when there's no aggregator 2023-01-14 10:16:48 +01:00
caif
can can: tcan4x5x: Remove invalid write in clear_interrupts 2023-01-14 10:15:44 +01:00
dsa net: dsa: microchip: ksz9477: port map correction in ALU table entry register 2023-02-01 08:23:16 +01:00
ethernet net: macb: fix PTP TX timestamp failure due to packet padding 2023-02-01 08:23:14 +01:00
fddi net: defxx: Fix missing err handling in dfx_init() 2023-01-14 10:15:42 +01:00
fjes
hamradio hamradio: baycom_epp: Fix return type of baycom_send_packet() 2023-01-14 10:16:16 +01:00
hippi
hyperv hv_netvsc: Fix race between VF offering and VF association message from host 2022-10-30 09:41:19 +01:00
ieee802154 ca8210: Fix crash by zero initializing data 2022-12-14 11:32:00 +01:00
ipa net: ipa: properly limit modem routing table use 2022-09-28 11:10:34 +02:00
ipvlan ipvlan: Fix out-of-bound bugs caused by unset skb->mac_header 2022-09-28 11:10:30 +02:00
mdio of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-28 11:10:33 +02:00
netdevsim
pcs
phy net: mdio: validate parameter addr in mdiobus_get_phy() 2023-02-01 08:23:13 +01:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2022-12-14 11:32:04 +01:00
ppp ppp: associate skb with a device at tx 2023-01-14 10:16:18 +01:00
slip
team net: team: Unsync device addresses on ndo_stop 2022-09-28 11:10:31 +02:00
usb net: usb: sr9700: Handle negative len 2023-02-01 08:23:13 +01:00
vmxnet3 vmxnet3: correctly report csum_level for encapsulated packet 2023-01-14 10:16:45 +01:00
wan net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs 2023-02-01 08:23:12 +01:00
wimax
wireguard wireguard: netlink: avoid variable-sized memcpy on sockaddr 2022-09-28 11:10:34 +02:00
wireless wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid 2023-02-01 08:23:12 +01:00
xen-netback xen/netback: fix build warning 2022-12-14 11:32:04 +01:00
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c net: loopback: use NET_NAME_PREDICTABLE for name_assign_type 2022-12-21 17:32:08 +01:00
macsec.c net: macsec: fix net device access prior to holding a lock 2023-01-14 10:16:09 +01:00
macvlan.c macvlan: enforce a consistent minimal mtu 2022-11-25 17:45:55 +01:00
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: Use dev_kfree_skb_any() in interrupt context 2023-01-14 10:15:44 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c net: thunderbolt: Fix error handling in tbnet_init() 2022-11-25 17:45:48 +01:00
tun.c net: tun: Fix use-after-free in tun_detach() 2022-12-08 11:23:56 +01:00
veth.c veth: Fix race with AF_XDP exposing old or uninitialized descriptors 2023-01-14 10:16:45 +01:00
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c xen-netfront: Fix NULL sring after live migration 2022-12-14 11:32:02 +01:00