Lines Matching defs:ring

314 /* this should really scale with ring size - this is a fairly arbitrary value */
541 * Only allow a single packet to take up most 1/nth of the tx ring
824 struct netmap_ring *ring = kring->ring;
837 * IMPORTANT: we must leave one free slot in the ring,
843 struct netmap_slot *slot = &ring->slot[nm_i];
893 * Reconcile kernel and user view of the transmit ring.
911 struct netmap_ring *ring = kring->ring;
912 u_int nm_i; /* index into the netmap ring */
913 u_int nic_i; /* index into the NIC ring */
921 * them every half ring, or where NS_REPORT is set
935 * nm_i is the current index in the netmap ring,
936 * nic_i is the corresponding index in the NIC ring.
939 * iterate over the netmap ring, fetch length and update
940 * the corresponding slot in the NIC ring. Some drivers also
949 * but only a few times per ring or when NS_REPORT is set.
962 __builtin_prefetch(&ring->slot[nm_i]);
968 struct netmap_slot *slot = &ring->slot[nm_i];
985 /* Fill the slot in the NIC ring. */
989 __builtin_prefetch(&ring->slot[nm_i + 1]);
1010 /* synchronize the NIC ring */
1031 * Reconcile kernel and user view of the receive ring.
1047 struct netmap_ring *ring = kring->ring;
1048 uint32_t nm_i; /* index into the netmap ring */
1049 uint32_t nic_i; /* index into the NIC ring */
1073 * nm_i is the index of the next free slot in the netmap ring,
1074 * nic_i is the index of the next received packet in the NIC ring,
1076 * in netmap mode. For the receive ring we have
1083 * rxr->next_check is set to 0 on a ring reinit
1102 ring->slot[nm_i].len = error ? 0 : ri.iri_len - crclen;
1103 ring->slot[nm_i].flags = 0;
1126 * As usual nm_i is the index in the netmap ring,
1127 * nic_i is the index in the NIC ring, and
1176 * the physical buffer address in the NIC ring.
2043 * Initialize a receive ring and its buffers.
2085 * Free receive ring data structures
2773 iflib_txd_db_check(if_ctx_t ctx, iflib_txq_t txq, int ring, qidx_t in_use)
2780 if (ring || txq->ift_db_pending >= max) {
3457 * there won't be space on the ring to save a pointer to each
3560 bool do_prefetch, ring, rang;
3638 ring = rang ? false : (iflib_min_tx_latency | err) || (TXQ_AVAIL(txq) < MAX_TX_DESC(ctx));
3639 iflib_txd_db_check(ctx, txq, ring, txq->ift_in_use);
4877 /* Allocate the TX ring struct memory */
4881 device_printf(dev, "Unable to allocate TX ring memory\n");
4890 device_printf(dev, "Unable to allocate RX ring memory\n");
4996 /* Allocate receive buffers for the ring*/
6020 0, mp_ring_state_handler, "A", "soft ring state");