diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-05-20 03:47:57 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-05-20 03:47:57 +0000 |
commit | 27a017d60e3229f6c92f41f481cf12a9a8946cd5 (patch) | |
tree | 343f0e3be1beabb33f55fda747fe9215417976f5 /sys/dev/pci/if_nfe.c | |
parent | 976ca9a4c08c9df27f252e281d1c258357232ede (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.c | 6 |
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; |