summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.h
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2014-11-12 16:06:48 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2014-11-12 16:06:48 +0000
commitb8f0df3ea55d2e2e3ed8d1bd786435f86fb8bc3f (patch)
treef162b74babdfbce33af897c3a6c18a125ab9565e /sys/dev/pci/if_ix.h
parentb12b0bf35f6584b3c51e8a0b3fd37ea8dae0787f (diff)
Remove SIOCSIFMTU handling and misuse of if_mtu values for MRU
Since there's now no way to select maximum receive unit size the hardware is programmed to accept frame sizes up to 9216 which is now the maximum (down from 15.5K since this is supposed to work in all advanced configurations and gives slightly better flow control watermark ranges) and split all frames larger 2K into multiple fragments (code was already there but wasn't enabled). Tested on 82599 (SFP+) and X540 (10GBaseT). With input from dlg@.
Diffstat (limited to 'sys/dev/pci/if_ix.h')
-rw-r--r--sys/dev/pci/if_ix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ix.h b/sys/dev/pci/if_ix.h
index 04eefac33bc..de7abb4cbb6 100644
--- a/sys/dev/pci/if_ix.h
+++ b/sys/dev/pci/if_ix.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.h,v 1.26 2014/11/10 15:58:32 mikeb Exp $ */
+/* $OpenBSD: if_ix.h,v 1.27 2014/11/12 16:06:47 mikeb Exp $ */
/******************************************************************************
@@ -83,7 +83,7 @@
#define IXGBE_TX_CLEANUP_THRESHOLD (sc->num_tx_desc / 16)
#define IXGBE_TX_OP_THRESHOLD (sc->num_tx_desc / 32)
-#define IXGBE_MAX_FRAME_SIZE 0x3F00
+#define IXGBE_MAX_FRAME_SIZE 9216
/* Flow control constants */
#define IXGBE_FC_PAUSE 0xFFFF