Commit 7a3cace8 authored by Jian Shen's avatar Jian Shen Committed by Yang Yingliang
Browse files

net: hns3: refine mac address configure for PF



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Currently, the HNS3 driver sync and unsync mac address in function
hns3_set_rx_mode(). For PF, it adds and deletes mac address directly
in the path of dev_set_rx_mode(). If failed, it won't retry until
next calling of hns3_set_rx_mode(). On the other hand, if request
add and remove a same address many times at a short interval, each
request must be done one by one, can't be merged.
This patch refines it by recording the mac address in hns3_set_rx_mode(),
and updating mac address in the service task. If failed, it will retry
by the next calling of periodical service task. It also uses some
state to mask each mac address in the mac list, which can help merge
configure request for a same address.

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 d4404259
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment