From 3351a1036ecfbf0d1fdf18269c0073543ea69d0c 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 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 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 368acfa554..97356d2b0b 100644 --- a/drivers/net/pfe/pfe_ethdev.c +++ b/drivers/net/pfe/pfe_ethdev.c @@ -427,9 +427,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