summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-02-15 20:21:27 +0000
committerbrad <brad@openbsd.org>2006-02-15 20:21:27 +0000
commit43936294965bdadfafda02014cd080a34cc09f5e (patch)
tree4d03bdf5080b68d5b9ae5dc9b7bb33ab3ed512c3
parentadd support for 64bit rings base addresses. (diff)
downloadwireguard-openbsd-43936294965bdadfafda02014cd080a34cc09f5e.tar.xz
wireguard-openbsd-43936294965bdadfafda02014cd080a34cc09f5e.zip
move setting IFCAP_VLAN_MTU back to where it is supposed to be.
-rw-r--r--sys/dev/pci/if_nfe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index 748db93f342..55abd4c0b8d 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.39 2006/02/15 20:08:59 damien Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.40 2006/02/15 20:21:27 brad Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -257,8 +257,9 @@ nfe_attach(struct device *parent, struct device *self, void *aux)
IFQ_SET_READY(&ifp->if_snd);
strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ);
+ ifp->if_capabilities = IFCAP_VLAN_MTU;
+
#if NVLAN > 0
- ifp->if_capabilities |= IFCAP_VLAN_MTU;
if (sc->sc_flags & NFE_HW_VLAN)
ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;
#endif