[dpdk-dev] [PATCH v6 3/5] ethdev: redesign link speed config API

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Nov 1 23:16:29 CET 2015


2015-10-25 22:59, Marc Sune:
> This patch redesigns the API to set the link speed/s configure
> for an ethernet port. Specifically:
> 
> - it allows to define a set of advertised speeds for
>   auto-negociation.
> - it allows to disable link auto-negociation (single fixed speed).
> - default: auto-negociate all supported speeds.
> 
> Other changes:
> 
> * Added utility MACROs ETH_SPEED_NUM_XXX with the numeric
>   values of all supported link speeds, in Mbps.
> * Converted link_speed to uint32_t to accomodate 100G speeds
>   (bug).
> * Added autoneg flag in struct rte_eth_link to indicate if
>   link speed was a result of auto-negociation or was fixed
>   by configuration.
> * Added utility function to convert numeric speeds to bitmap
>   fields.

Having it split in several commits may help to understand the changes.
And it must be explained in the release notes in the "API changes".


More information about the dev mailing list