[dpdk-dev] [PATCH] mbuf: add bulk free function

Morten Brørup mb at smartsharesystems.com
Wed Sep 11 14:14:12 CEST 2019


> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz
> 
> Morten, do you have more details about why do you need such a function?

Our application needs it for various purposes, e.g.:
- If rte_eth_tx_burst() returns with not all packets transmitted, our application may decide to drop the unsent packets.
- If there is too much pressure on the system, or an internal queue is full, so it decides to drop packets at some stage. (WAN Optimization appliances tend to buffer large numbers of packets, as opposed to switching/routing appliances.)

Furthermore, try searching DPDK apps/libraries/examples for loops calling rte_pktmbuf_free() with an indexed array... It's copy-paste all over. I would say that this function seems to be missing, and should have been added a long time ago.

> 
> Thanks,
> Olivier

Med venlig hilsen / kind regards
- Morten Brørup


More information about the dev mailing list