From 88e584a60d48b4416ad35649c2468656b514a449 Mon Sep 17 00:00:00 2001 From: Sachin Saxena Date: Mon, 14 Sep 2020 19:51:18 +0530 Subject: [PATCH] net/dpaa2: fix misuse of interface index Dpaa2 pmd has no need to bound host interface for which we require if_index field. Setting it to 0 as unused. Fixes: 3e5a335d3f88 ("net/dpaa2: add basic operations") Cc: stable@dpdk.org Reported-by: Stephen Hemminger Signed-off-by: Sachin Saxena Reviewed-by: Ferruh Yigit --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 0e9f836e55..02daa4d250 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -241,8 +241,6 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) PMD_INIT_FUNC_TRACE(); - dev_info->if_index = priv->hw_id; - dev_info->max_mac_addrs = priv->max_mac_filters; dev_info->max_rx_pktlen = DPAA2_MAX_RX_PKT_LEN; dev_info->min_rx_bufsize = DPAA2_MIN_RX_BUF_SIZE; -- 2.20.1