Lines Matching refs:wmbufs
149 struct mbuf_table wmbufs[RTE_MAX_ETHPORTS]; member
197 dpc->wmbufs[j].m_table[i] = rte_pktmbuf_alloc(pktmbuf_pool[ctxt->cpu]); in dpdk_init_handle()
198 if (dpc->wmbufs[j].m_table[i] == NULL) { in dpdk_init_handle()
205 dpc->wmbufs[j].len = 0; in dpdk_init_handle()
236 if (dpc->wmbufs[nif].len >/*= MAX_PKT_BURST*/ 0) { in dpdk_send_pkts()
241 int cnt = dpc->wmbufs[nif].len; in dpdk_send_pkts()
242 pkts = dpc->wmbufs[nif].m_table; in dpdk_send_pkts()
269 for (i = 0; i < dpc->wmbufs[nif].len; i++) { in dpdk_send_pkts()
270 dpc->wmbufs[nif].m_table[i] = rte_pktmbuf_alloc(pktmbuf_pool[ctxt->cpu]); in dpdk_send_pkts()
272 if (unlikely(dpc->wmbufs[nif].m_table[i] == NULL)) { in dpdk_send_pkts()
280 dpc->wmbufs[nif].len = 0; in dpdk_send_pkts()
299 if (unlikely(dpc->wmbufs[nif].len == MAX_PKT_BURST)) in dpdk_get_wptr()
302 len_of_mbuf = dpc->wmbufs[nif].len; in dpdk_get_wptr()
303 m = dpc->wmbufs[nif].m_table[len_of_mbuf]; in dpdk_get_wptr()
316 dpc->wmbufs[nif].len = len_of_mbuf + 1; in dpdk_get_wptr()
332 if (unlikely(dpc->wmbufs[out_nif].len == MAX_PKT_BURST)) in dpdk_set_wptr()
335 len_of_mbuf = dpc->wmbufs[out_nif].len; in dpdk_set_wptr()
336 dpc->wmbufs[out_nif].m_table[len_of_mbuf] = in dpdk_set_wptr()
339 dpc->wmbufs[out_nif].m_table[len_of_mbuf]->udata64 = 0; in dpdk_set_wptr()
346 dpc->wmbufs[out_nif].len = len_of_mbuf + 1; in dpdk_set_wptr()
467 free_pkts(dpc->wmbufs[i].m_table, MAX_PKT_BURST); in dpdk_destroy_handle()
552 len_of_mbuf = dpc->wmbufs[nif].len; in dpdk_dev_ioctl()
557 m = dpc->wmbufs[nif].m_table[len_of_mbuf - 1]; in dpdk_dev_ioctl()
563 m = dpc->wmbufs[nif].m_table[len_of_mbuf - 1]; in dpdk_dev_ioctl()