From patchwork Fri May 8 13:02:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 186342 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp4159362ill; Fri, 8 May 2020 06:06:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKOIMvOehFKJ1NrpuXGqJ5hCIMt0ytenoc9u/U+jBchAFEaW4/DFCzCHCV3LsykGClMs0Ue X-Received: by 2002:a05:6402:17ef:: with SMTP id t15mr2092022edy.10.1588943169641; Fri, 08 May 2020 06:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943169; cv=none; d=google.com; s=arc-20160816; b=HM6V+gu3E3/FIY2Y6WAq+ijEsYsJVIuhaCcBINUdUeq2+BCWyU9K2tI2+rSoWST4Li vBQyj9/yT1WOCVFO+O4JSKwsEmwVC70CStkcQuBmROQC60iSQXHpbckRXPiNx2rYQF5u 6JI7nHe4+l78D7kCFeu/fvOs0/VqljvZm2Nbz3SbKJ/dhtzX7+TnMI1wzk1EmDzhRHdl iaSOQ3gaQNPIWTxul5xpzsUMHrOrOC217agiQpCsuZzK5/FMoZNyOC3oV9ZKZl9rR3pj sxKqt5eO5a8JnVUgMaRO+n/wXz6f/DuQwJXWdDtuojC4QICwTW9fPvyZJ+NA1i2duj1v FVRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=d4QnVCbeH9g1gCqreS1y3EcSlxcazAD7CCPnhsive2Y=; b=0Rq4Zh3h7ecaribK1V2ssBg/YSa/Na1XFip5zipBvUhrN1PcGoqy4Q3eaQgTHtgAK7 FeiisxWdmHYfNWzHH5/FYr3ZCBb0oWnl/3cipQ2Ah6DRm1MG+rcvAPtV/ldTGszhP56Z Q8O+mCwUgoqzKACZvk/l/tgWJyK3FgKix0kCDUjM8e7GIyN1FeLIaabSW9B3PJ9VzygK 4jhw6bPu2vDxcpZRl+sFILGwRNQnvTwMAk2msnxekO7mFZxBLTtxGb3FIvfhwaW1kO7f GU3Y7L00L8a0/jKTaAOH5bLpuOAhZLsieo6le7AOw+O1GririztZ2EstDkhj2x5c9q4u eSHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id nh5si987587ejb.352.2020.05.08.06.06.09; Fri, 08 May 2020 06:06:09 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 198BC1DC24; Fri, 8 May 2020 15:04:41 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 5098A1DB8F for ; Fri, 8 May 2020 15:04:30 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 31F122013A0; Fri, 8 May 2020 15:04:30 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 74048201389; Fri, 8 May 2020 15:04:28 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4F0654030E; Fri, 8 May 2020 21:04:26 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: Hemant Agrawal Date: Fri, 8 May 2020 18:32:11 +0530 Message-Id: <20200508130211.14334-11-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508130211.14334-1-hemant.agrawal@nxp.com> References: <20200507104645.31990-1-hemant.agrawal@nxp.com> <20200508130211.14334-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v6 10/10] net/dpaa2: add the support for additional link speeds 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch adds the support for additional link speed supported by LX2160A platforms. Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 2 +- drivers/net/dpaa2/dpaa2_ethdev.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index 6ebbab4b80..c2214fbd50 100644 --- a/doc/guides/nics/features/dpaa2.ini +++ b/doc/guides/nics/features/dpaa2.ini @@ -4,7 +4,7 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] -Speed capabilities = P +Speed capabilities = Y Link status = Y Link status event = Y Queue start/stop = Y diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index d9960b01f7..1bab3b064c 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -284,6 +284,13 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->default_txportconf.ring_size = CONG_ENTER_TX_THRESHOLD; dev_info->default_rxportconf.ring_size = DPAA2_RX_DEFAULT_NBDESC; + if (dpaa2_svr_family == SVR_LX2160A) { + dev_info->speed_capa |= ETH_LINK_SPEED_25G | + ETH_LINK_SPEED_40G | + ETH_LINK_SPEED_50G | + ETH_LINK_SPEED_100G; + } + return 0; }