DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] A question about (poor) rte_ethdev internal rx/tx callbacks design
@ 2017-11-11 17:18 Ilya Matveychikov
  2017-11-12  2:43 ` Thomas Monjalon
  2017-11-13 10:39 ` Adrien Mazarguil
  0 siblings, 2 replies; 8+ messages in thread
From: Ilya Matveychikov @ 2017-11-11 17:18 UTC (permalink / raw)
  To: dev

Folks,

Are you serious with it:

typedef uint16_t (*eth_rx_burst_t)(void *rxq,
				   struct rte_mbuf **rx_pkts,
				   uint16_t nb_pkts);
typedef uint16_t (*eth_tx_burst_t)(void *txq,
				   struct rte_mbuf **tx_pkts,
				   uint16_t nb_pkts);

I’m not surprised that every PMD stores port_id in every and each queue as having just the queue as an argument doesn’t allow to get the device. So the question is - why not to use something like:

typedef uint16_t (*eth_rx_burst_t)(void *dev, uint16_t queue_id,
				   struct rte_mbuf **rx_pkts,
				   uint16_t nb_pkts);
typedef uint16_t (*eth_tx_burst_t)(void *dev, uint16_t queue_id,
				   struct rte_mbuf **tx_pkts,
				   uint16_t nb_pkts);

Ilya.

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

end of thread, other threads:[~2017-11-14  6:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-11 17:18 [dpdk-dev] A question about (poor) rte_ethdev internal rx/tx callbacks design Ilya Matveychikov
2017-11-12  2:43 ` Thomas Monjalon
2017-11-13 10:39 ` Adrien Mazarguil
2017-11-13 10:56   ` Ilya Matveychikov
2017-11-13 17:15     ` Adrien Mazarguil
2017-11-13 19:33       ` Ilya Matveychikov
2017-11-14  6:24         ` Andrew Rybchenko
2017-11-13 10:58   ` Ananyev, Konstantin

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