summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfe.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-05-20 03:47:57 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-05-20 03:47:57 +0000
commit27a017d60e3229f6c92f41f481cf12a9a8946cd5 (patch)
tree343f0e3be1beabb33f55fda747fe9215417976f5 /sys/dev/pci/if_nfe.c
parent976ca9a4c08c9df27f252e281d1c258357232ede (diff)
set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag where
appropriate. ok reyk@
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r--sys/dev/pci/if_nfe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index 1e5ed34056d..e403caa68a6 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.57 2006/04/26 02:07:29 jsg Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.58 2006/05/20 03:47:56 brad Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -257,6 +257,10 @@ nfe_attach(struct device *parent, struct device *self, void *aux)
strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ);
ifp->if_capabilities = IFCAP_VLAN_MTU;
+
+ if (sc->sc_flags & NFE_USE_JUMBO)
+ ifp->if_capabilities |= IFCAP_JUMBO_MTU;
+
#if NVLAN > 0
if (sc->sc_flags & NFE_HW_VLAN)
ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;