summaryrefslogtreecommitdiffstats
path: root/sys/dev/fe
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-07-13 22:54:34 +0000
committerarchie <archie@FreeBSD.org>2000-07-13 22:54:34 +0000
commit7357df6b4854f9914c605ad7c7cf3c01ea7700fd (patch)
treef79218274bf72874f2d01c6213ea088c3a3e768d /sys/dev/fe
parentef18034ac19957f4a94d28dd906d02cf32260a83 (diff)
downloadFreeBSD-src-7357df6b4854f9914c605ad7c7cf3c01ea7700fd.zip
FreeBSD-src-7357df6b4854f9914c605ad7c7cf3c01ea7700fd.tar.gz
Make all Ethernet drivers attach using ether_ifattach() and detach using
ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
Diffstat (limited to 'sys/dev/fe')
-rw-r--r--sys/dev/fe/if_fe.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c
index 5a73a67..79883cc 100644
--- a/sys/dev/fe/if_fe.c
+++ b/sys/dev/fe/if_fe.c
@@ -2849,14 +2849,13 @@ fe_attach ( struct isa_device * dev )
/* Attach and stop the interface. */
#if NCARD > 0
if (already_ifattach[dev->id_unit] != 1) {
- if_attach(&sc->sc_if);
+ ether_ifattach(&sc->sc_if, ETHER_BPF_SUPPORTED);
already_ifattach[dev->id_unit] = 1;
}
#else
- if_attach(&sc->sc_if);
+ ether_ifattach(&sc->sc_if, ETHER_BPF_SUPPORTED);
#endif
fe_stop(sc);
- ether_ifattach(&sc->sc_if);
/* Print additional info when attached. */
printf("fe%d: address %6D, type %s%s\n", sc->sc_unit,
@@ -2905,8 +2904,6 @@ fe_attach ( struct isa_device * dev )
sc->sc_unit);
}
- /* If BPF is in the kernel, call the attach for it. */
- bpfattach(&sc->sc_if, DLT_EN10MB, sizeof(struct ether_header));
return 1;
}
OpenPOWER on IntegriCloud