Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Set filter at lan9118_init() and lan9118_ioctl wi...
details: https://anonhg.NetBSD.org/src/rev/4786165ec518
branches: trunk
changeset: 750207:4786165ec518
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sun Dec 20 10:57:35 2009 +0000
description:
Set filter at lan9118_init() and lan9118_ioctl with SIOCSIFFLAGS.
diffstat:
sys/dev/ic/lan9118.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 13de3e8ed988 -r 4786165ec518 sys/dev/ic/lan9118.c
--- a/sys/dev/ic/lan9118.c Sun Dec 20 09:36:05 2009 +0000
+++ b/sys/dev/ic/lan9118.c Sun Dec 20 10:57:35 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lan9118.c,v 1.11 2009/12/06 12:22:17 kiyohara Exp $ */
+/* $NetBSD: lan9118.c,v 1.12 2009/12/20 10:57:35 kiyohara Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.11 2009/12/06 12:22:17 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.12 2009/12/20 10:57:35 kiyohara Exp $");
/*
* The LAN9118 Family
@@ -490,6 +490,9 @@
case IFF_UP:
lan9118_init(ifp);
break;
+ case IFF_UP|IFF_RUNNING:
+ lan9118_set_filter(sc);
+ break;
default:
break;
}
@@ -625,6 +628,8 @@
lan9118_mac_writereg(sc, LAN9118_MAC_CR,
mac_cr | LAN9118_MAC_CR_TXEN | LAN9118_MAC_CR_RXEN);
+ lan9118_set_filter(sc);
+
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE;
Home |
Main Index |
Thread Index |
Old Index