From bac84348ca81858f172e9d4c7d7b6bae60bd0ea1 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 11 Feb 2006 20:25:22 +0000 Subject: set IFCAP_VLAN_MTU in the capabilites field. ok damien@ --- sys/dev/pci/if_nfe.c | 6 ++++-- 1 file 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 @@ -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 -- cgit v1.2.3