net/hns3: extract common function to initialize MAC address
authorHuisong Li <lihuisong@huawei.com>
Sat, 22 Jan 2022 01:51:30 +0000 (09:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Jan 2022 13:39:12 +0000 (14:39 +0100)
commit2665a92054019bdb73cd2c43e5a581d081772915
tree4d404e9cab9b1796e519dccb57bb8cf87605a4d4
parent67d0b17947d6936147f4cbfff6ff938884f14776
net/hns3: extract common function to initialize MAC address

The code logic to initialize "data->mac_addrs" for PF and VF is similar.
This patch extracts a common API to initialize it to improve code
maintainability.

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