Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/dev/e1000/if_igb.c
Show First 20 Lines • Show All 1,318 Lines • ▼ Show 20 Lines | #endif | ||||
igb_set_multi(adapter); | igb_set_multi(adapter); | ||||
/* | /* | ||||
** Figure out the desired mbuf pool | ** Figure out the desired mbuf pool | ||||
** for doing jumbo/packetsplit | ** for doing jumbo/packetsplit | ||||
*/ | */ | ||||
if (adapter->max_frame_size <= 2048) | if (adapter->max_frame_size <= 2048) | ||||
adapter->rx_mbuf_sz = MCLBYTES; | adapter->rx_mbuf_sz = MCLBYTES; | ||||
#ifndef CONTIGMALLOC_WORKS | |||||
else | |||||
adapter->rx_mbuf_sz = MJUMPAGESIZE; | |||||
#else | |||||
else if (adapter->max_frame_size <= 4096) | else if (adapter->max_frame_size <= 4096) | ||||
adapter->rx_mbuf_sz = MJUMPAGESIZE; | adapter->rx_mbuf_sz = MJUMPAGESIZE; | ||||
else | else | ||||
adapter->rx_mbuf_sz = MJUM9BYTES; | adapter->rx_mbuf_sz = MJUM9BYTES; | ||||
#endif | |||||
/* Prepare receive descriptors and buffers */ | /* Prepare receive descriptors and buffers */ | ||||
if (igb_setup_receive_structures(adapter)) { | if (igb_setup_receive_structures(adapter)) { | ||||
device_printf(dev, "Could not setup receive structures\n"); | device_printf(dev, "Could not setup receive structures\n"); | ||||
return; | return; | ||||
} | } | ||||
igb_initialize_receive_units(adapter); | igb_initialize_receive_units(adapter); | ||||
▲ Show 20 Lines • Show All 5,147 Lines • Show Last 20 Lines |