Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl.h
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | |||||
#define CSUM_OFFLOAD_IPV4 (CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP) | #define CSUM_OFFLOAD_IPV4 (CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP) | ||||
#define CSUM_OFFLOAD_IPV6 (CSUM_TCP_IPV6|CSUM_UDP_IPV6|CSUM_SCTP_IPV6) | #define CSUM_OFFLOAD_IPV6 (CSUM_TCP_IPV6|CSUM_UDP_IPV6|CSUM_SCTP_IPV6) | ||||
#define CSUM_OFFLOAD (CSUM_OFFLOAD_IPV4|CSUM_OFFLOAD_IPV6|CSUM_TSO) | #define CSUM_OFFLOAD (CSUM_OFFLOAD_IPV4|CSUM_OFFLOAD_IPV6|CSUM_TSO) | ||||
/* Misc flags for ixl_vsi.flags */ | /* Misc flags for ixl_vsi.flags */ | ||||
#define IXL_FLAGS_KEEP_TSO4 (1 << 0) | #define IXL_FLAGS_KEEP_TSO4 (1 << 0) | ||||
#define IXL_FLAGS_KEEP_TSO6 (1 << 1) | #define IXL_FLAGS_KEEP_TSO6 (1 << 1) | ||||
#define IXL_VF_RESET_TIMEOUT 100 | |||||
#define IXL_VSI_DATA_PORT 0x01 | #define IXL_VSI_DATA_PORT 0x01 | ||||
#define IXLV_MAX_QUEUES 16 | #define IXLV_MAX_QUEUES 16 | ||||
#define IXL_MAX_VSI_QUEUES (2 * (I40E_VSILAN_QTABLE_MAX_INDEX + 1)) | |||||
#define IXL_VPINT_LNKLSTN_REG(hw, vector, vf_num) \ | |||||
I40E_VPINT_LNKLSTN(((vector) - 1) + \ | |||||
(((hw)->func_caps.num_msix_vectors_vf - 1) * (vf_num))) | |||||
#define IXL_VFINT_DYN_CTLN_REG(hw, vector, vf_num) \ | |||||
I40E_VFINT_DYN_CTLN(((vector) - 1) + \ | |||||
(((hw)->func_caps.num_msix_vectors_vf - 1) * (vf_num))) | |||||
#define IXL_PF_PCI_CIAA_VF_DEVICE_STATUS 0xAA | |||||
#define IXL_PF_PCI_CIAD_VF_TRANS_PENDING_MASK 0x20 | |||||
#define IXL_TX_LOCK(_sc) mtx_lock(&(_sc)->mtx) | #define IXL_TX_LOCK(_sc) mtx_lock(&(_sc)->mtx) | ||||
#define IXL_TX_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) | #define IXL_TX_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx) | ||||
#define IXL_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx) | #define IXL_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx) | ||||
#define IXL_TX_TRYLOCK(_sc) mtx_trylock(&(_sc)->mtx) | #define IXL_TX_TRYLOCK(_sc) mtx_trylock(&(_sc)->mtx) | ||||
#define IXL_TX_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED) | #define IXL_TX_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED) | ||||
#define IXL_RX_LOCK(_sc) mtx_lock(&(_sc)->mtx) | #define IXL_RX_LOCK(_sc) mtx_lock(&(_sc)->mtx) | ||||
▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines |