summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-08-21 13:52:57 +0000
committermpi <mpi@openbsd.org>2013-08-21 13:52:57 +0000
commit1af651221c7ce5b93daf4c3d0d2fda4d06f402ed (patch)
tree68a9e6f3b4b077a7244ff0c2f17aa850262ec525
parentUnswap address and configuration value arguments in a debug printf. (diff)
downloadwireguard-openbsd-1af651221c7ce5b93daf4c3d0d2fda4d06f402ed.tar.xz
wireguard-openbsd-1af651221c7ce5b93daf4c3d0d2fda4d06f402ed.zip
Fix build without vlan.
ok mikeb@
-rw-r--r--sys/dev/pci/if_ix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index ef88367449e..d62f3594207 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.90 2013/08/05 19:58:05 mikeb Exp $ */
+/* $OpenBSD: if_ix.c,v 1.91 2013/08/21 13:52:57 mpi Exp $ */
/******************************************************************************
@@ -2064,7 +2064,9 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp,
uint8_t ipproto = 0;
int offload = TRUE;
int ctxd = txr->next_avail_desc;
+#if NVLAN > 0
uint16_t vtag = 0;
+#endif
#if notyet
/* First check if TSO is to be used */