[dpdk-users] How to getting first objects from a rte_mempool buffer every time?
宋捷
songj at zctt.com
Wed Mar 20 11:44:35 CET 2019
Hi all,
I have a pcap file that contained 100 IP packets. I can send them by DPDK by
below steps:
1. I create a rte_mempool buffer by rte_pktmbuf_pool_create. load these
100 packets into this buffer.
2. call rte_mempool_get_bulk to getting packets form rte_mempool buffer
into rte_mbuf buffer,
3. put rte_mbuf buffer into rte_eth_tx_burst for sending .
The pcap packets can be sent out from 1 to 100 Ok.
Now I want to send the only first 10 packets every time,
rte_mempool_get_bulk can get 1-10 objects, but next time it will get 11-20
objects.
I don’t know if there is easy way to getting first 10 objects from
rte_mempool buffer every time?
Thanks
Jie
More information about the users
mailing list