DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Requirement of minimum Rx burst size for PMDs
@ 2017-10-20  1:18 Yongseok Koh
  2017-10-20  8:13 ` Bruce Richardson
  2017-10-20 10:07 ` Andrew Rybchenko
  0 siblings, 2 replies; 6+ messages in thread
From: Yongseok Koh @ 2017-10-20  1:18 UTC (permalink / raw)
  To: dev

Hi,

In some rx_burst functions, especially for vectorized ones (e.g. i40e_rxtx_vec*
or mlx5_rxtx_vec*), there's actually a requirement of min burst size.

As it manipulates 4 packets simultaneously in a loop, if nb_pkts of
rte_eth_rx_burst() is less than 4, it just returns without sending a packet.

One way to handle it could be falling back to regular rx_burst in such cases but
the burst size isn't a fixed/static parameter but applications can dynamically
change it when it polls a device. So, it might not be a good option.

Therefore, how about adding min_rx/tx_burst_sz in struct rte_eth_dev_info and
have PMDs fill it in on dev_ops->dev_infos_get() so as to make apps comply with
it.

Because the max size of a burst can be handled well by PMD, it may not be
necessary.

Thoughts?


Thanks,
Yongseok

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

end of thread, other threads:[~2017-10-20 17:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20  1:18 [dpdk-dev] Requirement of minimum Rx burst size for PMDs Yongseok Koh
2017-10-20  8:13 ` Bruce Richardson
2017-10-20 10:07 ` Andrew Rybchenko
2017-10-20 11:58   ` Bruce Richardson
2017-10-20 12:23     ` Andrew Rybchenko
2017-10-20 16:59       ` Yongseok Koh

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