DPDK patches and discussions
 help / color / mirror / Atom feed
* rte_event_eth_tx_adapter_enqueue() short enqueue
@ 2024-11-27 10:03 Mattias Rönnblom
  2024-11-27 10:38 ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: Mattias Rönnblom @ 2024-11-27 10:03 UTC (permalink / raw)
  To: dev
  Cc: Jerin Jacob Kollanukkaran, Daniel Östman, Naga Harish K S V,
	nils.wiberg, gyumin.hwang, changshik.lee, Mattias Rönnblom

Hi.

Consider the following situation:

An application does

rte_event_eth_tx_adapter_enqueue()

and due to back-pressure or some other reason not all events/packets 
could be enqueued, and a count lower than the nb_events input parameter 
is returned.

The API says that "/../ the remaining events at the end of ev[] are not 
consumed and the caller has to take care of them /../".

May an event device rearrange the ev array so that any enqueue failures 
are put last in the ev array?

In other words: does the "at the end of ev[]" mean "at the end of ev[] 
as the call has completed", or is the event array supposed to be 
untouched, and thus the same events are at the end both before and after 
the call.

The ev array pointer is not const, so from that perspective it may be 
modified.

This situation may occur for example the bonding driver is used under 
the hood. The bonding driver does this kind of rearrangements on the 
ethdev level.

Thanks,
	Mattias

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

end of thread, other threads:[~2024-11-27 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-27 10:03 rte_event_eth_tx_adapter_enqueue() short enqueue Mattias Rönnblom
2024-11-27 10:38 ` Bruce Richardson
2024-11-27 10:53   ` Mattias Rönnblom
2024-11-27 11:07     ` Bruce Richardson

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