Searched refs:ring (Results 1 - 25 of 80) sorted by relevance

1234

/deb_dpdk/drivers/net/vmxnet3/
H A Dvmxnet3_ring.h41 /* Default ring size */
70 vmxnet3_cmd_ring_adv_next2fill(struct vmxnet3_cmd_ring *ring) argument
72 ring->next2fill++;
73 if (unlikely(ring->next2fill == ring->size)) {
74 ring->next2fill = 0;
75 ring->gen = (uint8_t)(ring->gen ^ 1);
80 vmxnet3_cmd_ring_adv_next2comp(struct vmxnet3_cmd_ring *ring) argument
82 VMXNET3_INC_RING_IDX_ONLY(ring
86 vmxnet3_cmd_ring_desc_avail(struct vmxnet3_cmd_ring *ring) argument
93 vmxnet3_cmd_ring_desc_empty(struct vmxnet3_cmd_ring *ring) argument
114 vmxnet3_comp_ring_adv_next2proc(struct vmxnet3_comp_ring *ring) argument
[all...]
H A Dvmxnet3_rxtx.c98 "RXQ: cmd0 base : %p cmd1 base : %p comp ring base : %p.",
101 "RXQ: cmd0 basePA : 0x%lx cmd1 basePA : 0x%lx comp ring basePA : 0x%lx.",
128 PMD_TX_LOG(DEBUG, "TXQ: cmd base : %p comp ring base : %p data ring base : %p.",
130 PMD_TX_LOG(DEBUG, "TXQ: cmd basePA : 0x%lx comp ring basePA : 0x%lx data ring basePA : 0x%lx.",
143 vmxnet3_tx_cmd_ring_release_mbufs(vmxnet3_cmd_ring_t *ring) argument
145 while (ring->next2comp != ring->next2fill) {
147 vmxnet3_buf_info_t *buf_info = ring
160 vmxnet3_rx_cmd_ring_release_mbufs(vmxnet3_cmd_ring_t *ring) argument
179 vmxnet3_cmd_ring_release(vmxnet3_cmd_ring_t *ring) argument
229 struct vmxnet3_cmd_ring *ring = &tq->cmd_ring; local
534 struct vmxnet3_cmd_ring *ring = &rxq->cmd_ring[ring_id]; local
570 struct vmxnet3_cmd_ring *ring = &rxq->cmd_ring[ring_id]; local
843 struct vmxnet3_cmd_ring *ring; local
948 struct vmxnet3_cmd_ring *ring0, *ring1, *ring; local
[all...]
/deb_dpdk/examples/netmap_compat/netmap/
H A Dnetmap_user.h50 * we can access ring->nr_cur, ring->nr_avail, ring->nr_flags
52 * ring->slot[i] gives us the i-th slot (we can access
55 * char *buf = NETMAP_BUF(ring, index) returns a pointer to
59 * i = NETMAP_RING_NEXT(ring, i);
75 #define NETMAP_BUF(ring, index) \
76 ((char *)(ring) + (ring)->buf_ofs + ((index)*(ring)
[all...]
/deb_dpdk/lib/librte_port/
H A Drte_port_ring.h46 * input port built on top of pre-initialized single consumer ring
48 * output port built on top of pre-initialized single producer ring
50 * input port built on top of pre-initialized multi consumers ring
52 * output port built on top of pre-initialized multi producers ring
64 /** Underlying consumer ring that has to be pre-initialized */
65 struct rte_ring *ring; member in struct:rte_port_ring_reader_params
73 /** Underlying producer ring that has to be pre-initialized */
74 struct rte_ring *ring; member in struct:rte_port_ring_writer_params
76 /** Recommended burst size to ring. The actual burst size can be
86 /** Underlying producer ring tha
87 struct rte_ring *ring; member in struct:rte_port_ring_writer_nodrop_params
[all...]
H A Drte_port_frag.h46 * order to minimize the amount of packets stored in the ring at any given
47 * time, the IP fragmentation functionality is executed on ring read operation,
49 * can be created to write to the same ring.
51 * The packets written to the ring are either complete IP datagrams or jumbo
53 * packets read from the ring are all non-jumbo frames. The complete IP
54 * datagrams written to the ring are not changed. The jumbo frames are
67 /** Underlying single consumer ring that has to be pre-initialized. */
68 struct rte_ring *ring; member in struct:rte_port_ring_reader_frag_params
H A Drte_port_ras.h46 * order to minimize the amount of packets stored in the ring at any given
47 * time, the IP reassembly functionality is executed on ring write operation,
49 * can be created to read from the same ring.
51 * The packets written to the ring are either complete IP datagrams or IP
52 * fragments. The packets read from the ring are all complete IP datagrams,
54 * The complete IP datagrams written to the ring are not changed. The IP
55 * fragments written to the ring are first reassembled and into complete IP
68 /** Underlying single consumer ring that has to be pre-initialized. */
69 struct rte_ring *ring; member in struct:rte_port_ring_writer_ras_params
71 /** Recommended burst size to ring
[all...]
H A Drte_port_ring.c62 struct rte_ring *ring; member in struct:rte_port_ring_reader
75 (conf->ring == NULL) ||
76 (conf->ring->cons.sc_dequeue && is_multi) ||
77 (!(conf->ring->cons.sc_dequeue) && !is_multi)) {
91 port->ring = conf->ring;
114 nb_rx = rte_ring_sc_dequeue_burst(p->ring, (void **) pkts, n_pkts);
127 nb_rx = rte_ring_mc_dequeue_burst(p->ring, (void **) pkts, n_pkts);
183 struct rte_ring *ring; member in struct:rte_port_ring_writer
200 (conf->ring
451 struct rte_ring *ring; member in struct:rte_port_ring_writer_nodrop
[all...]
/deb_dpdk/drivers/net/bnxt/
H A Dbnxt_cpr.c117 /* For the default completion ring only */
132 /* For the default completion ring only */
136 struct bnxt_ring *ring; local
145 ring = rte_zmalloc_socket("bnxt_cp_ring_struct",
148 if (ring == NULL)
150 cpr->cp_ring_struct = ring;
151 ring->bd = (void *)cpr->cp_desc_ring;
152 ring->bd_dma = cpr->cp_desc_mapping;
153 ring->ring_size = rte_align32pow2(DEFAULT_CP_RING_SIZE);
154 ring
[all...]
H A Dbnxt_rxr.c169 /* Re-install the mbuf back to the rx ring */
179 * on the producer ring buffers.
182 * producer ring starve until memory is available again pushing
184 * allowing recovery to a full producer ring.
293 struct bnxt_ring *ring; local
307 ring = rte_zmalloc_socket("bnxt_rx_ring_struct",
310 if (ring == NULL)
312 rxr->rx_ring_struct = ring;
313 ring->ring_size = rte_align32pow2(rxq->nb_rx_desc);
314 ring
343 bnxt_init_rxbds(struct bnxt_ring *ring, uint32_t type, uint16_t len) argument
361 struct bnxt_ring *ring; local
[all...]
H A Dbnxt_cpr.h37 #define CMP_VALID(cmp, raw_cons, ring) \
39 !((raw_cons) & ((ring)->ring_size)))
46 #define RING_CMP(ring, idx) ((idx) & (ring)->ring_mask)
H A Dbnxt_txr.c77 struct bnxt_ring *ring = txr->tx_ring_struct; local
79 txq->tx_wake_thresh = ring->ring_size / 2;
80 ring->fw_ring_id = INVALID_HW_RING_ID;
89 struct bnxt_ring *ring; local
98 ring = rte_zmalloc_socket("bnxt_tx_ring_struct",
101 if (ring == NULL)
103 txr->tx_ring_struct = ring;
104 ring->ring_size = rte_align32pow2(txq->nb_tx_desc);
105 ring->ring_mask = ring
[all...]
H A Dbnxt_ring.h41 #define RING_NEXT(ring, idx) (((idx) + 1) & (ring)->ring_mask)
95 void bnxt_free_ring(struct bnxt_ring *ring);
H A Dbnxt_ring.c48 * Generic ring handling
51 void bnxt_free_ring(struct bnxt_ring *ring) argument
53 if (ring->vmem_size && *ring->vmem) {
54 memset((char *)*ring->vmem, 0, ring->vmem_size);
55 *ring->vmem = NULL;
57 ring->mem_zone = NULL;
68 //One slot is still consumed by Default ring.
80 * Allocates a completion ring wit
247 struct bnxt_ring *ring = rxr->rx_ring_struct; local
289 struct bnxt_ring *ring = txr->tx_ring_struct; local
[all...]
/deb_dpdk/drivers/crypto/qat/qat_adf/
H A Dadf_transport_access_macros.h83 /* Valid internal ring size values */
104 /* Size to bytes conversion macros for ring and msg size values */
110 /* Minimum ring bufer size for memory allocation */
129 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \
131 ADF_RING_CSR_RING_HEAD + (ring << 2))
132 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \
134 ADF_RING_CSR_RING_TAIL + (ring << 2))
138 #define WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value) \
140 ADF_RING_CSR_RING_CONFIG + (ring << 2), value)
141 #define WRITE_CSR_RING_BASE(csr_base_addr, bank, ring, valu
[all...]
/deb_dpdk/drivers/net/virtio/
H A Dvirtio_ring.h57 /* VirtIO ring descriptors: 16 bytes.
69 uint16_t ring[0]; member in struct:vring_avail
83 struct vring_used_elem ring[0]; member in struct:vring_used
93 /* The standard layout for the ring is a continuous chunk of memory which
100 * // A ring of available descriptor heads with free-running index.
109 * // A ring of used descriptor heads with free-running index.
120 * We publish the used event index at the end of the available ring, and vice
123 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num])
124 #define vring_avail_event(vr) (*(uint16_t *)&(vr)->used->ring[(vr)->num])
148 RTE_ALIGN_CEIL((uintptr_t)(&vr->avail->ring[nu
[all...]
/deb_dpdk/app/test/
H A Dtest_table_ports.c62 port_ring_reader_params.ring = RING_RX;
76 port_ring_reader_params.ring = RING_RX;
82 expected_pkts = rte_ring_sp_enqueue_burst(port_ring_reader_params.ring,
95 expected_pkts = rte_ring_sp_enqueue_burst(port_ring_reader_params.ring,
125 port_ring_writer_params.ring = NULL;
131 port_ring_writer_params.ring = RING_TX;
139 port_ring_writer_params.ring = RING_TX;
155 port_ring_writer_params.ring = RING_TX;
165 received_pkts = rte_ring_sc_dequeue_burst(port_ring_writer_params.ring,
180 received_pkts = rte_ring_sc_dequeue_burst(port_ring_writer_params.ring,
[all...]
/deb_dpdk/examples/quota_watermark/qwctl/
H A Dcommands.c75 "- ring names follow the core%%u_port%%u format\n");
114 struct rte_ring *ring; local
134 ring = rte_ring_lookup(tokens->variable);
135 if (ring == NULL)
136 cmdline_printf(cl, "Cannot find ring \"%s\"\n", tokens->variable);
140 rte_ring_set_water_mark(ring, tokens->value * RING_SIZE / 100);
142 cmdline_printf(cl, "ring high watermark must be between %u%% "
182 struct rte_ring *ring; local
192 ring = rte_ring_lookup(tokens->variable);
193 if (ring
[all...]
/deb_dpdk/drivers/net/enic/base/
H A Dvnic_cq.c43 mem_size = vnic_dev_desc_ring_size(&cq->ring, desc_count, desc_size);
50 vnic_dev_free_desc_ring(cq->vdev, &cq->ring);
73 err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size,
89 paddr = (u64)cq->ring.base_addr | VNIC_PADDR_TARGET;
91 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size);
115 vnic_dev_clear_desc_ring(&cq->ring);
H A Dvnic_wq.c56 return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size,
62 unsigned int count = wq->ring.desc_count;
63 /* Allocate the mbuf ring */
80 vnic_dev_free_desc_ring(vdev, &wq->ring);
122 unsigned int count = wq->ring.desc_count;
124 paddr = (u64)wq->ring.base_addr | VNIC_PADDR_TARGET;
192 to_clean = buf_idx_incr(wq->ring.desc_count, to_clean);
195 wq->ring.desc_avail++;
207 vnic_dev_clear_desc_ring(&wq->ring);
H A Dvnic_rq.c44 vnic_dev_free_desc_ring(vdev, &rq->ring);
68 rc = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size,
79 unsigned int count = rq->ring.desc_count;
81 paddr = (u64)rq->ring.base_addr | VNIC_PADDR_TARGET;
103 /* Use current fetch_index as the ring starting point */
159 unsigned int count = rq->ring.desc_count;
167 rq->ring.desc_avail = count - 1;
170 /* Use current fetch_index as the ring starting point */
180 vnic_dev_clear_desc_ring(&rq->ring);
H A Dvnic_dev.c227 unsigned int vnic_dev_desc_ring_size(struct vnic_dev_ring *ring, argument
239 ring->base_align = 512;
244 ring->desc_count = VNIC_ALIGN(desc_count, count_align);
246 ring->desc_size = VNIC_ALIGN(desc_size, desc_align);
248 ring->size = ring->desc_count * ring->desc_size;
249 ring->size_unaligned = ring->size + ring
264 vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring) argument
269 vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, unsigned int desc_count, unsigned int desc_size, __attribute__((unused)) unsigned int socket_id, char *z_name) argument
311 vnic_dev_free_desc_ring(__attribute__((unused)) struct vnic_dev *vdev, struct vnic_dev_ring *ring) argument
[all...]
/deb_dpdk/lib/librte_pdump/
H A Drte_pdump.h104 * @param ring
105 * ring on which captured packets will be enqueued for user.
117 struct rte_ring *ring,
154 * @param ring
155 * ring on which captured packets will be enqueued for user.
168 struct rte_ring *ring,
/deb_dpdk/examples/quota_watermark/qw/
H A Dinit.c129 struct rte_ring *ring; local
134 ring = rte_ring_create(ring_name, RING_SIZE, rte_socket_id(),
137 if (ring == NULL)
140 rte_ring_set_water_mark(ring, 80 * RING_SIZE / 100);
142 rings[lcore_id][port_id] = ring;
/deb_dpdk/examples/netmap_compat/lib/
H A Dcompat_netmap.c115 #define BUF_IDX(port, ring, slot) \
116 (((port) * PORT_NUM_RINGS + (ring)) * netmap.conf.max_slots + \
148 * Given a dpdk mbuf, fill in the Netmap slot in ring r and its associated
169 * Given a Netmap ring and a slot index for that ring, construct a dpdk mbuf
286 netmap_ring_setup(struct netmap_ring *ring, uint8_t port, uint32_t ringid, argument
291 ring->buf_ofs = netmap.buf_start - (uintptr_t)ring;
292 ring->num_slots = num_slots;
293 ring
311 struct netmap_ring *ring; local
463 rx_sync_ring(struct netmap_ring *ring, uint8_t port, uint16_t ring_number, uint16_t max_burst) argument
545 tx_sync_ring(struct netmap_ring *ring, uint8_t port, uint16_t ring_number, struct rte_mempool *pool, uint16_t max_burst) argument
[all...]
/deb_dpdk/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/
H A Dixgbe.h311 #define check_for_tx_hang(ring) \
312 test_bit(__IXGBE_TX_DETECT_HANG, &(ring)->state)
313 #define set_check_for_tx_hang(ring) \
314 set_bit(__IXGBE_TX_DETECT_HANG, &(ring)->state)
315 #define clear_check_for_tx_hang(ring) \
316 clear_bit(__IXGBE_TX_DETECT_HANG, &(ring)->state)
318 #define ring_is_rsc_enabled(ring) \
319 test_bit(__IXGBE_RX_RSC_ENABLED, &(ring)->state)
321 #define ring_is_rsc_enabled(ring) false
323 #define set_ring_rsc_enabled(ring) \
412 ixgbe_rx_pg_order(struct ixgbe_ring *ring) argument
424 struct ixgbe_ring *ring; /* pointer to linked list of rings */ member in struct:ixgbe_ring_container
490 ixgbe_desc_unused(struct ixgbe_ring *ring) argument
[all...]

Completed in 28 milliseconds

1234