summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2019-05-23 06:51:36 +0000
committerjmatthew <jmatthew@openbsd.org>2019-05-23 06:51:36 +0000
commitbbcba0e654c7899dc88056b8c3c10aa106c2764c (patch)
tree9a9c2a57725e61a68a54594cc0919e81d2957cdf
parentOnly override size of chunk if we're not given the actual length. (diff)
downloadwireguard-openbsd-bbcba0e654c7899dc88056b8c3c10aa106c2764c.tar.xz
wireguard-openbsd-bbcba0e654c7899dc88056b8c3c10aa106c2764c.zip
Inline 18 bytes of packet header so we can send vlan tagged packets.
-rw-r--r--sys/dev/pci/if_mcx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c
index d910638f312..6c4b9cba68e 100644
--- a/sys/dev/pci/if_mcx.c
+++ b/sys/dev/pci/if_mcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mcx.c,v 1.8 2019/05/17 07:12:32 jmatthew Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.9 2019/05/23 06:51:36 jmatthew Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -82,7 +82,7 @@
#define MCX_SQ_MAX_SEGMENTS \
1 + ((MCX_SQ_ENTRY_MAX_SLOTS-1) * MCX_SQ_SEGS_PER_SLOT)
-#define MCX_SQ_INLINE_SIZE 16
+#define MCX_SQ_INLINE_SIZE 18
/* doorbell offsets */
#define MCX_CQ_DOORBELL_OFFSET 0