From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by dpdk.org (Postfix) with ESMTP id 169001B20B for ; Mon, 9 Oct 2017 17:01:11 +0200 (CEST) Received: by mail-lf0-f54.google.com with SMTP id a132so19565788lfa.7 for ; Mon, 09 Oct 2017 08:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vnh0eoyHOoS5HCXelPM3tRxmR45n4k+oHpqOeQysJPM=; b=vrlKDoh3zda9ZmDb7he1zc3qXwhdIRRCYknHUn1ejH7FIv1F4FVTRfaViPwFluGK/7 c67NNyOVsoEBKGN3FMAUBGGBn2FUuQm2rwGjdwPHyJ//XO9O9jx0uTDSPNZYC69lBo4f vQKiDoQq44pTlLr7s29m0TwA4cqEXY4gv0odBYCAl4AQlaFizY5C3DeucXl7/fkEqVL3 GlMEPAcByuG61TlwCbK8zex+A/8rgAk0h/x7pAypIHKaS+ELMaEyHA0w2R1Hi0Gfrp4F VpeS7Fe7LkZuskz9L2novPAGEQdWW5v6FmRE/bK3t7IcwuniVlT6wmx2oZfhQ5vqW/xe 4uiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vnh0eoyHOoS5HCXelPM3tRxmR45n4k+oHpqOeQysJPM=; b=mjaIsdQmp/B4Q0NgpEODp1astE1pPGQbpDkrkOwv2V43qxq5MqHFM0USnsvkZAobPa OH7bQ9bkxZCn0E52IigaZf52v4tggHzTgAvXEOjhLuk2rED1n7yUUqoNxYHFez5IjRel 2W3KO7O4a1+8CSzOExlco3fmkDx3veku/IALs/BlceqJuySmN3EygvkU4Vas1NpWRAi7 d/6q8irMoZrd//PlZqplB5wGsIj1Lrk7I6+ksjOvmSmRXwKsxmIUalIZj88AllZx/PR0 YRGWbwESDsZ8Mt46mPk15CwQbZf3T1c+f9VFsgpdaFTi01Sx0Ex/G/oamPxk8iOMwsh7 i9WQ== X-Gm-Message-State: AMCzsaVp7Ym/MJnuiq7zqfQhFe3qos6FS/HO7IhpLD3+O4SIIr1x+dNw BK+3f46swxL2iF2pCObKg9v/ijQ6jGE= X-Google-Smtp-Source: AOwi7QDW4bACsf38HeGSpc2ILL2KV0vYmdNLAviYzJFSrBESAWzGUc+eQkVQTjUbmgKSAXUroMKdWw== X-Received: by 10.46.1.205 with SMTP id f74mr4578165lji.100.1507561270517; Mon, 09 Oct 2017 08:01:10 -0700 (PDT) Received: from tdu.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z64sm1352637lfa.91.2017.10.09.08.01.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Oct 2017 08:01:09 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, Jianbo.liu@linaro.org, Tomasz Duszynski , Jacek Siuda Date: Mon, 9 Oct 2017 17:00:33 +0200 Message-Id: <1507561244-20115-6-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507561244-20115-1-git-send-email-tdu@semihalf.com> References: <1507031500-11473-1-git-send-email-tdu@semihalf.com> <1507561244-20115-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH v4 05/16] net/mrvl: add link speed capabilities X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 15:01:11 -0000 Return supported link speed capabilities via rte_dev_info_get(). Signed-off-by: Jacek Siuda Signed-off-by: Tomasz Duszynski --- doc/guides/nics/features/mrvl.ini | 1 + drivers/net/mrvl/mrvl_ethdev.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/doc/guides/nics/features/mrvl.ini b/doc/guides/nics/features/mrvl.ini index 72df92e..c3b9edf 100644 --- a/doc/guides/nics/features/mrvl.ini +++ b/doc/guides/nics/features/mrvl.ini @@ -4,4 +4,5 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] +Speed capabilities = Y Link status = Y diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index 4788784..7bd0dad 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -576,6 +576,11 @@ static void mrvl_dev_infos_get(struct rte_eth_dev *dev __rte_unused, struct rte_eth_dev_info *info) { + info->speed_capa = ETH_LINK_SPEED_10M | + ETH_LINK_SPEED_100M | + ETH_LINK_SPEED_1G | + ETH_LINK_SPEED_10G; + info->max_rx_queues = MRVL_PP2_RXQ_MAX; info->max_tx_queues = MRVL_PP2_TXQ_MAX; info->max_mac_addrs = MRVL_MAC_ADDRS_MAX; -- 2.7.4