[hns3-0114]net: hns3: fix VF ID issue for setting VF VLAN
Bug #1859576 reported by
Fred Kimmy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Unassigned | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
Previously, when set VF VLAN with command "ip link set <pf name>
vf <vf id> vlan <vlan id>", the VF ID 0 is handled as PF incorrectly,
which should be the first VF.
[Steps to Reproduce]
1.enable 31 VF for PF0, load VF driver.
2.ip link set eth0 vf 31 vlan 100
[Actual Results]
add VF VLAn fails
[Expected Results]
add VF VLAn ok
[Reproducibility]
Inevitably
[Additional information]
Hardware: D06
Firmware: NA
Kernel: NA
[Resolution]
This patch fixes it by using hclge_get_
1c9855085eba net: hns3: fix VF ID issue for setting VF VLAN
description: | updated |
tags: | added: ikeradar |
tags: | removed: ikeradar |
Changed in kunpeng920: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This patch fixes 21e043cd8124 ("net: hns3: fix set port based VLAN for PF"), which landed in mainline kernel since v5.2. This is not needed for v4.15 based kernel.