From fbf509da0e684432f50a80896e54a4d005b49f97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Wed, 3 Oct 2012 12:04:56 +0200 Subject: [PATCH] ixgbe: Do not use mbuf jumbo clusters * They caused crashes when using jumbo frames; the root of the issue should probably be investigated further but the driver works perfectly with this change. * Single-stream TCP performance has been measured up to 9.89 Gb/s with mtu=16114 --- sys/dev/netif/ixgbe/ixgbe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/netif/ixgbe/ixgbe.c b/sys/dev/netif/ixgbe/ixgbe.c index 805c9041fc..371f69b972 100644 --- a/sys/dev/netif/ixgbe/ixgbe.c +++ b/sys/dev/netif/ixgbe/ixgbe.c @@ -1056,6 +1056,7 @@ ixgbe_init_locked(struct adapter *adapter) ** Determine the correct mbuf pool ** for doing jumbo/headersplit */ +#if 0 /* XXX */ if (adapter->max_frame_size <= 2048) adapter->rx_mbuf_sz = MCLBYTES; else if (adapter->max_frame_size <= 4096) @@ -1064,6 +1065,9 @@ ixgbe_init_locked(struct adapter *adapter) adapter->rx_mbuf_sz = MJUM9BYTES; else adapter->rx_mbuf_sz = MJUM16BYTES; +#else + adapter->rx_mbuf_sz = MCLBYTES; +#endif /* Prepare receive descriptors and buffers */ if (ixgbe_setup_receive_structures(adapter)) { -- 2.41.0