net: hns3: opmitize the table entry restore when resetting
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently, the HNS3 would remove all vlan/uc mac/mc mac table entry no matter what kind of reset had triggered, and restore them after reset done. Based on the analysis of different kind of reset, the entry table removing and restoring will take some change as below: 1.IMP/GLOBAL reseet HW would clear all hw table when resetting. -PF need to restore the table entry in sw list after reset done. -VF need to send a message to PF, request to restore table entry. 2.PF function reset/PF FLR reset/VF function reset In this case, reset as a status change and the table entry had no change. -So PF and VF needn't to take any operation on the table entry. 3.VF FLR reset PF would get a message when VF was in FLR status. Due to PF didn't know what kink of VF FLR status(init/uninit/reset). so PF would clear VF table entry and reclaim resources of table entry. -If VF init, PF would clear all the sw list avoid the sw list leftover. -If VF uninit, PF do nothing after clear VF table entry. -If VF reset, VF would send a message to PF, and request to restore the table entry in sw list. Signed-off-by:Guojia Liao <liaoguojia@huawei.com> 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