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

Function iflib_num_rx_descs

freebsd/net/iflib.c:736–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734DEBUGNET_DEFINE(iflib);
735
736static int
737iflib_num_rx_descs(if_ctx_t ctx)
738{
739 if_softc_ctx_t scctx = &ctx->ifc_softc_ctx;
740 if_shared_ctx_t sctx = ctx->ifc_sctx;
741 uint16_t first_rxq = (sctx->isc_flags & IFLIB_HAS_RXCQ) ? 1 : 0;
742
743 return scctx->isc_nrxd[first_rxq];
744}
745
746static int
747iflib_num_tx_descs(if_ctx_t ctx)

Callers 3

iflib_netmap_attachFunction · 0.85
iflib_device_registerFunction · 0.85
iflib_pseudo_registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected