From: Sachin Saxena Date: Mon, 14 Sep 2020 14:21:18 +0000 (+0530) Subject: net/dpaa2: fix misuse of interface index X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=88e584a60d48b4416ad35649c2468656b514a449;p=dpdk.git 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 --- 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;