net: hns3: refactor out hclge_rm_vport_all_mac_table()
authorHao Chen <chenhao288@hisilicon.com>
Fri, 12 Feb 2021 03:24:17 +0000 (11:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 21:13:15 +0000 (13:13 -0800)
commit80a9f3f1fa81c75b45c9073b46372ec7ee55fedf
tree5371f01323828f9af40230be1d057e2f875abd00
parent5fd0e7b4f7bf2c3d22ee8c973b215de9010eb45c
net: hns3: refactor out hclge_rm_vport_all_mac_table()

hclge_rm_vport_all_mac_table() is bloated, so split it into
separate functions for readability and maintainability.

Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c