| 1309 | } |
| 1310 | |
| 1311 | static int |
| 1312 | iflib_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 | |
| 1326 | static void |
| 1327 | iflib_netmap_timer(void *arg) |
no test coverage detected