summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-12-31 19:07:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-12-31 19:07:38 +0000
commit2db0d9de87ba3e0fc682a1ef5a41d2014cbdbde6 (patch)
treee9cfce910cfb149ca0b8a2225a3bd0c5257df9d7 /sys/dev/pci/if_ix.h
parentc6cc41ea7b598b1ca253c1b915d06494bd321306 (diff)
Make ixgbe_start() mpsafe. This means the driver will no longer grab the
kernel lock in the rx and tx path anymore. While there seems to be a small decrease in forwarding performance with our default network stack settings, Performance whiel receiving manymore packets than we can handle is better. And this change opens the road for future improvements in the network stack. ok dlg@, mpi@
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 0c11746a80c..28c044c33db 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.30 2015/12/18 19:08:36 kettenis Exp $ */
+/* $OpenBSD: if_ix.h,v 1.31 2015/12/31 19:07:37 kettenis Exp $ */
/******************************************************************************
@@ -80,7 +80,7 @@
* Thise parameter controls the minimum number of available transmit
* descriptors needed before we attempt transmission of a packet.
*/
-#define IXGBE_TX_OP_THRESHOLD (sc->num_tx_desc / 32)
+#define IXGBE_TX_OP_THRESHOLD (sc->num_segs + 2)
#define IXGBE_MAX_FRAME_SIZE 9216