eqos: Fix group address filtering.

The hash filter table order in the GMAC matches the order of the top
bit of the hashed destination address. See the description of
GMAC_MAC_Hash_table_Reg0 in RK3568 TRM part 2, section 20.4.2.

PR:		282074
Reviewed by:	manu
MFC after:	7 days
Differential Revision:	https://reviews.freebsd.org/D47115
This commit is contained in:
Peter Jeremy 2024-10-16 18:20:30 +11:00
parent 7bc0cb91a2
commit bf8d4cfe34
No known key found for this signature in database
GPG key ID: 16A597A0E4A20B34

View file

@ -442,8 +442,8 @@ eqos_setup_rxfilter(struct eqos_softc *sc)
WR4(sc, GMAC_MAC_ADDRESS0_LOW, val);
/* Multicast hash filters */
WR4(sc, GMAC_MAC_HASH_TABLE_REG0, hash[1]);
WR4(sc, GMAC_MAC_HASH_TABLE_REG1, hash[0]);
WR4(sc, GMAC_MAC_HASH_TABLE_REG0, hash[0]);
WR4(sc, GMAC_MAC_HASH_TABLE_REG1, hash[1]);
/* Packet filter config */
WR4(sc, GMAC_MAC_PACKET_FILTER, pfil);