From patchwork Mon Mar 2 14:58:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 184073 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp2191587ile; Mon, 2 Mar 2020 01:26:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwRqZcH1nJ0cPb/PVqONH0BEX9i3khTlpdCSys8x/lzcs7uCIEa8wshaKnC19e1qQOfNJf0 X-Received: by 2002:aa7:c1da:: with SMTP id d26mr16410328edp.3.1583141201819; Mon, 02 Mar 2020 01:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583141201; cv=none; d=google.com; s=arc-20160816; b=n1tMk3pxsKJNoTshkgUpjncYqrlM9b3oaDXiRo2EEgwHl4279F2luZ2TxZTgvvTtvC lzdHwG/uSQP0/Yx5zPnsDcQydhkkl0sc08wAGMXeaIGHDujyXsI+x7VunryJXCdHbjCF L7If9WYEhB7i/pRD+AbZ0J9m+13Ac8Z+hInTAcFkxwtqI512HZI/ngW6vNpVOfxVgETU 0qBeKEOJIQC7i4UVdwDQG5pIR8JogsAcpzdKbOucjJ3Sg67WiJE2JUWA0X4u3pFlaGC2 4f0BPoLtKHB7Vm9yVRl/B9iBjOqfH8Nu7gkHFDAN6HIFEykKBgzq/JLCdBccu3VmdafB tQDQ== 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=iH69F+1bHovb2FtykibUQ/uB83A9jEN0+4NK0isxprc=; b=Kc/9I2SQtsBOwQdoevyl6YRCsVzqrAkrntY99o/JaKj2UnlhHTFIFjXz2Gp4sYzcZA uDqYlbxf32OHyvKKQRf058ltPoE6Kp/efxMKaB8l9uYqpbO1FSAqV+m7fmJIUUmtVwlE pBXo5hi2WLPMowtLFt3kp8dheJKjiOYaSnlGYsbTHaSRxDQt/vTjjbJstViYrg8r6hzc 9mNy7rk6NDZx/mahFANilxiZlKW3cX21rvBt+Gmv0uSy2mKwPOssgoiL8Q1bAsMIGaRw JB4nHliG1wtSh4CKNsuilVy/orGX0Me+TLeGBQUka0dXNSrfL8OZ73OHsze8NDzejqmT CGTQ== 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 k23si6414033ejc.528.2020.03.02.01.26.41; Mon, 02 Mar 2020 01:26:41 -0800 (PST) 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 DC57D5681; Mon, 2 Mar 2020 10:26:36 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id CFB1731FC; Mon, 2 Mar 2020 10:26:34 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ACE691A0FAA; Mon, 2 Mar 2020 10:26:34 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2D33F1A02D7; Mon, 2 Mar 2020 10:26:32 +0100 (CET) Received: from bf-netperf1.ap.com (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5B1704029E; Mon, 2 Mar 2020 17:26:28 +0800 (SGT) From: Hemant Agrawal To: ferruh.yigit@intel.com Cc: dev@dpdk.org, stable@dpdk.org, Rohit Raj Date: Mon, 2 Mar 2020 20:28:14 +0530 Message-Id: <20200302145829.27808-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200302145829.27808-1-hemant.agrawal@nxp.com> References: <20200302145829.27808-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 01/16] net/dpaa2: fix 10g port negotiation issue 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" From: Rohit Raj Fixed 10g port negotiation issue with another 10G/non 10G port. Initialize the port link speed. Fixes: c5acbb5ea20e ("net/dpaa2: support link status event") Cc: stable@dpdk.org Signed-off-by: Rohit Raj --- drivers/net/dpaa2/dpaa2_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 2cde55e7c..4fc550a88 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -553,9 +553,6 @@ dpaa2_eth_dev_configure(struct rte_eth_dev *dev) if (rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER) dpaa2_vlan_offload_set(dev, ETH_VLAN_FILTER_MASK); - /* update the current status */ - dpaa2_dev_link_update(dev, 0); - return 0; } @@ -1757,6 +1754,7 @@ dpaa2_dev_set_link_up(struct rte_eth_dev *dev) /* changing tx burst function to start enqueues */ dev->tx_pkt_burst = dpaa2_dev_tx; dev->data->dev_link.link_status = state.up; + dev->data->dev_link.link_speed = state.rate; if (state.up) DPAA2_PMD_INFO("Port %d Link is Up", dev->data->port_id);