net: hns3: move some set_bit statement into hclge_prepare_mac_addr
authorWeihang Li <liweihang@hisilicon.com>
Sat, 2 Feb 2019 14:39:31 +0000 (22:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Feb 2019 16:24:08 +0000 (08:24 -0800)
commit3a586422a5533a6c78376a779860f48ed72b9d83
tree47693ef3cc3ff2e62606404643e30137d5f6ad1e
parentb671b723e0d235b516dc33c163e6296df9b4f0ca
net: hns3: move some set_bit statement into hclge_prepare_mac_addr

This patch does not change the code logic. There are some same
set_bit statements called by add/rm_uc/mc_addr_common, and move
this statements into hclge_prepare_mac_addr to reduce duplicate
code.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.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