diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2022-08-20 02:02:03 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2023-01-24 20:05:28 +0000 |
| commit | ff06a8dbb6777a0475ae961faacd776225cb8791 (patch) | |
| tree | 2606a61904b3bceb4cfc8bc46388ecac83622da2 /sys/dev/ixgbe/if_fdir.c | |
| parent | 0083fc5c76939efc6ded5415d781105aef8ed55f (diff) | |
Mechanically convert ixgbe(4) to IfAPI
Reviewed by: erj
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37845
Diffstat (limited to 'sys/dev/ixgbe/if_fdir.c')
| -rw-r--r-- | sys/dev/ixgbe/if_fdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ixgbe/if_fdir.c b/sys/dev/ixgbe/if_fdir.c index 22b71f2bdf09..dd84cfe0a447 100644 --- a/sys/dev/ixgbe/if_fdir.c +++ b/sys/dev/ixgbe/if_fdir.c @@ -54,7 +54,7 @@ ixgbe_reinit_fdir(void *context) { if_ctx_t ctx = context; struct ixgbe_softc *sc = iflib_get_softc(ctx); - struct ifnet *ifp = iflib_get_ifp(ctx); + if_t ifp = iflib_get_ifp(ctx); if (!(sc->feat_en & IXGBE_FEATURE_FDIR)) return; @@ -65,7 +65,7 @@ ixgbe_reinit_fdir(void *context) /* re-enable flow director interrupts */ IXGBE_WRITE_REG(&sc->hw, IXGBE_EIMS, IXGBE_EIMS_FLOW_DIR); /* Restart the interface */ - ifp->if_drv_flags |= IFF_DRV_RUNNING; + if_setdrvflagbits(ifp, IFF_DRV_RUNNING, 0); } /* ixgbe_reinit_fdir */ /************************************************************************ |
