From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E9BAA04DD for ; Wed, 28 Oct 2020 11:47:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 86FEBC9CC; Wed, 28 Oct 2020 11:47:56 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 1C86B4C90 for ; Wed, 28 Oct 2020 11:47:52 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id n15so5164052wrq.2 for ; Wed, 28 Oct 2020 03:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1gvskAB3XnmrThd8hT7boUdtrYYejDy0MCC/RanI3Fc=; b=Ot3uDEOnTEo//cepBaXFq+SGkZrmTQH7KWPPW7S8WYZ/nZrce2dYdlFtLNKDB8yE54 B1dX1cYwXJcpbsPv6/z3ll/Q9b0CaAlNS3fnQYb7TesEGxps98c3+SdarIrW9xCpY0Fs QbdDJpxOuwO1xS0+x3NYdsVrJM4TR3atMYIgt+iSUtn+cM4/WPUFNuU7fx/s2Q0f7cyy Fc6IZao1jpTYoLXTRzvrgHMIvYvDtVu1rrJc1KRjqFvypIX0btdkQMMjemjTnIftSiKc MlhiF8l+tFNkR1YED9DGyy2WAcPT08V3j7F0gz2z1fuYR5nKjUaL34m3g4vBTIR54DxI AooQ== 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:mime-version:content-transfer-encoding; bh=1gvskAB3XnmrThd8hT7boUdtrYYejDy0MCC/RanI3Fc=; b=nLTWHv6hPT4qNGe9EpE7KrOHhkkEU2cUiaSKJ+GOKv7uMyBXEeyKXc1ydJzGqmPz3L OoOwqwbXaoSAT0/oretqmKuVwzpiRlwl9Sp4xgbS3DiuIrXweyWpceSaBtwmMmnKhIkX D1BhAkE3miAbeRjaqQm9MhYMX9ELVHj40tnLp4mmoga+zkno4eL+921i/eOroPRWNAiD WeAsv2o73G6MkESF6mqR2Q0HEeDUKCZTpqfTaJbgTVVuiw859hvfYqZforKWop4D/Hfc 5HdcGV++W0E4klEAGJB3mBXzMpkcBjhUTyECXKF6sr80/D3qU4/0JEjvHTpBuVuR1li0 5bZA== X-Gm-Message-State: AOAM530mWs+ccruoxtTCEUNTZTvLNftBsV1FKiE0ofhtTKISa7Lf294F sMr1ahpfErPAnsxqfzGFux0= X-Google-Smtp-Source: ABdhPJxmZMbPwpIAc/puJ6JSgCRJR7gKf+10ypB/LrSHxoWKOV5jGIy5DaVaxYsKCdP39NscCIxs3A== X-Received: by 2002:adf:e8c7:: with SMTP id k7mr8066738wrn.102.1603882071859; Wed, 28 Oct 2020 03:47:51 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id c130sm5750112wma.17.2020.10.28.03.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 03:47:51 -0700 (PDT) From: luca.boccassi@gmail.com To: Sachin Saxena Cc: Stephen Hemminger , Ferruh Yigit , dpdk stable Date: Wed, 28 Oct 2020 10:43:12 +0000 Message-Id: <20201028104606.3504127-33-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201028104606.3504127-1-luca.boccassi@gmail.com> References: <20201028104606.3504127-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/pfe: fix misuse of interface index' has been queued to stable release 19.11.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/30/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 5079b7514da6e7f4a5b08b2a0cfcedf0b64314e6 Mon Sep 17 00:00:00 2001 From: Sachin Saxena Date: Mon, 14 Sep 2020 19:52:17 +0530 Subject: [PATCH] net/pfe: fix misuse of interface index [ upstream commit 3351a1036ecfbf0d1fdf18269c0073543ea69d0c ] Pfe pmd has no need to bound host interface for which we require if_index field. Setting it to 0 as unused. Fixes: fe38ad9ba73e ("net/pfe: add device start/stop") Reported-by: Stephen Hemminger Signed-off-by: Sachin Saxena Reviewed-by: Ferruh Yigit --- drivers/net/pfe/pfe_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/pfe/pfe_ethdev.c b/drivers/net/pfe/pfe_ethdev.c index b1de866d34..5a231918a1 100644 --- a/drivers/net/pfe/pfe_ethdev.c +++ b/drivers/net/pfe/pfe_ethdev.c @@ -429,9 +429,6 @@ static int pfe_eth_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) { - struct pfe_eth_priv_s *internals = dev->data->dev_private; - - dev_info->if_index = internals->id; dev_info->max_mac_addrs = PFE_MAX_MACS; dev_info->max_rx_queues = dev->data->nb_rx_queues; dev_info->max_tx_queues = dev->data->nb_tx_queues; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-10-28 10:35:12.824056350 +0000 +++ 0033-net-pfe-fix-misuse-of-interface-index.patch 2020-10-28 10:35:11.476829611 +0000 @@ -1,14 +1,15 @@ -From 3351a1036ecfbf0d1fdf18269c0073543ea69d0c Mon Sep 17 00:00:00 2001 +From 5079b7514da6e7f4a5b08b2a0cfcedf0b64314e6 Mon Sep 17 00:00:00 2001 From: Sachin Saxena Date: Mon, 14 Sep 2020 19:52:17 +0530 Subject: [PATCH] net/pfe: fix misuse of interface index +[ upstream commit 3351a1036ecfbf0d1fdf18269c0073543ea69d0c ] + Pfe pmd has no need to bound host interface for which we require if_index field. Setting it to 0 as unused. Fixes: fe38ad9ba73e ("net/pfe: add device start/stop") -Cc: stable@dpdk.org Reported-by: Stephen Hemminger Signed-off-by: Sachin Saxena @@ -18,10 +19,10 @@ 1 file changed, 3 deletions(-) diff --git a/drivers/net/pfe/pfe_ethdev.c b/drivers/net/pfe/pfe_ethdev.c -index 368acfa554..97356d2b0b 100644 +index b1de866d34..5a231918a1 100644 --- a/drivers/net/pfe/pfe_ethdev.c +++ b/drivers/net/pfe/pfe_ethdev.c -@@ -427,9 +427,6 @@ static int +@@ -429,9 +429,6 @@ static int pfe_eth_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) {