From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.arccn.ru (vpn.arccn.ru [95.182.74.2]) by dpdk.org (Postfix) with SMTP id 7DE39590C for ; Tue, 26 May 2015 23:20:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.arccn.ru (Postfix) with ESMTP id D47EDA0093 for ; Wed, 27 May 2015 00:17:48 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=arccn.ru; h= x-mailer:to:references:message-id:content-transfer-encoding:date :date:in-reply-to:from:from:subject:subject:mime-version :content-type:content-type; s=dkim; t=1432675068; x=1433539068; bh=pN7UH2hR/u2plHVAoU8gU3U90Ym5oH9oO/TN2nspqbk=; b=NceS+XQ/INCh 1CLdzCGG8I8iMgShy8474ZR7j5MHpnmR+xCighIJ1MjT4yeTbOXJlwuIIJJgyRCx sQpGafncDISFTgoF7CqfT18ytuatIZka8jsEopVF3x4U8np1trA7YWBaQ0pmZq/Y IMz/z/gEoOewKOSGSyP5/4M00uGtUOQ= X-Virus-Scanned: Debian amavisd-new at mail.arccn.ru Received: from mail.arccn.ru ([127.0.0.1]) by localhost (mail.arccn.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Mjg3HbPkcFV for ; Wed, 27 May 2015 00:17:48 +0300 (MSK) Received: from [192.168.1.116] (unknown [46.138.148.77]) by mail.arccn.ru (Postfix) with ESMTPSA id 3336DA0091; Wed, 27 May 2015 00:17:48 +0300 (MSK) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Igor Ryzhov In-Reply-To: <1432669843-15672-3-git-send-email-marc.sune@bisdn.de> Date: Wed, 27 May 2015 00:20:44 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <1D59D5EC-7003-43BE-86FC-5EE293F6992B@arccn.ru> References: <1431387946-29950-1-git-send-email-marc.sune@bisdn.de> <1432669843-15672-1-git-send-email-marc.sune@bisdn.de> <1432669843-15672-3-git-send-email-marc.sune@bisdn.de> To: Marc Sune X-Mailer: Apple Mail (2.2098) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 2/2] Filling speed capability bitmaps in the PMDs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2015 21:20:45 -0000 Hello, Marc! You swapped values for X710 and XL710 - you use 1G and 10G for XL710, = 10G and 40G for X710. Best regards, Igor > 26 =D0=BC=D0=B0=D1=8F 2015 =D0=B3., =D0=B2 22:50, Marc Sune = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > Added speed capabilities to all pmds supporting physical NICs: >=20 > * e1000 > * ixgbe > * i40 > * mlx4 > * fm10k >=20 > Signed-off-by: Marc Sune > --- > drivers/net/e1000/em_ethdev.c | 6 ++++++ > drivers/net/e1000/igb_ethdev.c | 6 ++++++ > drivers/net/fm10k/fm10k_ethdev.c | 3 +++ > drivers/net/i40e/i40e_ethdev.c | 9 +++++++++ > drivers/net/ixgbe/ixgbe_ethdev.c | 10 ++++++++++ > drivers/net/mlx4/mlx4.c | 6 ++++++ > 6 files changed, 40 insertions(+) >=20 > diff --git a/drivers/net/e1000/em_ethdev.c = b/drivers/net/e1000/em_ethdev.c > index d28030e..8e25cfa 100644 > --- a/drivers/net/e1000/em_ethdev.c > +++ b/drivers/net/e1000/em_ethdev.c > @@ -883,6 +883,12 @@ eth_em_infos_get(struct rte_eth_dev *dev, struct = rte_eth_dev_info *dev_info) >=20 > dev_info->max_rx_queues =3D 1; > dev_info->max_tx_queues =3D 1; > + > + dev_info->speed_capa =3D ETH_SPEED_CAP_10M_HD | > + ETH_SPEED_CAP_10M_FD | > + ETH_SPEED_CAP_100M_HD | > + ETH_SPEED_CAP_100M_FD | > + ETH_SPEED_CAP_1G; > } >=20 > /* return 0 means link status changed, -1 means not changed */ > diff --git a/drivers/net/e1000/igb_ethdev.c = b/drivers/net/e1000/igb_ethdev.c > index e4b370d..424ad6f 100644 > --- a/drivers/net/e1000/igb_ethdev.c > +++ b/drivers/net/e1000/igb_ethdev.c > @@ -1398,6 +1398,12 @@ eth_igb_infos_get(struct rte_eth_dev *dev, = struct rte_eth_dev_info *dev_info) > }, > .txq_flags =3D 0, > }; > + > + dev_info->speed_capa =3D ETH_SPEED_CAP_10M_HD | > + ETH_SPEED_CAP_10M_FD | > + ETH_SPEED_CAP_100M_HD | > + ETH_SPEED_CAP_100M_FD | > + ETH_SPEED_CAP_1G; > } >=20 > static void > diff --git a/drivers/net/fm10k/fm10k_ethdev.c = b/drivers/net/fm10k/fm10k_ethdev.c > index 275c19c..e97b857 100644 > --- a/drivers/net/fm10k/fm10k_ethdev.c > +++ b/drivers/net/fm10k/fm10k_ethdev.c > @@ -791,6 +791,9 @@ fm10k_dev_infos_get(struct rte_eth_dev *dev, > ETH_TXQ_FLAGS_NOOFFLOADS, > }; >=20 > + dev_info->speed_capa =3D ETH_SPEED_CAP_1G | ETH_SPEED_CAP_2_5G | > + ETH_SPEED_CAP_10G | = ETH_SPEED_CAP_25G | > + ETH_SPEED_CAP_40G | = ETH_SPEED_CAP_100G; > } >=20 > static int > diff --git a/drivers/net/i40e/i40e_ethdev.c = b/drivers/net/i40e/i40e_ethdev.c > index fb64027..5e9db6b 100644 > --- a/drivers/net/i40e/i40e_ethdev.c > +++ b/drivers/net/i40e/i40e_ethdev.c > @@ -1519,6 +1519,7 @@ static void > i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info = *dev_info) > { > struct i40e_pf *pf =3D = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private); > + struct i40e_hw *hw =3D = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private); > struct i40e_vsi *vsi =3D pf->main_vsi; >=20 > dev_info->max_rx_queues =3D vsi->nb_qps; > @@ -1574,6 +1575,14 @@ i40e_dev_info_get(struct rte_eth_dev *dev, = struct rte_eth_dev_info *dev_info) > dev_info->max_rx_queues +=3D dev_info->vmdq_queue_num; > dev_info->max_tx_queues +=3D dev_info->vmdq_queue_num; > } > + > + if (i40e_is_40G_device(hw->device_id)) > + /* For XL710 */ > + dev_info->speed_capa =3D ETH_SPEED_CAP_1G | = ETH_SPEED_CAP_10G; > + else > + /* For X710 */ > + dev_info->speed_capa =3D ETH_SPEED_CAP_10G | = ETH_SPEED_CAP_40G; > + > } >=20 > static int > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c = b/drivers/net/ixgbe/ixgbe_ethdev.c > index 0d9f9b2..78b13a8 100644 > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -2054,6 +2054,16 @@ ixgbe_dev_info_get(struct rte_eth_dev *dev, = struct rte_eth_dev_info *dev_info) > }; > dev_info->reta_size =3D ETH_RSS_RETA_SIZE_128; > dev_info->flow_type_rss_offloads =3D IXGBE_RSS_OFFLOAD_ALL; > + > + dev_info->speed_capa =3D ETH_SPEED_CAP_1G | ETH_SPEED_CAP_10G; > + > + if (hw->mac.type =3D=3D ixgbe_mac_X540 || > + hw->mac.type =3D=3D ixgbe_mac_X540_vf || > + hw->mac.type =3D=3D ixgbe_mac_X550 || > + hw->mac.type =3D=3D ixgbe_mac_X550_vf) > + > + dev_info->speed_capa |=3D ETH_SPEED_CAP_100M_FD | > + ETH_SPEED_CAP_100M_HD; > } >=20 > static void > diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c > index f915bc1..d4442fb 100644 > --- a/drivers/net/mlx4/mlx4.c > +++ b/drivers/net/mlx4/mlx4.c > @@ -3482,6 +3482,12 @@ mlx4_dev_infos_get(struct rte_eth_dev *dev, = struct rte_eth_dev_info *info) > info->max_rx_queues =3D max; > info->max_tx_queues =3D max; > info->max_mac_addrs =3D elemof(priv->mac); > + > + info->speed_capa =3D ETH_SPEED_CAP_10G | ETH_SPEED_CAP_20G | > + ETH_SPEED_CAP_25G | = ETH_SPEED_CAP_40G | > + ETH_SPEED_CAP_50G | = ETH_SPEED_CAP_56G | > + ETH_SPEED_CAP_100G; > + > priv_unlock(priv); > } >=20 > --=20 > 2.1.4 >=20