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

Function iflib_debugnet_event

freebsd/net/iflib.c:6915–6941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6913}
6914
6915static void
6916iflib_debugnet_event(if_t ifp, enum debugnet_ev event)
6917{
6918 if_ctx_t ctx;
6919 if_softc_ctx_t scctx;
6920 iflib_fl_t fl;
6921 iflib_rxq_t rxq;
6922 int i, j;
6923
6924 ctx = if_getsoftc(ifp);
6925 scctx = &ctx->ifc_softc_ctx;
6926
6927 switch (event) {
6928 case DEBUGNET_START:
6929 for (i = 0; i < scctx->isc_nrxqsets; i++) {
6930 rxq = &ctx->ifc_rxqs[i];
6931 for (j = 0; j < rxq->ifr_nfl; j++) {
6932 fl = rxq->ifr_fl;
6933 fl->ifl_zone = m_getzone(fl->ifl_buf_size);
6934 }
6935 }
6936 iflib_no_tx_batch = 1;
6937 break;
6938 default:
6939 break;
6940 }
6941}
6942
6943static int
6944iflib_debugnet_transmit(if_t ifp, struct mbuf *m)

Callers

nothing calls this directly

Calls 2

if_getsoftcFunction · 0.85
m_getzoneFunction · 0.50

Tested by

no test coverage detected