Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/if_ix.c
Show First 20 Lines • Show All 2,874 Lines • ▼ Show 20 Lines | ixgbe_if_init(if_ctx_t ctx) | ||||
ixgbe_initialize_iov(adapter); | ixgbe_initialize_iov(adapter); | ||||
ixgbe_initialize_transmit_units(ctx); | ixgbe_initialize_transmit_units(ctx); | ||||
/* Setup Multicast table */ | /* Setup Multicast table */ | ||||
ixgbe_if_multi_set(ctx); | ixgbe_if_multi_set(ctx); | ||||
/* Determine the correct mbuf pool, based on frame size */ | /* Determine the correct mbuf pool, based on frame size */ | ||||
if (adapter->max_frame_size <= MCLBYTES) | adapter->rx_mbuf_sz = iflib_get_rx_mbuf_sz(ctx); | ||||
adapter->rx_mbuf_sz = MCLBYTES; | |||||
else | |||||
adapter->rx_mbuf_sz = MJUMPAGESIZE; | |||||
/* Configure RX settings */ | /* Configure RX settings */ | ||||
ixgbe_initialize_receive_units(ctx); | ixgbe_initialize_receive_units(ctx); | ||||
/* | /* | ||||
* Initialize variable holding task enqueue requests | * Initialize variable holding task enqueue requests | ||||
* from MSI-X interrupts | * from MSI-X interrupts | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,661 Lines • Show Last 20 Lines |