Lines Matching defs:ring

157  * Reconcile kernel and user view of the transmit ring.
175 struct netmap_ring *ring = kring->ring;
176 u_int nm_i; /* index into the netmap ring */
177 u_int nic_i; /* index into the NIC ring */
183 * them every half ring, or where NS_REPORT is set
197 * nm_i is the current index in the netmap ring,
198 * nic_i is the corresponding index in the NIC ring.
200 * the NIC ring but leave the netmap ring unchanged.
201 * For the transmit ring, we have
214 * iterate over the netmap ring, fetch length and update
215 * the corresponding slot in the NIC ring. Some drivers also
224 * but only a few times per ring or when NS_REPORT is set.
234 __builtin_prefetch(&ring->slot[nm_i]);
238 struct netmap_slot *slot = &ring->slot[nm_i];
251 __builtin_prefetch(&ring->slot[nm_i + 1]);
262 /* Fill the slot in the NIC ring. */
278 /* synchronize the NIC ring */
345 * Reconcile kernel and user view of the receive ring.
362 struct netmap_ring *ring = kring->ring;
363 u_int nm_i; /* index into the netmap ring */
364 u_int nic_i; /* index into the NIC ring */
384 * nm_i is the index of the next free slot in the netmap ring,
385 * nic_i is the index of the next received packet in the NIC ring,
387 * in netmap mode. For the receive ring we have
394 * rxr->next_to_check is set to 0 on a ring reinit
408 ring->slot[nm_i].len = le16toh(curr->wb.upper.length) - crclen;
409 ring->slot[nm_i].flags = 0;
431 * As usual nm_i is the index in the netmap ring,
432 * nic_i is the index in the NIC ring, and
439 struct netmap_slot *slot = &ring->slot[nm_i];
466 * IMPORTANT: we must leave one free slot in the ring,