git: bf8d4cfe347b - main - eqos: Fix group address filtering.

From: Peter Jeremy <peterj_at_FreeBSD.org>
Date: Wed, 16 Oct 2024 07:23:40 UTC
The branch main has been updated by peterj:

URL: https://cgit.FreeBSD.org/src/commit/?id=bf8d4cfe347b34a9ca21e2cdab5f9bba09be73bf

commit bf8d4cfe347b34a9ca21e2cdab5f9bba09be73bf
Author:     Peter Jeremy <peterj@FreeBSD.org>
AuthorDate: 2024-10-16 07:20:30 +0000
Commit:     Peter Jeremy <peterj@FreeBSD.org>
CommitDate: 2024-10-16 07:20:30 +0000

    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
---
 sys/dev/eqos/if_eqos.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/eqos/if_eqos.c b/sys/dev/eqos/if_eqos.c
index 566f6ffd0a42..6f58c96a10b7 100644
--- a/sys/dev/eqos/if_eqos.c
+++ b/sys/dev/eqos/if_eqos.c
@@ -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);