summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_et.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-02-03 21:51:28 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-02-03 21:51:28 +0000
commit3632b404f6998f60f7e3c9114c9cef64d325ddab (patch)
tree5e62e78fad7d56a4f261bfab47da6e5d768136d2 /sys/dev/pci/if_et.c
parent74a287607a068f6f94c5ff78e4008337e31ca9dc (diff)
- remove redundant setting of if_mtu as this is set by ether_ifattach().
- set the IFCAP_VLAN_MTU capabilities flag. ok dlg@
Diffstat (limited to 'sys/dev/pci/if_et.c')
-rw-r--r--sys/dev/pci/if_et.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_et.c b/sys/dev/pci/if_et.c
index e91b66521d6..39d790405b8 100644
--- a/sys/dev/pci/if_et.c
+++ b/sys/dev/pci/if_et.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_et.c,v 1.5 2007/11/26 10:39:55 claudio Exp $ */
+/* $OpenBSD: if_et.c,v 1.6 2008/02/03 21:51:27 brad Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
*
@@ -264,11 +264,12 @@ et_attach(struct device *parent, struct device *self, void *aux)
ifp->if_ioctl = et_ioctl;
ifp->if_start = et_start;
ifp->if_watchdog = et_watchdog;
- ifp->if_mtu = ETHERMTU;
IFQ_SET_MAXLEN(&ifp->if_snd, ET_TX_NDESC);
IFQ_SET_READY(&ifp->if_snd);
strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ);
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+
et_chip_attach(sc);
sc->sc_miibus.mii_ifp = ifp;