Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ixl/if_ixl.c
Show First 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
extern struct if_txrx ixl_txrx_hwb; | extern struct if_txrx ixl_txrx_hwb; | ||||
extern struct if_txrx ixl_txrx_dwb; | extern struct if_txrx ixl_txrx_dwb; | ||||
static struct if_shared_ctx ixl_sctx_init = { | static struct if_shared_ctx ixl_sctx_init = { | ||||
.isc_magic = IFLIB_MAGIC, | .isc_magic = IFLIB_MAGIC, | ||||
.isc_q_align = PAGE_SIZE, | .isc_q_align = PAGE_SIZE, | ||||
.isc_tx_maxsize = IXL_TSO_SIZE, | .isc_tx_maxsize = IXL_TSO_SIZE + sizeof(struct ether_vlan_header), | ||||
.isc_tx_maxsegsize = IXL_MAX_DMA_SEG_SIZE, | .isc_tx_maxsegsize = IXL_MAX_DMA_SEG_SIZE, | ||||
.isc_tso_maxsize = IXL_TSO_SIZE + sizeof(struct ether_vlan_header), | |||||
.isc_tso_maxsegsize = IXL_MAX_DMA_SEG_SIZE, | |||||
.isc_rx_maxsize = 16384, | .isc_rx_maxsize = 16384, | ||||
.isc_rx_nsegments = IXL_MAX_RX_SEGS, | .isc_rx_nsegments = IXL_MAX_RX_SEGS, | ||||
.isc_rx_maxsegsize = IXL_MAX_DMA_SEG_SIZE, | .isc_rx_maxsegsize = IXL_MAX_DMA_SEG_SIZE, | ||||
.isc_nfl = 1, | .isc_nfl = 1, | ||||
.isc_ntxqs = 1, | .isc_ntxqs = 1, | ||||
.isc_nrxqs = 1, | .isc_nrxqs = 1, | ||||
.isc_admin_intrcnt = 1, | .isc_admin_intrcnt = 1, | ||||
▲ Show 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] | ||||
* sizeof(union i40e_32byte_rx_desc), DBA_ALIGN); | * sizeof(union i40e_32byte_rx_desc), DBA_ALIGN); | ||||
scctx->isc_msix_bar = PCIR_BAR(IXL_MSIX_BAR); | scctx->isc_msix_bar = PCIR_BAR(IXL_MSIX_BAR); | ||||
scctx->isc_tx_nsegments = IXL_MAX_TX_SEGS; | scctx->isc_tx_nsegments = IXL_MAX_TX_SEGS; | ||||
scctx->isc_tx_tso_segments_max = IXL_MAX_TSO_SEGS; | scctx->isc_tx_tso_segments_max = IXL_MAX_TSO_SEGS; | ||||
scctx->isc_tx_tso_size_max = IXL_TSO_SIZE; | scctx->isc_tx_tso_size_max = IXL_TSO_SIZE; | ||||
scctx->isc_tx_tso_segsize_max = IXL_MAX_DMA_SEG_SIZE; | scctx->isc_tx_tso_segsize_max = IXL_MAX_DMA_SEG_SIZE; | ||||
scctx->isc_rss_table_size = pf->hw.func_caps.rss_table_size; | scctx->isc_rss_table_size = pf->hw.func_caps.rss_table_size; | ||||
scctx->isc_tx_csum_flags = CSUM_OFFLOAD; | scctx->isc_tx_csum_flags = CSUM_OFFLOAD; | ||||
scctx->isc_capenable = IXL_CAPS; | scctx->isc_capabilities = scctx->isc_capenable = IXL_CAPS; | ||||
INIT_DEBUGOUT("ixl_if_attach_pre: end"); | INIT_DEBUGOUT("ixl_if_attach_pre: end"); | ||||
return (0); | return (0); | ||||
err_mac_hmc: | err_mac_hmc: | ||||
i40e_shutdown_lan_hmc(hw); | i40e_shutdown_lan_hmc(hw); | ||||
err_get_cap: | err_get_cap: | ||||
i40e_shutdown_adminq(hw); | i40e_shutdown_adminq(hw); | ||||
▲ Show 20 Lines • Show All 1,148 Lines • Show Last 20 Lines |