diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-02-11 20:25:22 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-02-11 20:25:22 +0000 |
commit | bac84348ca81858f172e9d4c7d7b6bae60bd0ea1 (patch) | |
tree | 951e01bcb7f2d5762f0da9587f76c1e91d3853ac /sys | |
parent | a62c6e739a0dfd04041deeac3d82c959606ac30b (diff) |
set IFCAP_VLAN_MTU in the capabilites field.
ok damien@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_nfe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index d3bcca02e13..03ffa220a5e 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.28 2006/02/11 11:51:30 damien Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.29 2006/02/11 20:25:21 brad Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -232,9 +232,11 @@ 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; + #ifdef NFE_CSUM if (sc->sc_flags & NFE_HW_CSUM) { - ifp->if_capabilities = IFCAP_CSUM_IPv4 | IFCAP_CSUM_TCPv4 | + ifp->if_capabilities |= IFCAP_CSUM_IPv4 | IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; } #endif |