[dpdk-stable] patch 'net/pfe: fix misuse of interface index' has been queued to stable release 19.11.6

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Oct 28 11:43:12 CET 2020


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 <sachin.saxena at nxp.com>
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 <stephen at networkplumber.org>
Signed-off-by: Sachin Saxena <sachin.saxena at nxp.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 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 <sachin.saxena at nxp.com>
 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 at dpdk.org
 
 Reported-by: Stephen Hemminger <stephen at networkplumber.org>
 Signed-off-by: Sachin Saxena <sachin.saxena at nxp.com>
@@ -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)
  {


More information about the stable mailing list