Lines Matching defs:ring
145 * Reconcile kernel and user view of the transmit ring.
163 struct netmap_ring *ring = kring->ring;
164 u_int nm_i; /* index into the netmap ring */
165 u_int nic_i; /* index into the NIC ring */
171 * them every half ring, or where NS_REPORT is set
185 * nm_i is the current index in the netmap ring,
186 * nic_i is the corresponding index in the NIC ring.
189 * iterate over the netmap ring, fetch length and update
190 * the corresponding slot in the NIC ring. Some drivers also
199 * but only a few times per ring or when NS_REPORT is set.
209 __builtin_prefetch(&ring->slot[nm_i]);
213 struct netmap_slot *slot = &ring->slot[nm_i];
226 __builtin_prefetch(&ring->slot[nm_i + 1]);
237 /* Fill the slot in the NIC ring. */
255 /* synchronize the NIC ring */
280 * Reconcile kernel and user view of the receive ring.
297 struct netmap_ring *ring = kring->ring;
298 u_int nm_i; /* index into the netmap ring */
299 u_int nic_i; /* index into the NIC ring */
320 * nm_i is the index of the next free slot in the netmap ring,
321 * nic_i is the index of the next received packet in the NIC ring,
323 * in netmap mode. For the receive ring we have
330 * rxr->next_check is set to 0 on a ring reinit
346 ring->slot[nm_i].len = ((qword & I40E_RXD_QW1_LENGTH_PBUF_MASK)
348 ring->slot[nm_i].flags = 0;
370 * As usual nm_i is the index in the netmap ring,
371 * nic_i is the index in the NIC ring, and
378 struct netmap_slot *slot = &ring->slot[nm_i];
405 * IMPORTANT: we must leave one free slot in the ring,