Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/efx_filter.c
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | efx_filter_spec_init_rx( | ||||
EFSYS_ASSERT3P(spec, !=, NULL); | EFSYS_ASSERT3P(spec, !=, NULL); | ||||
EFSYS_ASSERT3P(erp, !=, NULL); | EFSYS_ASSERT3P(erp, !=, NULL); | ||||
EFSYS_ASSERT((flags & ~(EFX_FILTER_FLAG_RX_RSS | | EFSYS_ASSERT((flags & ~(EFX_FILTER_FLAG_RX_RSS | | ||||
EFX_FILTER_FLAG_RX_SCATTER)) == 0); | EFX_FILTER_FLAG_RX_SCATTER)) == 0); | ||||
memset(spec, 0, sizeof (*spec)); | memset(spec, 0, sizeof (*spec)); | ||||
spec->efs_priority = priority; | spec->efs_priority = priority; | ||||
spec->efs_flags = EFX_FILTER_FLAG_RX | flags; | spec->efs_flags = EFX_FILTER_FLAG_RX | flags; | ||||
spec->efs_rss_context = EFX_FILTER_SPEC_RSS_CONTEXT_DEFAULT; | spec->efs_rss_context = EFX_RSS_CONTEXT_DEFAULT; | ||||
spec->efs_dmaq_id = (uint16_t)erp->er_index; | spec->efs_dmaq_id = (uint16_t)erp->er_index; | ||||
} | } | ||||
void | void | ||||
efx_filter_spec_init_tx( | efx_filter_spec_init_tx( | ||||
__out efx_filter_spec_t *spec, | __out efx_filter_spec_t *spec, | ||||
__in efx_txq_t *etp) | __in efx_txq_t *etp) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,179 Lines • Show Last 20 Lines |