|
#define | DRV_VER "4.4.31.0u" |
|
#define | DRV_NAME "be2net" |
|
#define | BE_NAME "ServerEngines BladeEngine2 10Gbps NIC" |
|
#define | BE3_NAME "ServerEngines BladeEngine3 10Gbps NIC" |
|
#define | OC_NAME "Emulex OneConnect 10Gbps NIC" |
|
#define | OC_NAME_BE OC_NAME "(be3)" |
|
#define | OC_NAME_LANCER OC_NAME "(Lancer)" |
|
#define | OC_NAME_SH OC_NAME "(Skyhawk)" |
|
#define | DRV_DESC "ServerEngines BladeEngine 10Gbps NIC Driver" |
|
#define | BE_VENDOR_ID 0x19a2 |
|
#define | EMULEX_VENDOR_ID 0x10df |
|
#define | BE_DEVICE_ID1 0x211 |
|
#define | BE_DEVICE_ID2 0x221 |
|
#define | OC_DEVICE_ID1 0x700 /* Device Id for BE2 cards */ |
|
#define | OC_DEVICE_ID2 0x710 /* Device Id for BE3 cards */ |
|
#define | OC_DEVICE_ID3 0xe220 /* Device id for Lancer cards */ |
|
#define | OC_DEVICE_ID4 0xe228 /* Device id for VF in Lancer */ |
|
#define | OC_DEVICE_ID5 0x720 /* Device Id for Skyhawk cards */ |
|
#define | OC_SUBSYS_DEVICE_ID1 0xE602 |
|
#define | OC_SUBSYS_DEVICE_ID2 0xE642 |
|
#define | OC_SUBSYS_DEVICE_ID3 0xE612 |
|
#define | OC_SUBSYS_DEVICE_ID4 0xE652 |
|
#define | BE_HDR_LEN ((u16) 64) |
|
#define | BE_RX_SKB_ALLOC_SIZE (BE_HDR_LEN + 64) |
|
#define | BE_MAX_JUMBO_FRAME_SIZE 9018 |
|
#define | BE_MIN_MTU 256 |
|
#define | BE_NUM_VLANS_SUPPORTED 64 |
|
#define | BE_MAX_EQD 96u |
|
#define | BE_MAX_TX_FRAG_COUNT 30 |
|
#define | EVNT_Q_LEN 1024 |
|
#define | TX_Q_LEN 2048 |
|
#define | TX_CQ_LEN 1024 |
|
#define | RX_Q_LEN 1024 /* Does not support any other value */ |
|
#define | RX_CQ_LEN 1024 |
|
#define | MCC_Q_LEN 128 /* total size not to exceed 8 pages */ |
|
#define | MCC_CQ_LEN 256 |
|
#define | BE3_MAX_RSS_QS 8 |
|
#define | BE2_MAX_RSS_QS 4 |
|
#define | MAX_RSS_QS BE3_MAX_RSS_QS |
|
#define | MAX_RX_QS (MAX_RSS_QS + 1) /* RSS qs + 1 def Rx */ |
|
#define | MAX_TX_QS 8 |
|
#define | MAX_ROCE_EQS 5 |
|
#define | MAX_MSIX_VECTORS (MAX_RSS_QS + MAX_ROCE_EQS) /* RSS qs + RoCE */ |
|
#define | BE_TX_BUDGET 256 |
|
#define | BE_NAPI_WEIGHT 64 |
|
#define | MAX_RX_POST BE_NAPI_WEIGHT /* Frags posted at a time */ |
|
#define | RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST) |
|
#define | MAX_VFS 30 /* Max VFs supported by BE3 FW */ |
|
#define | FW_VER_LEN 32 |
|
#define | BE_FLAGS_LINK_STATUS_INIT 1 |
|
#define | BE_FLAGS_WORKER_SCHEDULED (1 << 3) |
|
#define | BE_UC_PMAC_COUNT 30 |
|
#define | BE_VF_UC_PMAC_COUNT 2 |
|
#define | be_physfn(adapter) (!adapter->virtfn) |
|
#define | sriov_enabled(adapter) (adapter->num_vfs > 0) |
|
#define | sriov_want(adapter) |
|
#define | for_all_vfs(adapter, vf_cfg, i) |
|
#define | BE_GEN2 2 |
|
#define | BE_GEN3 3 |
|
#define | ON 1 |
|
#define | OFF 0 |
|
#define | lancer_chip(adapter) |
|
#define | skyhawk_chip(adapter) (adapter->pdev->device == OC_DEVICE_ID5) |
|
#define | be_roce_supported(adapter) |
|
#define | msix_enabled(adapter) (adapter->num_msix_vec > 0) |
|
#define | num_irqs(adapter) |
|
#define | tx_stats(txo) (&(txo)->stats) |
|
#define | rx_stats(rxo) (&(rxo)->stats) |
|
#define | default_rxo(adpt) (&adpt->rx_obj[adpt->num_rx_qs - 1]) |
|
#define | for_all_rx_queues(adapter, rxo, i) |
|
#define | for_all_rss_queues(adapter, rxo, i) |
|
#define | for_all_tx_queues(adapter, txo, i) |
|
#define | for_all_evt_queues(adapter, eqo, i) |
|
#define | is_mcc_eqo(eqo) (eqo->idx == 0) |
|
#define | mcc_eqo(adapter) (&adapter->eq_obj[0]) |
|
#define | PAGE_SHIFT_4K 12 |
|
#define | PAGE_SIZE_4K (1 << PAGE_SHIFT_4K) |
|
#define | PAGES_4K_SPANNED(_address, size) |
|
#define | AMAP_BIT_OFFSET(_struct, field) (((size_t)&(((_struct *)0)->field))%32) |
|
#define | AMAP_SET_BITS(_struct, field, ptr, val) |
|
#define | AMAP_GET_BITS(_struct, field, ptr) |
|
#define | be_dws_cpu_to_le(wrb, len) swap_dws(wrb, len) |
|
#define | be_dws_le_to_cpu(wrb, len) swap_dws(wrb, len) |
|