From 9c3cc2fc09221601eff5c76968eab13fcc35b0bc Mon Sep 17 00:00:00 2001 From: Andrew Boyer Date: Mon, 11 Jan 2021 11:02:07 -0800 Subject: [PATCH] net/ionic: do not add station MAC filter on init The address is not needed in the firmware. This reduces the startup time a bit. Signed-off-by: Andrew Boyer Signed-off-by: Neel Patel --- drivers/net/ionic/ionic_lif.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/net/ionic/ionic_lif.c b/drivers/net/ionic/ionic_lif.c index 673f789f3f..f39b54e8ef 100644 --- a/drivers/net/ionic/ionic_lif.c +++ b/drivers/net/ionic/ionic_lif.c @@ -1469,24 +1469,8 @@ ionic_station_set(struct ionic_lif *lif) if (err) return err; - if (!rte_is_zero_ether_addr((struct rte_ether_addr *) - lif->mac_addr)) { - IONIC_PRINT(INFO, "deleting station MAC addr"); - - ionic_lif_addr_del(lif, lif->mac_addr); - } - memcpy(lif->mac_addr, ctx.comp.lif_getattr.mac, RTE_ETHER_ADDR_LEN); - if (rte_is_zero_ether_addr((struct rte_ether_addr *)lif->mac_addr)) { - IONIC_PRINT(NOTICE, "empty MAC addr (VF?)"); - return 0; - } - - IONIC_PRINT(DEBUG, "adding station MAC addr"); - - ionic_lif_addr_add(lif, lif->mac_addr); - return 0; } -- 2.20.1