Skip to content

Commit 9aa5757

Browse files
oleremdavem330
authored andcommitted
net: dsa: microchip: ksz8: fix MDB configuration with non-zero VID
FID is directly mapped to VID. However, configuring a MAC address with a VID != 0 resulted in incorrect configuration due to an incorrect bit mask. This kernel commit fixed the issue by correcting the bit mask and ensuring proper configuration of MAC addresses with non-zero VID. Fixes: 4b20a07 ("net: dsa: microchip: ksz8795: add support for ksz88xx chips") Signed-off-by: Oleksij Rempel <[email protected]> Acked-by: Arun Ramadoss <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 392ff7a commit 9aa5757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/microchip/ksz_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static const u32 ksz8863_masks[] = {
404404
[VLAN_TABLE_VALID] = BIT(19),
405405
[STATIC_MAC_TABLE_VALID] = BIT(19),
406406
[STATIC_MAC_TABLE_USE_FID] = BIT(21),
407-
[STATIC_MAC_TABLE_FID] = GENMASK(29, 26),
407+
[STATIC_MAC_TABLE_FID] = GENMASK(25, 22),
408408
[STATIC_MAC_TABLE_OVERRIDE] = BIT(20),
409409
[STATIC_MAC_TABLE_FWD_PORTS] = GENMASK(18, 16),
410410
[DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(1, 0),

0 commit comments

Comments
 (0)