]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: ksz8795: Don't use phy_port_cnt in VLAN table lookup
authorBen Hutchings <ben.hutchings@mind.be>
Mon, 9 Aug 2021 23:00:15 +0000 (01:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2021 08:58:15 +0000 (09:58 +0100)
commitdc919e977f9088215f164d6411909156c10285d3
treed1435c3f95e47ffb02a544283fffb01772127722
parent3b7d2001687e179cccb88f68eb986d3b1e04d52b
net: dsa: microchip: ksz8795: Don't use phy_port_cnt in VLAN table lookup

The magic number 4 in VLAN table lookup was the number of entries we
can read and write at once.  Using phy_port_cnt here doesn't make
sense and presumably broke VLAN filtering for 3-port switches.  Change
it back to 4.

Fixes: 8300f62230d4 ("net: dsa: microchip: ksz8795: use phy_port_cnt ...")
Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c