summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-02-16 21:02:35 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-02-16 21:02:35 +0000
commit7c9ba68deb9669e37d7b4a31c53474a9cfc515d8 (patch)
treee9c4d8b0292456239ddd0183b2acf5bf297a7a24
parentba1e69b42df4fac5180fbdcd0306b92f28a1cc36 (diff)
set IFCAP_VLAN_MTU unconditionally.
-rw-r--r--sys/dev/pci/if_txp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c
index 016cb4e1dd1..faa336966e8 100644
--- a/sys/dev/pci/if_txp.c
+++ b/sys/dev/pci/if_txp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txp.c,v 1.78 2005/06/15 16:28:09 camield Exp $ */
+/* $OpenBSD: if_txp.c,v 1.79 2006/02/16 21:02:34 brad Exp $ */
/*
* Copyright (c) 2001
@@ -63,6 +63,7 @@
#endif
#if NVLAN > 0
+#include <net/if_types.h>
#include <net/if_vlan_var.h>
#endif
@@ -2021,8 +2022,9 @@ txp_capabilities(sc)
sc->sc_tx_capability = ext->ext_1 & OFFLOAD_MASK;
sc->sc_rx_capability = ext->ext_2 & OFFLOAD_MASK;
-#if NVLAN > 0
ifp->if_capabilities |= IFCAP_VLAN_MTU;
+
+#if NVLAN > 0
if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_VLAN) {
sc->sc_tx_capability |= OFFLOAD_VLAN;
ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING;