Lines Matching refs:bufs

83 eth_null_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)  in eth_null_rx()  argument
89 if ((q == NULL) || (bufs == NULL)) in eth_null_rx()
93 if (rte_pktmbuf_alloc_bulk(h->mb_pool, bufs, nb_bufs) != 0) in eth_null_rx()
97 bufs[i]->data_len = (uint16_t)packet_size; in eth_null_rx()
98 bufs[i]->pkt_len = packet_size; in eth_null_rx()
99 bufs[i]->port = h->internals->port_id; in eth_null_rx()
108 eth_null_copy_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) in eth_null_copy_rx() argument
114 if ((q == NULL) || (bufs == NULL)) in eth_null_copy_rx()
118 if (rte_pktmbuf_alloc_bulk(h->mb_pool, bufs, nb_bufs) != 0) in eth_null_copy_rx()
122 rte_memcpy(rte_pktmbuf_mtod(bufs[i], void *), h->dummy_packet, in eth_null_copy_rx()
124 bufs[i]->data_len = (uint16_t)packet_size; in eth_null_copy_rx()
125 bufs[i]->pkt_len = packet_size; in eth_null_copy_rx()
126 bufs[i]->port = h->internals->port_id; in eth_null_copy_rx()
135 eth_null_no_rx(void *q __rte_unused, struct rte_mbuf **bufs __rte_unused, in eth_null_no_rx()
142 eth_null_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) in eth_null_tx() argument
147 if ((q == NULL) || (bufs == NULL)) in eth_null_tx()
151 rte_pktmbuf_free(bufs[i]); in eth_null_tx()
159 eth_null_copy_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) in eth_null_copy_tx() argument
165 if ((q == NULL) || (bufs == NULL)) in eth_null_copy_tx()
170 rte_memcpy(h->dummy_packet, rte_pktmbuf_mtod(bufs[i], void *), in eth_null_copy_tx()
172 rte_pktmbuf_free(bufs[i]); in eth_null_copy_tx()