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

Function iflib_netmap_rxq_init

freebsd/net/iflib.c:1311–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1309}
1310
1311static int
1312iflib_netmap_rxq_init(if_ctx_t ctx, iflib_rxq_t rxq)
1313{
1314 struct netmap_adapter *na = NA(ctx->ifc_ifp);
1315 struct netmap_kring *kring;
1316 struct netmap_slot *slot;
1317
1318 slot = netmap_reset(na, NR_RX, rxq->ifr_id, 0);
1319 if (slot == NULL)
1320 return (0);
1321 kring = na->rx_rings[rxq->ifr_id];
1322 netmap_fl_refill(rxq, kring, true);
1323 return (1);
1324}
1325
1326static void
1327iflib_netmap_timer(void *arg)

Callers 1

iflib_init_lockedFunction · 0.85

Calls 1

netmap_fl_refillFunction · 0.85

Tested by

no test coverage detected