Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/e1000/if_em.c
Show First 20 Lines • Show All 1,270 Lines • ▼ Show 20 Lines | em_if_init(if_ctx_t ctx) | ||||
em_if_multi_set(ctx); | em_if_multi_set(ctx); | ||||
/* | /* | ||||
* Figure out the desired mbuf | * Figure out the desired mbuf | ||||
* pool for doing jumbos | * pool for doing jumbos | ||||
*/ | */ | ||||
if (adapter->hw.mac.max_frame_size <= 2048) | if (adapter->hw.mac.max_frame_size <= 2048) | ||||
adapter->rx_mbuf_sz = MCLBYTES; | adapter->rx_mbuf_sz = MCLBYTES; | ||||
#ifndef CONTIGMALLOC_WORKS | |||||
else | else | ||||
adapter->rx_mbuf_sz = MJUMPAGESIZE; | adapter->rx_mbuf_sz = MJUMPAGESIZE; | ||||
#else | |||||
else if (adapter->hw.mac.max_frame_size <= 4096) | |||||
adapter->rx_mbuf_sz = MJUMPAGESIZE; | |||||
else | |||||
adapter->rx_mbuf_sz = MJUM9BYTES; | |||||
#endif | |||||
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 |