summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_myxreg.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-10-31 01:38:58 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-10-31 01:38:58 +0000
commitd49273513f5f8e38eb9d6fe174a160585ccaace8 (patch)
tree30516d1aee07ea0dd3e11e8eec42f84e708667aa /sys/dev/pci/if_myxreg.h
parent344d5abd886a25f7f20839734f9813a67d673550 (diff)
turns out these chips can handle buffers up to 9400 bytes in length.
raise the mtu to 9380 bytes so we can take advantage of the extra space. i need to revisit the macro names at some point.
Diffstat (limited to 'sys/dev/pci/if_myxreg.h')
-rw-r--r--sys/dev/pci/if_myxreg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_myxreg.h b/sys/dev/pci/if_myxreg.h
index 756cf25dbcc..89f3efee8ab 100644
--- a/sys/dev/pci/if_myxreg.h
+++ b/sys/dev/pci/if_myxreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myxreg.h,v 1.8 2015/02/18 23:58:34 dlg Exp $ */
+/* $OpenBSD: if_myxreg.h,v 1.9 2016/10/31 01:38:57 dlg Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -37,6 +37,7 @@
#define MYXALIGN_CMD 64
#define MYXALIGN_DATA PAGE_SIZE
#define MYX_BOUNDARY 4096
+#define MYX_MTU 9400
#define MYX_ADDRHIGH(_v) (((u_int64_t)_v >> 32) & 0xffffffff)
#define MYX_ADDRLOW(_v) ((u_int64_t)_v & 0xffffffff)