Re: [dpdk-dev] [PATCH v2 1/3] ethdev: new API to free consumed buffers in Tx ring

2017-01-11 Thread Stephen Hemminger
On Wed, 11 Jan 2017 15:03:21 -0500 Billy McFall wrote: > /** > + * Request the driver to free mbufs currently cached by the driver. The > + * driver will only free the mbuf if it is no longer in use. It is the > + * application's responsibity to ensure rte_eth_tx_buffer_flush(..) is > + * called

[dpdk-dev] [PATCH v2 1/3] ethdev: new API to free consumed buffers in Tx ring

2017-01-11 Thread Billy McFall
Add a new API to force free consumed buffers on Tx ring. API will return the number of packets freed (0-n) or error code if feature not supported (-ENOTSUP) or input invalid (-ENODEV). Signed-off-by: Billy McFall --- lib/librte_ether/rte_ethdev.h | 43 +++