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

Marc marcdevel at gmail.com
Sun Jan 31 22:24:06 CET 2016


On 29 January 2016 at 17:16, Nélio Laranjeiro <nelio.laranjeiro at 6wind.com>
wrote:

> Hi Marc,
>
> On Fri, Jan 29, 2016 at 01:42:05AM +0100, Marc Sune wrote:
> >[...]
> >  /**
> > - * Device supported speeds
> > - */
> > -#define ETH_SPEED_CAP_NOT_PHY        (0)  /*< No phy media > */
> > -#define ETH_SPEED_CAP_10M_HD (1 << 0)  /*< 10 Mbps half-duplex> */
> > -#define ETH_SPEED_CAP_10M_FD (1 << 1)  /*< 10 Mbps full-duplex> */
> > -#define ETH_SPEED_CAP_100M_HD        (1 << 2)  /*< 100 Mbps
> half-duplex> */
> > -#define ETH_SPEED_CAP_100M_FD        (1 << 3)  /*< 100 Mbps
> full-duplex> */
> > -#define ETH_SPEED_CAP_1G     (1 << 4)  /*< 1 Gbps > */
> > -#define ETH_SPEED_CAP_2_5G   (1 << 5)  /*< 2.5 Gbps > */
> > -#define ETH_SPEED_CAP_5G     (1 << 6)  /*< 5 Gbps > */
> > -#define ETH_SPEED_CAP_10G    (1 << 7)  /*< 10 Mbps > */
> > -#define ETH_SPEED_CAP_20G    (1 << 8)  /*< 20 Gbps > */
> > -#define ETH_SPEED_CAP_25G    (1 << 9)  /*< 25 Gbps > */
> > -#define ETH_SPEED_CAP_40G    (1 << 10)  /*< 40 Gbps > */
> > -#define ETH_SPEED_CAP_50G    (1 << 11)  /*< 50 Gbps > */
> > -#define ETH_SPEED_CAP_56G    (1 << 12)  /*< 56 Gbps > */
> > -#define ETH_SPEED_CAP_100G   (1 << 13)  /*< 100 Gbps > */
> >[...]
>
> In the previous commit you update mlx4.c to use those define, in this
> commit it should update it again.
>

Neilo,

You are right, thanks. I will fix that in a new version.

marc



>
> Regards,
>
> --
> Nélio Laranjeiro
> 6WIND
>


More information about the dev mailing list