[dpdk-dev] [PATCH v8 0/3] new API to free consumed buffers in Tx ring
thomas.monjalon at 6wind.com
Mon Mar 27 17:20:56 CEST 2017
2017-03-24 14:55, Billy McFall:
> See request from 11/21/2016:
> Add a new API to free consumed buffers on TX ring. This addresses two
> 1) Flooding a packet and want to reuse existing mbuf to avoid a packet
> copy. Increment the reference count of the packet and poll new API until
> reference count is decremented.
> 2) Application runs out of mbufs, or resets and is preparing for
> additional run, call API to free consumed packets so processing can
> API will return the number of packets freed (0-n) or error code if
> feature not supported (-ENOTSUP) or input invalid (-ENODEV).
> API for e1000 igb driver and vHost driver have been implemented. Other
> drivers can be implemented over time. Some drivers implement a Tx done
> flush routine that should be reused where possible. e1000 igb driver
> and vHost driver do not have such functions.
Hope the API will be implemented in other drivers.
More information about the dev