DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Adding API to force freeing consumed buffers in TX ring
@ 2016-11-21 10:48 Damjan Marion (damarion)
  2016-11-21 14:33 ` Wiles, Keith
  0 siblings, 1 reply; 5+ messages in thread
From: Damjan Marion (damarion) @ 2016-11-21 10:48 UTC (permalink / raw)
  To: dev


Hi,

Currently in VPP we do memcpy of whole packet when we need to do 
replication as we cannot know if specific buffer is transmitted
from tx ring before we update it again (i.e. l2 header rewrite).

Unless there is already a way to address this issue in DPDK which I’m not aware
of my proposal is that we provide mechanism for polling TX ring 
for consumed buffers. This can be either completely new API or 
extension of rte_etx_tx_burst (i.e. special case when nb_pkts=0).

This will allows us to start polling tx ring when we expect some 
mbuf back, instead of waiting for next tx burst (which we don’t know
when it will happen) and hoping that we will reach free_threshold soon.

Any thoughts?

Thanks,

Damjan




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-22 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-21 10:48 [dpdk-dev] Adding API to force freeing consumed buffers in TX ring Damjan Marion (damarion)
2016-11-21 14:33 ` Wiles, Keith
2016-11-21 15:06   ` Olivier Matz
2016-11-21 15:25     ` Bruce Richardson
2016-11-22 20:41       ` Wiles, Keith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).