DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Ethernet API - multiple post-RX-burst callbacks' run-order is opposite to their add-order
@ 2015-07-02 21:04 Sanford, Robert
  2015-07-03  9:57 ` Bruce Richardson
  2015-07-10 13:14 ` Mcnamara, John
  0 siblings, 2 replies; 7+ messages in thread
From: Sanford, Robert @ 2015-07-02 21:04 UTC (permalink / raw)
  To: Richardson, Bruce, Thomas Monjalon, dev

When one adds multiple post-RX-burst callbacks to a queue, their execution order is the opposite of the order in which they are added. For example, we add callback A( ), and then we add callback B( ). When we call rte_eth_rx_burst, after invoking the device's rx_pkt_burst function, it will invoke B( ), and then A( ). The same goes for pre-TX-burst callbacks, too.

This is counter-intuitive. Shouldn't we either execute the callbacks in the same order that we add them (by changing the internals of the add-APIs), or change the add-APIs to allow one to specify whether a callback is added to the head or tail of the callback list? At the least, we could document the expected behavior.
Any thoughts on this?

--
Regards,
Robert

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

end of thread, other threads:[~2015-07-10 14:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-02 21:04 [dpdk-dev] Ethernet API - multiple post-RX-burst callbacks' run-order is opposite to their add-order Sanford, Robert
2015-07-03  9:57 ` Bruce Richardson
2015-07-03 10:02   ` Thomas Monjalon
2015-07-10 13:14 ` Mcnamara, John
2015-07-10 13:24   ` Thomas Monjalon
2015-07-10 13:52     ` Mcnamara, John
2015-07-10 14:02       ` Thomas Monjalon

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).