| 6960 | } |
| 6961 | |
| 6962 | static int |
| 6963 | iflib_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 */ |
nothing calls this directly
no test coverage detected