]> git.droids-corp.org - dpdk.git/commitdiff
net/hns3: rename multicast address removal function
authorHuisong Li <lihuisong@huawei.com>
Fri, 22 Oct 2021 09:19:54 +0000 (17:19 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 1 Nov 2021 17:31:07 +0000 (18:31 +0100)
This patch renames hns3_remove_mc_addr() to hns3_remove_mc_mac_addr().

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c

index 0af861a8a7f80a4728068a529a7ea20482d09ec9..4d692639f1f28db1a53c848aaa0564c17065cf8b 100644 (file)
@@ -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) {