Module Name: src
Committed By: jmcneill
Date: Wed Nov 28 21:31:33 UTC 2018
Modified Files:
src/sys/dev/pci: if_ena.c
Log Message:
Add calls to if_attach and if_deferred_start_init
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/if_ena.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_ena.c
diff -u src/sys/dev/pci/if_ena.c:1.8 src/sys/dev/pci/if_ena.c:1.9
--- src/sys/dev/pci/if_ena.c:1.8 Wed Nov 28 19:07:49 2018
+++ src/sys/dev/pci/if_ena.c Wed Nov 28 21:31:32 2018
@@ -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 @@ ena_setup_ifnet(device_t pdev, struct en
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);