Lines Matching full:rings
376 * The indexes in the NIC and netmap rings are offset by nkr_hwofs slots.
379 * RX rings: the next empty buffer (hwtail + hwofs) coincides with
381 * TX rings: hwcur + hwofs coincides with next_to_send
389 * In RX rings (used for VALE ports),
391 * In TX rings (used for NIC or host stack ports)
402 * for NIC rings, and for TX rings attached to the host stack.
404 * RX rings attached to the host stack use an mbq (rx_queue) on both
408 * RX rings attached to the VALE switch are accessed by both senders
418 * Copies of values in user rings, so we do not need to look
448 * indexes in the netmap rings remain the same. nkr_hwofs
497 * On tx rings we preallocate an array of tx buffers
498 * (same size as the netmap ring), on rx rings we
630 * Here is the layout for the Rx and Tx rings.
747 #define NAF_HOST_RINGS 64 /* the adapter supports the host rings */
752 #define NAF_HOST_ALL 2048 /* the adapter wants as many host rings as hw */
761 u_int num_rx_rings; /* number of adapter receive rings */
762 u_int num_tx_rings; /* number of adapter transmit rings */
763 u_int num_host_rx_rings; /* number of host receive rings */
764 u_int num_host_tx_rings; /* number of host transmit rings */
771 * N for the hardware rings and K for the host rings.
773 struct netmap_kring **tx_rings; /* array of TX rings. */
774 struct netmap_kring **rx_rings; /* array of RX rings. */
776 void *tailroom; /* space below the rings array */
819 * for RX rings, where we want to disallow writes outside of the
827 * most important for TX rings when there are offsets. The user
875 * that can be used to connect the adapter host rings to the
890 /* adapter used to attach the host rings of this adapter
1075 /* account for fake rings */
1090 * netmap rings and buffers, but they have two separate sets of
1094 * bwrap krings rings krings hwna
1105 * - packets coming from the bridge go to the brwap rx rings,
1106 * which are also the hwna tx rings. The bwrap notify callback
1109 * - packets coming from the outside go to the hwna rx rings,
1110 * which are also the bwrap tx rings. The (overwritten) hwna
1114 * The bridge wrapper may optionally connect the hwna 'host' rings
1118 * cross-links the hwna host rings in the same way as shown above.
1131 struct netmap_vp_adapter host; /* for host rings */
1458 /* check/fix address and len in tx rings */
1499 /* update the ring parameters (number and size of tx and rx rings).
1525 /* set the stopped/enabled status of all rings of the adapter. */
2056 np_qlast[NR_TXRX]; /* range of tx/rx rings to scan */
2067 * number of rings.
2075 * The number of entries must agree with the number of rings bound to
2077 * rings are laid out before the ones corresponding to the RX rings.
2372 * Used to decide when we need (de)allocate krings/rings and