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: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