Message ID | 1513908937-16034-12-git-send-email-jasowang@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,01/18] e1000, e1000e: Move per-packet TX offload flags out of context state | expand |
diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index 3db8937..b9032da 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "hw/sysbus.h" #include "net/net.h" +#include "net/eth.h" #include "hw/devices.h" #include "sysemu/sysemu.h" #include "hw/ptimer.h" @@ -504,7 +505,7 @@ static int lan9118_filter(lan9118_state *s, const uint8_t *addr) } } else { /* Hash matching */ - hash = compute_mcast_idx(addr); + hash = net_crc32(addr, ETH_ALEN) >> 26; if (hash & 0x20) { return (s->mac_hashh >> (hash & 0x1f)) & 1; } else {