From 147ccb76990dceb4326c635aa48dab2168447db8 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Thu, 8 Jan 2015 13:37:54 +0000 Subject: [PATCH] no need to invert ether_crc32_le return, now multicast works --- sys/arch/arm/rockchip/rockchip_emac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/rockchip/rockchip_emac.c b/sys/arch/arm/rockchip/rockchip_emac.c index e3d01c931b82..e910c152dd80 100644 --- a/sys/arch/arm/rockchip/rockchip_emac.c +++ b/sys/arch/arm/rockchip/rockchip_emac.c @@ -1,4 +1,4 @@ -/* $NetBSD: rockchip_emac.c,v 1.7 2015/01/06 11:22:09 jmcneill Exp $ */ +/* $NetBSD: rockchip_emac.c,v 1.8 2015/01/08 13:37:54 jmcneill Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -29,7 +29,7 @@ #include "opt_rkemac.h" #include -__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.7 2015/01/06 11:22:09 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.8 2015/01/08 13:37:54 jmcneill Exp $"); #include #include @@ -914,7 +914,7 @@ rkemac_setmulti(struct rkemac_softc *sc) hashes[0] = hashes[1] = 0xffffffff; goto done; } - h = ~ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) >> 26; + h = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN) >> 26; hashes[h >> 5] |= (1 << (h & 0x1f)); ETHER_NEXT_MULTI(step, enm); }