Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/if_em.c
Show First 20 Lines • Show All 885 Lines • ▼ Show 20 Lines | if (hw->mac.type >= igb_mac_min) { | ||||
*/ | */ | ||||
scctx->isc_capenable &= ~(IFCAP_TSO4 | IFCAP_VLAN_HWTSO); | scctx->isc_capenable &= ~(IFCAP_TSO4 | IFCAP_VLAN_HWTSO); | ||||
scctx->isc_tx_csum_flags = CSUM_TCP | CSUM_UDP | CSUM_IP_TSO; | scctx->isc_tx_csum_flags = CSUM_TCP | CSUM_UDP | CSUM_IP_TSO; | ||||
/* | /* | ||||
* We support MSI-X with 82574 only, but indicate to iflib(4) | * We support MSI-X with 82574 only, but indicate to iflib(4) | ||||
* that it shall give MSI at least a try with other devices. | * that it shall give MSI at least a try with other devices. | ||||
*/ | */ | ||||
if (hw->mac.type == e1000_82574) { | if (hw->mac.type == e1000_82574) { | ||||
scctx->isc_msix_bar = pci_msix_table_bar(dev);; | scctx->isc_msix_bar = pci_msix_table_bar(dev); | ||||
} else { | } else { | ||||
scctx->isc_msix_bar = -1; | scctx->isc_msix_bar = -1; | ||||
scctx->isc_disable_msix = 1; | scctx->isc_disable_msix = 1; | ||||
} | } | ||||
} else { | } else { | ||||
scctx->isc_txqsizes[0] = roundup2((scctx->isc_ntxd[0] + 1) * sizeof(struct e1000_tx_desc), EM_DBA_ALIGN); | scctx->isc_txqsizes[0] = roundup2((scctx->isc_ntxd[0] + 1) * sizeof(struct e1000_tx_desc), EM_DBA_ALIGN); | ||||
scctx->isc_rxqsizes[0] = roundup2((scctx->isc_nrxd[0] + 1) * sizeof(struct e1000_rx_desc), EM_DBA_ALIGN); | scctx->isc_rxqsizes[0] = roundup2((scctx->isc_nrxd[0] + 1) * sizeof(struct e1000_rx_desc), EM_DBA_ALIGN); | ||||
scctx->isc_txd_size[0] = sizeof(struct e1000_tx_desc); | scctx->isc_txd_size[0] = sizeof(struct e1000_tx_desc); | ||||
▲ Show 20 Lines • Show All 3,776 Lines • Show Last 20 Lines |