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

Function iflib_debugnet_transmit

freebsd/net/iflib.c:6943–6960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6941}
6942
6943static int
6944iflib_debugnet_transmit(if_t ifp, struct mbuf *m)
6945{
6946 if_ctx_t ctx;
6947 iflib_txq_t txq;
6948 int error;
6949
6950 ctx = if_getsoftc(ifp);
6951 if ((if_getdrvflags(ifp) & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) !=
6952 IFF_DRV_RUNNING)
6953 return (EBUSY);
6954
6955 txq = &ctx->ifc_txqs[0];
6956 error = iflib_encap(txq, &m);
6957 if (error == 0)
6958 (void)iflib_txd_db_check(txq, true);
6959 return (error);
6960}
6961
6962static int
6963iflib_debugnet_poll(if_t ifp, int count)

Callers

nothing calls this directly

Calls 4

if_getsoftcFunction · 0.85
if_getdrvflagsFunction · 0.85
iflib_encapFunction · 0.85
iflib_txd_db_checkFunction · 0.85

Tested by

no test coverage detected