Commit 26640c26 authored by Jian Shen's avatar Jian Shen Committed by Yang Yingliang
Browse files

net: hns3: refine mac address configure for VF



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Currently, the HNS3 driver sync and unsync mac address in function
hns3_set_rx_mode(). For VF, it sends mailbox messages to PF to
request adding or deleting mac address in the path of function
hns3_set_rx_mode(), no matter the address is configured success.
This patch refines it by sending the mac address configure request
in the service task of VF, and adding or deleting these mac
addresses in the service task. Either is failed, it will retry in
the next schedule of service task.

Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Reviewed-by: default avatarPeng Li <lipeng321@huawei.com>
Reviewed-by: default avatarZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 2f487c11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment