Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/if_em.c
Show First 20 Lines • Show All 1,264 Lines • ▼ Show 20 Lines | em_if_init(if_ctx_t ctx) | ||||
em_init_manageability(adapter); | em_init_manageability(adapter); | ||||
/* Prepare transmit descriptors and buffers */ | /* Prepare transmit descriptors and buffers */ | ||||
em_initialize_transmit_unit(ctx); | em_initialize_transmit_unit(ctx); | ||||
/* Setup Multicast table */ | /* Setup Multicast table */ | ||||
em_if_multi_set(ctx); | em_if_multi_set(ctx); | ||||
/* | adapter->rx_mbuf_sz = iflib_get_rx_mbuf_sz(ctx); | ||||
* Figure out the desired mbuf | |||||
* pool for doing jumbos | |||||
*/ | |||||
if (adapter->hw.mac.max_frame_size <= 2048) | |||||
adapter->rx_mbuf_sz = MCLBYTES; | |||||
else | |||||
adapter->rx_mbuf_sz = MJUMPAGESIZE; | |||||
em_initialize_receive_unit(ctx); | em_initialize_receive_unit(ctx); | ||||
/* Use real VLAN Filter support? */ | /* Use real VLAN Filter support? */ | ||||
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) { | if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) { | ||||
if (if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER) | if (if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER) | ||||
/* Use real VLAN Filter support */ | /* Use real VLAN Filter support */ | ||||
em_setup_vlan_hw_support(adapter); | em_setup_vlan_hw_support(adapter); | ||||
else { | else { | ||||
▲ Show 20 Lines • Show All 3,260 Lines • Show Last 20 Lines |