MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iflib_debugnet_poll

Function iflib_debugnet_poll

freebsd/net/iflib.c:6962–6986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6960}
6961
6962static int
6963iflib_debugnet_poll(if_t ifp, int count)
6964{
6965 struct epoch_tracker et;
6966 if_ctx_t ctx;
6967 if_softc_ctx_t scctx;
6968 iflib_txq_t txq;
6969 int i;
6970
6971 ctx = if_getsoftc(ifp);
6972 scctx = &ctx->ifc_softc_ctx;
6973
6974 if ((if_getdrvflags(ifp) & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) !=
6975 IFF_DRV_RUNNING)
6976 return (EBUSY);
6977
6978 txq = &ctx->ifc_txqs[0];
6979 (void)iflib_completed_tx_reclaim(txq, RECLAIM_THRESH(ctx));
6980
6981 NET_EPOCH_ENTER(et);
6982 for (i = 0; i < scctx->isc_nrxqsets; i++)
6983 (void)iflib_rxeof(&ctx->ifc_rxqs[i], 16 /* XXX */);
6984 NET_EPOCH_EXIT(et);
6985 return (0);
6986}
6987#endif /* DEBUGNET */

Callers

nothing calls this directly

Calls 4

if_getsoftcFunction · 0.85
if_getdrvflagsFunction · 0.85
iflib_rxeofFunction · 0.85

Tested by

no test coverage detected