[dpdk-dev] [PATCH v3 1/7] lib/librte_ether: Add 2/2.5/25/50Gbps link speeds

Bruce Richardson bruce.richardson at intel.com
Tue Apr 19 14:41:36 CEST 2016


On Fri, Mar 04, 2016 at 01:05:22PM -0800, Stephen Hurd wrote:
> Add additional ETH_LINK_SPEED_* macros for 2, 2.5, 25, and 50 Gbps links
> 
> Signed-off-by: Stephen Hurd <stephen.hurd at broadcom.com>
> ---
>  lib/librte_ether/rte_ethdev.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h
> index 16da821..cb40bbb 100644
> --- a/lib/librte_ether/rte_ethdev.h
> +++ b/lib/librte_ether/rte_ethdev.h
> @@ -254,10 +254,14 @@ struct rte_eth_link {
>  #define ETH_LINK_SPEED_10       10      /**< 10 megabits/second. */
>  #define ETH_LINK_SPEED_100      100     /**< 100 megabits/second. */
>  #define ETH_LINK_SPEED_1000     1000    /**< 1 gigabits/second. */
> +#define ETH_LINK_SPEED_2000     2000    /**< 2 gigabits/second. */
> +#define ETH_LINK_SPEED_2500     2500    /**< 2.5 gigabits/second. */
>  #define ETH_LINK_SPEED_10000    10000   /**< 10 gigabits/second. */
>  #define ETH_LINK_SPEED_10G      10000   /**< alias of 10 gigabits/second. */
>  #define ETH_LINK_SPEED_20G      20000   /**< 20 gigabits/second. */
> +#define ETH_LINK_SPEED_25G      25000	/**< 25 gigabits/second. */
>  #define ETH_LINK_SPEED_40G      40000   /**< 40 gigabits/second. */
> +#define ETH_LINK_SPEED_50G      50000   /**< 50 gigabits/second. */
>  
>  #define ETH_LINK_AUTONEG_DUPLEX 0       /**< Auto-negotiate duplex. */
>  #define ETH_LINK_HALF_DUPLEX    1       /**< Half-duplex connection. */
> -- 
Hi Stephen,

there were some link speed changes in Rel 16.04, so this patch needs an update
to apply. Hopefully most of the changes in it are no longer needed following the
rework.

Regards,
/Bruce


More information about the dev mailing list