From patchwork Fri Mar 6 09:57:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 184237 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp7231319ile; Fri, 6 Mar 2020 01:59:50 -0800 (PST) X-Google-Smtp-Source: ADFU+vushYz20mJv4hzX86uzJYoXhJce1UR9nzckW19QPbuxWB+NHpsVh5Cc6A2ZUCu272q/IwN5 X-Received: by 2002:aa7:c550:: with SMTP id s16mr2314822edr.370.1583488790582; Fri, 06 Mar 2020 01:59:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583488790; cv=none; d=google.com; s=arc-20160816; b=q8LZVPZJlgY9NpWTRCCG8UKLcixKD01qb9ClsjBdpmzkAKgNRUqbo8sMvQS0p3HTsc qvB/71qYcHwmu0DORt/KiiIkK94Ox2m6Lwfu05eWJ1Oityqw8v98j5JtlaKC0NWFlDxy cOEenuR5w4c7N1XHxJsdCtXHueevgLrVvxCMfSft97crj62LEFSqm2sGBWkYXNFDoKMr GsZViRax46MwH6DPBkHt0AbKjJ1827wL+V38efx2+vktdSgWbMo+K9gNDXmxJfVE84g4 lwU3pR/3Z87Sgl6V1ic+kQ5CkKAwuz8vsy1XzLG9TOZ2eS2zwHRjCTAwWu3JV5BKFxBr xAog== 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=u0/SIgr2iQ1PA4A1PVHA3K8WOmixGjHG4eCFkNxJbyJ2aFRfI07+9Rq2T/8279wJee 8c2IH1PyUUUgtlc873u06eQpIgruXXvRjsZShO16Yf3Zm+V1OHA66A6fWInuMysWGoId oG9nY9Y/aoEqKboPhhkgRCd4DOMBx6lJgAEhYXhvr9Q3hrivZ01aqBL/l8m5IHcMQzg6 c4bYtZpURvOL+VmT83YLJpZm1AimQB6UfyoP4xU4pO/kVijl/B8hdWfJJKB1umkyNGSx i64En9t4B6r6y3MzMZybZvcvQw71y5nMi3BPGx91Gi/A2WStgaVyUJWTWWM5UF2vfjIJ +hpQ== 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 g9si1418302edn.14.2020.03.06.01.59.50; Fri, 06 Mar 2020 01:59:50 -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 BDA361BFEE; Fri, 6 Mar 2020 10:59:45 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 0E0271BFEB; Fri, 6 Mar 2020 10:59:45 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A1BD9200AD8; Fri, 6 Mar 2020 10:59:44 +0100 (CET) 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 1F789200AD2; Fri, 6 Mar 2020 10:59:42 +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 342024029B; Fri, 6 Mar 2020 17:59:38 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stable@dpdk.org, Rohit Raj Date: Fri, 6 Mar 2020 15:27:27 +0530 Message-Id: <20200306095742.18080-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200306095742.18080-1-hemant.agrawal@nxp.com> References: <20200302145829.27808-1-hemant.agrawal@nxp.com> <20200306095742.18080-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 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);