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

Function iflib_num_tx_descs

freebsd/net/iflib.c:746–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746static int
747iflib_num_tx_descs(if_ctx_t ctx)
748{
749 if_softc_ctx_t scctx = &ctx->ifc_softc_ctx;
750 if_shared_ctx_t sctx = ctx->ifc_sctx;
751 uint16_t first_txq = (sctx->isc_flags & IFLIB_HAS_TXCQ) ? 1 : 0;
752
753 return scctx->isc_ntxd[first_txq];
754}
755
756#ifdef DEV_NETMAP
757#include <sys/selinfo.h>

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