From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8D165A0C43; Fri, 22 Oct 2021 11:22:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3723E4118B; Fri, 22 Oct 2021 11:22:00 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 972E44069D for ; Fri, 22 Oct 2021 11:21:58 +0200 (CEST) Received: from dggeme756-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HbJj35jppzZcN2; Fri, 22 Oct 2021 17:20:07 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggeme756-chm.china.huawei.com (10.3.19.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.15; Fri, 22 Oct 2021 17:21:56 +0800 From: "Min Hu (Connor)" To: CC: , Date: Fri, 22 Oct 2021 17:19:54 +0800 Message-ID: <20211022092006.60959-4-humin29@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211022092006.60959-1-humin29@huawei.com> References: <20211022092006.60959-1-humin29@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeme756-chm.china.huawei.com (10.3.19.102) X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH 03/14] net/hns3: rename removing multicast address function in PF 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" From: Huisong Li This patch renames hns3_remove_mc_addr() to hns3_remove_mc_mac_addr(). Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_ethdev.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index 8311921f1d..2d80b8454c 100644 --- a/drivers/net/hns3/hns3_ethdev.c +++ b/drivers/net/hns3/hns3_ethdev.c @@ -97,8 +97,8 @@ static bool hns3_update_link_status(struct hns3_hw *hw); static int hns3_add_mc_mac_addr(struct hns3_hw *hw, struct rte_ether_addr *mac_addr); -static int hns3_remove_mc_addr(struct hns3_hw *hw, - struct rte_ether_addr *mac_addr); +static int hns3_remove_mc_mac_addr(struct hns3_hw *hw, + struct rte_ether_addr *mac_addr); static int hns3_restore_fec(struct hns3_hw *hw); static int hns3_query_dev_fec_info(struct hns3_hw *hw); static int hns3_do_stop(struct hns3_adapter *hns); @@ -1646,7 +1646,7 @@ hns3_remove_mc_addr_common(struct hns3_hw *hw, struct rte_ether_addr *mac_addr) char mac_str[RTE_ETHER_ADDR_FMT_SIZE]; int ret; - ret = hns3_remove_mc_addr(hw, mac_addr); + ret = hns3_remove_mc_mac_addr(hw, mac_addr); if (ret) { hns3_ether_format_addr(mac_str, RTE_ETHER_ADDR_FMT_SIZE, mac_addr); @@ -1825,7 +1825,7 @@ hns3_configure_all_mac_addr(struct hns3_adapter *hns, bool del) if (rte_is_zero_ether_addr(addr)) continue; if (rte_is_multicast_ether_addr(addr)) - ret = del ? hns3_remove_mc_addr(hw, addr) : + ret = del ? hns3_remove_mc_mac_addr(hw, addr) : hns3_add_mc_mac_addr(hw, addr); else ret = del ? hns3_remove_uc_addr_common(hw, addr) : @@ -1921,7 +1921,7 @@ hns3_add_mc_mac_addr(struct hns3_hw *hw, struct rte_ether_addr *mac_addr) } static int -hns3_remove_mc_addr(struct hns3_hw *hw, struct rte_ether_addr *mac_addr) +hns3_remove_mc_mac_addr(struct hns3_hw *hw, struct rte_ether_addr *mac_addr) { struct hns3_mac_vlan_tbl_entry_cmd req; struct hns3_cmd_desc desc[3]; @@ -2145,7 +2145,7 @@ hns3_set_mc_mac_addr_list(struct rte_eth_dev *dev, for (i = 0; i < rm_addr_num; i++) { num = rm_addr_num - i - 1; addr = &rm_addr_list[num]; - ret = hns3_remove_mc_addr(hw, addr); + ret = hns3_remove_mc_mac_addr(hw, addr); if (ret) { rte_spinlock_unlock(&hw->lock); return ret; @@ -2186,7 +2186,7 @@ hns3_configure_all_mc_mac_addr(struct hns3_adapter *hns, bool del) if (!rte_is_multicast_ether_addr(addr)) continue; if (del) - ret = hns3_remove_mc_addr(hw, addr); + ret = hns3_remove_mc_mac_addr(hw, addr); else ret = hns3_add_mc_mac_addr(hw, addr); if (ret) { -- 2.33.0