Commit 190cd8a
net: hns3: refine the process when PF set VF VLAN
Currently, when PF set VF VLAN, it sends notify mailbox to VF
if VF alive. VF stop its traffic, and send request mailbox
to PF, then PF updates VF VLAN. It's a bit complex. If VF is
killed before sending request, PF will not set VF VLAN without
any log.
This patch refines the process, PF can set VF VLAN direclty,
and then notify the VF. If VF is resetting at that time, the
notify may be dropped, so VF should query it after reset finished.
Fixes: 92f11ea ("net: hns3: fix set port based VLAN issue for VF")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 1932a62 commit 190cd8a
File tree
2 files changed
+18
-5
lines changed- drivers/net/ethernet/hisilicon/hns3
- hns3pf
- hns3vf
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8993 | 8993 | | |
8994 | 8994 | | |
8995 | 8995 | | |
| 8996 | + | |
| 8997 | + | |
| 8998 | + | |
| 8999 | + | |
8996 | 9000 | | |
8997 | 9001 | | |
8998 | 9002 | | |
8999 | 9003 | | |
9000 | | - | |
| 9004 | + | |
| 9005 | + | |
9001 | 9006 | | |
9002 | 9007 | | |
9003 | 9008 | | |
| |||
10250 | 10255 | | |
10251 | 10256 | | |
10252 | 10257 | | |
10253 | | - | |
| 10258 | + | |
| 10259 | + | |
| 10260 | + | |
| 10261 | + | |
10254 | 10262 | | |
10255 | 10263 | | |
10256 | 10264 | | |
10257 | 10265 | | |
10258 | | - | |
10259 | | - | |
10260 | | - | |
| 10266 | + | |
| 10267 | + | |
| 10268 | + | |
10261 | 10269 | | |
10262 | 10270 | | |
10263 | 10271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2862 | 2862 | | |
2863 | 2863 | | |
2864 | 2864 | | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2865 | 2870 | | |
2866 | 2871 | | |
2867 | 2872 | | |
| |||
0 commit comments