From 475ff28951b69ce0c46514e8c6a6e8bfd91c5eb3 Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Sat, 23 Jun 2018 14:20:33 -0700 Subject: [PATCH] net/qede: remove primary MAC removal This was added to dev_stop when set MTU requested vport restart. We are not requiring vport restart any more with set MTU as it just needs vport to be inactive and doesn't need the port reconfigured. Fixes: d121a6b5f781 ("net/qede: fix VF MTU update") Cc: stable@dpdk.org Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_ethdev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 8bbfa95e38..b726e89d13 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -1355,9 +1355,6 @@ static void qede_dev_stop(struct rte_eth_dev *eth_dev) /* Disable traffic */ ecore_hw_stop_fastpath(edev); /* TBD - loop */ - if (IS_PF(edev)) - qede_mac_addr_remove(eth_dev, 0); - DP_INFO(edev, "Device is stopped\n"); } @@ -2096,8 +2093,6 @@ int qede_update_mtu(struct rte_eth_dev *eth_dev, uint16_t mtu) goto err; /* Restore config lost due to vport stop */ - qede_mac_addr_set(eth_dev, &qdev->primary_mac); - if (eth_dev->data->promiscuous) qede_promiscuous_enable(eth_dev); else @@ -2526,9 +2521,6 @@ static int qede_set_mtu(struct rte_eth_dev *dev, uint16_t mtu) dev->data->dev_started = 0; qede_dev_stop(dev); restart = true; - } else { - if (IS_PF(edev)) - qede_mac_addr_remove(dev, 0); } rte_delay_ms(1000); qdev->mtu = mtu; -- 2.20.1