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:Jian Shen <shenjian15@huawei.com> Reviewed-by:
Peng Li <lipeng321@huawei.com> Reviewed-by:
Zhong Zhaohui <zhongzhaohui@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment