[dpdk-dev] [PATCH 1/2] ethdev: add function to adjust number of descriptors

Stephen Hemminger stephen at networkplumber.org
Thu May 25 19:40:33 CEST 2017


On Thu, 25 May 2017 16:57:53 +0100
Andrew Rybchenko <arybchenko at solarflare.com> wrote:

> From: Roman Zhukov <Roman.Zhukov at oktetlabs.ru>
> 
> Check that numbers of Rx and Tx descriptors satisfy descriptors limits
> from the Ethernet device information, otherwise adjust them to boundaries.
> 
> Signed-off-by: Roman Zhukov <Roman.Zhukov at oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>

Seems like new added complexity.
Why not just allow devices to take the request as a hint and truncate or pad
as needed.

IMHO to be successful DPDK must have as simple as possible API for application.
Good enough and as little more as possible. But other people seem to think
that having the richest and most complex possible API is a good thing.



More information about the dev mailing list