mgb: enable multicast in mgb_init

Receive Filtering Engine (RFE) configuration is not yet implemented,
and mgb intended to enable all broadcast, multicast, and unicast.
However, MGB_RFE_ALLOW_MULTICAST was missed (MGB_RFE_ALLOW_UNICAST was
included twice).

MFC after:	1 week
Fixes:		8890ab7758 ("Introduce if_mgb driver...")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2021-09-28 12:06:04 -04:00
parent 800e74955d
commit ecac5c2928

View file

@ -611,7 +611,7 @@ mgb_init(if_ctx_t ctx)
CSR_CLEAR_REG(sc, MGB_RFE_CTL, MGB_RFE_ALLOW_PERFECT_FILTER);
CSR_UPDATE_REG(sc, MGB_RFE_CTL,
MGB_RFE_ALLOW_BROADCAST |
MGB_RFE_ALLOW_UNICAST |
MGB_RFE_ALLOW_MULTICAST |
MGB_RFE_ALLOW_UNICAST);
error = mii_mediachg(miid);