Commit ea224d14 authored by Guojia Liao's avatar Guojia Liao Committed by Yang Yingliang
Browse files

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: default avatarGuojia Liao <liaoguojia@huawei.com>
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 7a3cace8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment