[dpdk-dev] [PATCH v5 3/4] ethdev: redesign link speed config API

Stephen Hemminger stephen at networkplumber.org
Tue Feb 2 03:20:35 CET 2016


On Thu, 28 Jan 2016 17:33:20 +0000
Harish Patil <harish.patil at qlogic.com> wrote:

> * Added utility MACROs ETH_SPEED_NUM_XXX with the numeric
>   values of all supported link speeds, in Mbps.

I would prefer that there were no speed value macros.
Linux used to have these, but people kept adding new hardware speeds
and it soon gets out of date.

If you are going to redo it, then just increase speed to 64 bit, and allow
any non-zero value.


More information about the dev mailing list