Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit fbf509da0e684432f50a80896e54a4d005b49f97 1 parent ce38cc1
François Tigeot authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 sys/dev/netif/ixgbe/ixgbe.c
View
4 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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.