diff options
author | 2006-02-16 21:02:34 +0000 | |
---|---|---|
committer | 2006-02-16 21:02:34 +0000 | |
commit | c8f36e927d42d8d4543ae604bd6930f4fe1f4bdc (patch) | |
tree | b00b1700eb5939323862f5f7a69f65a10118b648 /sys | |
parent | Do not bother enabling HW TX checksum offload since the code to (diff) | |
download | wireguard-openbsd-c8f36e927d42d8d4543ae604bd6930f4fe1f4bdc.tar.xz wireguard-openbsd-c8f36e927d42d8d4543ae604bd6930f4fe1f4bdc.zip |
set IFCAP_VLAN_MTU unconditionally.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_txp.c | 6 |
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; |