From patchwork Thu May 7 10:46:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 186290 Delivered-To: patch@linaro.org Received: by 2002:a92:8d81:0:0:0:0:0 with SMTP id w1csp3041076ill; Thu, 7 May 2020 03:49:17 -0700 (PDT) X-Google-Smtp-Source: APiQypKEaKRKlcnS8OI9ioChAbsDEK+qT2cGOM51qrI1C2s421T3Gh7wCxfhWlxRleBcOpCS5CHR X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr11542208eds.160.1588848557247; Thu, 07 May 2020 03:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588848557; cv=none; d=google.com; s=arc-20160816; b=MaOMBisDSVwKfIu2KE1xXP3JDn350IeTW6mXxbs25MhL6tr7FWftSpvX6GYJwuVppb 4iKkm748iEPLrRVtgsLkCnMvq6qGjQ8/fxGxATxoZRo4OEOxJB5byiPN3HhPRcQHYvP/ SnJWBTmhy44SOlKadE4HRLMyhDqOvB5X74BRK4f6+vA82SqUFLkYh/A+/KBp/zRhEgNa u5vI/0fqyDRv9AgSLToZLl0QPmlkhYfbXHslI4yopqfR+NKfbcBpIBHPBWqQcjaiTvl2 oRn+sWIFpHdJDQTVuy+zA/C9fZub8WA59KHpaH/2D0Zdb5cvYXS7f2Ds/oTqDryVWKnz YRYg== 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=IP7eZ63YM95a07586LlX/HoI5SdiHfGbNSCFEuEvE9Y=; b=ol6SFrqd93+0s73BGbHu+ni8nHd7pO1l1VkByeIM5pskouF+MrcmLwLQVz/YL9w5RE O2osRLmTRDKxctBXQyBzSFa9EQBtOKoZcWhBAEy/LNxTgMvOPqnUlSkV+ODzt1Iv7rga F7DHxhJ8jizb0nTwiurLy6nWbQ+YlC4QCIvzgnsOQ5q1bpNGRqK8QzNVHvxWDgr+diRY EYNiFWnbgqwttq/anJMw0KEn3HA29R+7GGBVmNwsBC8mN4CLtRPGhSx0UHQnra1eFACA vOLUPhDAKk9z0LRKuiSZXmuQyJ07TbrUcM5FosCEYdqJFVdwH2Sdb0QM4QWmitA2nmhX uPzw== 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 v3si3008401edf.513.2020.05.07.03.49.17; Thu, 07 May 2020 03:49:17 -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 06A2A1DBFD; Thu, 7 May 2020 12:49:05 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id EFB151DBE1; Thu, 7 May 2020 12:49:00 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AA3E5200386; Thu, 7 May 2020 12:49:00 +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 A67D02017FB; Thu, 7 May 2020 12:48:58 +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 0FFFA402D2; Thu, 7 May 2020 18:48:55 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: stable@dpdk.org, Rohit Raj Date: Thu, 7 May 2020 16:16:38 +0530 Message-Id: <20200507104645.31990-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200507104645.31990-1-hemant.agrawal@nxp.com> References: <20200504124118.22877-1-hemant.agrawal@nxp.com> <20200507104645.31990-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v4 2/9] 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 2cde55e7cc..4fc550a885 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);