From patchwork Mon Jan 11 19:02:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Boyer X-Patchwork-Id: 86346 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D1D21A04B5; Mon, 11 Jan 2021 20:02:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B55314102D; Mon, 11 Jan 2021 20:02:39 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 0611F141029 for ; Mon, 11 Jan 2021 20:02:38 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id g3so350593plp.2 for ; Mon, 11 Jan 2021 11:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cI3rgAbwisSV2D5k2lKJEWxTrseF14za2EWgKtbU1pQ=; b=Kn3ETVZ0i3shyVEUA/GJQMzIYyMXx8nPU3ZiXfuiLeqlahKCS9xnryYkJOKP9/KR2s F7tiy/w06FV5J/gsrea1F4nIVgOpzLdngjFC85yVQh79HaH/XE8J7hIONDm6Pe6uiGm/ 1oYhOW2PolZU2t6k7B/RU0c2omQqbn7aofswDpVxCewlWucg0ZW3hCPy8IUFZolXigJh +jlQ4dEhMHfHwM2kR4RcZi2ZyxiJ+jxc7crtSwYOs8LC/CHexv054N09TBot7rfeTcJv u/pl26+EZqx2pogh6VnkP1eF25h0ptGzzC7T1eTtKqcP9SJei3pw6gxRahCZdB5RKGLs +4rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cI3rgAbwisSV2D5k2lKJEWxTrseF14za2EWgKtbU1pQ=; b=b1o4DQC5G0urd3/TP7QBVaeU2L58gKQv6qXiG9taexPUYCEi7oIGuVNjKw2zd9YxDc tChNasTuqOOBpXbZy28+SA8nxCk6jsafxzXIKb203chDhoLQASSuNyLLHt9eTRvaSZKu ydecMu3c0DTn9vYFwiu9tJUhiIfo8S2QMtjmUvLo9pcExobnZY+jDvWaAz6Qb2jHxCfe 82TW7r9RqFOiQ0G2vJru8n3I2eNlXlKYok/WcbUvVy9LommqzU/1yCaj89sb67OgEl7l iHRmihQPhgGW1vh0+/h5YbGb4PJAjYjtnuN7qX3mM3cLcgZgfRULZT0cbDFvxnnXb6sI JXng== X-Gm-Message-State: AOAM531osglBgWTtXBEYo4KHElxSjl71QCa9x+7TAaBvWtQzyk53x4HC Q5439W7jKuvUS6LWhXLstTdNJ/nrVMOYTA== X-Google-Smtp-Source: ABdhPJwidRfBVZBKkQ1nTq+nCBoqEhje3nvgN3Hcoybu8REmzzp31m52Y6kpE83GRfSRZrm+ZqmF4A== X-Received: by 2002:a17:902:cb95:b029:dc:3a38:c7df with SMTP id d21-20020a170902cb95b02900dc3a38c7dfmr679965ply.49.1610391757062; Mon, 11 Jan 2021 11:02:37 -0800 (PST) Received: from driver-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id x1sm361858pfc.112.2021.01.11.11.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:02:36 -0800 (PST) From: Andrew Boyer To: dev@dpdk.org Cc: Alfredo Cardigliano , Andrew Boyer , Neel Patel Date: Mon, 11 Jan 2021 11:02:07 -0800 Message-Id: <20210111190209.70928-5-aboyer@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210111190209.70928-1-aboyer@pensando.io> References: <20210111190209.70928-1-aboyer@pensando.io> Subject: [dpdk-dev] [PATCH 4/6] net/ionic: don't add station MAC filter on init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 673f789f3..f39b54e8e 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; }