iflib: fix compilation issue introduced in r362621
The ifp local variable is useful even without netmap and altq, as it is used to check for IFF_DRV_RUNNING. MFC after: 2 weeks
This commit is contained in:
parent
3dca204b24
commit
14201e963d
@ -3751,9 +3751,7 @@ _task_fn_tx(void *context)
|
|||||||
{
|
{
|
||||||
iflib_txq_t txq = context;
|
iflib_txq_t txq = context;
|
||||||
if_ctx_t ctx = txq->ift_ctx;
|
if_ctx_t ctx = txq->ift_ctx;
|
||||||
#if defined(ALTQ) || defined(DEV_NETMAP)
|
|
||||||
if_t ifp = ctx->ifc_ifp;
|
if_t ifp = ctx->ifc_ifp;
|
||||||
#endif
|
|
||||||
int abdicate = ctx->ifc_sysctl_tx_abdicate;
|
int abdicate = ctx->ifc_sysctl_tx_abdicate;
|
||||||
|
|
||||||
#ifdef IFLIB_DIAGNOSTICS
|
#ifdef IFLIB_DIAGNOSTICS
|
||||||
|
Loading…
Reference in New Issue
Block a user