Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/if_fdir.c
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if (!(adapter->feat_en & IXGBE_FEATURE_FDIR)) | ||||
return; | return; | ||||
adapter->hw.mac.ops.setup_rxpba(&adapter->hw, 0, hdrm, | adapter->hw.mac.ops.setup_rxpba(&adapter->hw, 0, hdrm, | ||||
PBA_STRATEGY_EQUAL); | PBA_STRATEGY_EQUAL); | ||||
ixgbe_init_fdir_signature_82599(&adapter->hw, fdir_pballoc); | ixgbe_init_fdir_signature_82599(&adapter->hw, fdir_pballoc); | ||||
} /* ixgbe_init_fdir */ | } /* ixgbe_init_fdir */ | ||||
void | void | ||||
ixgbe_reinit_fdir(void *context, int pending) | ixgbe_reinit_fdir(void *context) | ||||
{ | { | ||||
struct adapter *adapter = context; | if_ctx_t ctx = context; | ||||
struct ifnet *ifp = adapter->ifp; | struct adapter *adapter = iflib_get_softc(ctx); | ||||
struct ifnet *ifp = iflib_get_ifp(ctx); | |||||
if (!(adapter->feat_en & IXGBE_FEATURE_FDIR)) | if (!(adapter->feat_en & IXGBE_FEATURE_FDIR)) | ||||
return; | return; | ||||
if (adapter->fdir_reinit != 1) /* Shouldn't happen */ | if (adapter->fdir_reinit != 1) /* Shouldn't happen */ | ||||
return; | return; | ||||
ixgbe_reinit_fdir_tables_82599(&adapter->hw); | ixgbe_reinit_fdir_tables_82599(&adapter->hw); | ||||
adapter->fdir_reinit = 0; | adapter->fdir_reinit = 0; | ||||
/* re-enable flow director interrupts */ | /* re-enable flow director interrupts */ | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) | ||||
ixgbe_fdir_add_signature_filter_82599(&adapter->hw, | ixgbe_fdir_add_signature_filter_82599(&adapter->hw, | ||||
input, common, que->msix); | input, common, que->msix); | ||||
} /* ixgbe_atr */ | } /* ixgbe_atr */ | ||||
#else | #else | ||||
/* TASK_INIT needs this function defined regardless if it's enabled */ | /* TASK_INIT needs this function defined regardless if it's enabled */ | ||||
void | void | ||||
ixgbe_reinit_fdir(void *context, int pending) | ixgbe_reinit_fdir(void *context) | ||||
{ | { | ||||
UNREFERENCED_2PARAMETER(context, pending); | UNREFERENCED_PARAMETER(context); | ||||
} /* ixgbe_reinit_fdir */ | } /* ixgbe_reinit_fdir */ | ||||
void | void | ||||
ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) | ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) | ||||
{ | { | ||||
UNREFERENCED_2PARAMETER(txr, mp); | UNREFERENCED_2PARAMETER(txr, mp); | ||||
} /* ixgbe_atr */ | } /* ixgbe_atr */ | ||||
#endif | #endif |