Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip no need to invert ether_crc32_le retur...
details: https://anonhg.NetBSD.org/src/rev/bd9f6f2c8979
branches: trunk
changeset: 805618:bd9f6f2c8979
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Jan 08 13:37:54 2015 +0000
description:
no need to invert ether_crc32_le return, now multicast works
diffstat:
sys/arch/arm/rockchip/rockchip_emac.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4cd23277d417 -r bd9f6f2c8979 sys/arch/arm/rockchip/rockchip_emac.c
--- a/sys/arch/arm/rockchip/rockchip_emac.c Thu Jan 08 12:06:50 2015 +0000
+++ b/sys/arch/arm/rockchip/rockchip_emac.c Thu Jan 08 13:37:54 2015 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_rkemac.h"
#include <sys/cdefs.h>
-__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 <sys/param.h>
#include <sys/bus.h>
@@ -914,7 +914,7 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index