summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-06-29 14:07:04 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-06-29 14:07:04 +0000
commit60bce3d8b05b1cc887b05c5e0a9deecd31d19e88 (patch)
tree72e55967a6ed122019855cc78f8ee4028863e4fa /sys
parent7655c3541cd6bea7899eb9dfb91a41973a0c9ad2 (diff)
after computing the hash value, inform the card [delete-o from when this
was imported]. Also, backout previous.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/xl.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index a74e6a040dc..a6b273f477a 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.3 2000/06/22 08:24:02 itojun Exp $ */
+/* $OpenBSD: xl.c,v 1.4 2000/06/29 14:07:03 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -673,6 +673,7 @@ allmulti:
goto allmulti;
}
h = xl_calchash(enm->enm_addrlo);
+ CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_SET_HASH|XL_HASH_SET|h);
mcnt++;
ETHER_NEXT_MULTI(step, enm);
}
@@ -1956,11 +1957,7 @@ void xl_init(xsc)
/*
* Program the multicast filter, if necessary.
*/
-#if 0
if (sc->xl_type == XL_TYPE_905B)
-#else
- if (0) /* xl_setmulti_hash() does not work right */
-#endif
xl_setmulti_hash(sc);
else
xl_setmulti(sc);
@@ -2231,11 +2228,7 @@ xl_ioctl(ifp, command, data)
* Multicast list has changed; set the hardware
* filter accordingly.
*/
-#if 0
if (sc->xl_type == XL_TYPE_905B)
-#else
- if (0) /* xl_setmulti_hash() does not work right */
-#endif
xl_setmulti_hash(sc);
else
xl_setmulti(sc);