Lines Matching defs:ring
44 * For each receive ring we allocate one "struct mbq"
54 * (those with NS_REPORT, or otherwise every half ring)
58 * the specific ring have been completed, and generate
447 * on ring 'r'. However we check it explicitely to stay
450 * on 'r', we try to see if it belongs to some other ring.
465 nm_prlim(1, "event %p migrated: ring %u --> %u",
653 struct netmap_ring *ring = kring->ring;
654 u_int nm_i; /* index into the netmap ring */ // j
686 struct netmap_slot *slot = &ring->slot[nm_i];
720 * every half ring. To optimize this, we set a
722 * TX ring space, or when transmission fails. In
813 u_int r = MBUF_RXQ(m); /* receive ring number */
863 * receive ring.
869 struct netmap_ring *ring = kring->ring;
871 u_int nm_i; /* index into the netmap ring */ //j,
898 struct netmap_slot *slot = &ring->slot[nm_i];
913 nm_i = kring->nr_hwtail; /* First empty slot in the receive ring. */
915 /* Compute the available space (in bytes) in this netmap ring.
941 /* No more space in the ring. */
955 ring->slot[nm_i].len = copy;
956 ring->slot[nm_i].flags = (mlen ? NS_MOREFRAG : 0);
979 nmaddr = NMB(na, &ring->slot[nm_i]);
988 copy = ring->slot[nm_i].len;
991 morefrag = ring->slot[nm_i].flags & NS_MOREFRAG;