|
@@ -776,8 +776,8 @@ static int ftgmac100_filter(FTGMAC100State *s, const uint8_t *buf, size_t len)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- /* TODO: this does not seem to work for ftgmac100 */
|
|
|
- mcast_idx = net_crc32(buf, ETH_ALEN) >> 26;
|
|
|
+ mcast_idx = net_crc32_le(buf, ETH_ALEN);
|
|
|
+ mcast_idx = (~(mcast_idx >> 2)) & 0x3f;
|
|
|
if (!(s->math[mcast_idx / 32] & (1 << (mcast_idx % 32)))) {
|
|
|
return 0;
|
|
|
}
|