Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add calls to if_attach and if_deferred_start_init



details:   https://anonhg.NetBSD.org/src/rev/7717031d7877
branches:  trunk
changeset: 994940:7717031d7877
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Nov 28 21:31:32 2018 +0000

description:
Add calls to if_attach and if_deferred_start_init

diffstat:

 sys/dev/pci/if_ena.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 19dd7e954e86 -r 7717031d7877 sys/dev/pci/if_ena.c
--- a/sys/dev/pci/if_ena.c      Wed Nov 28 19:46:22 2018 +0000
+++ b/sys/dev/pci/if_ena.c      Wed Nov 28 21:31:32 2018 +0000
@@ -31,7 +31,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/sys/dev/ena/ena.c 333456 2018-05-10 09:37:54Z mw $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.8 2018/11/28 19:07:49 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.9 2018/11/28 21:31:32 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2546,6 +2546,9 @@
        ifmedia_add(&adapter->media, IFM_ETHER | IFM_AUTO, 0, NULL);
        ifmedia_set(&adapter->media, IFM_ETHER | IFM_AUTO);
 
+       if_attach(ifp);
+       if_deferred_start_init(ifp, NULL);
+
        ether_ifattach(ifp, adapter->mac_addr);
 
        return (0);



Home | Main Index | Thread Index | Old Index