[hns3-0114]net: hns3: fix VF ID issue for setting VF VLAN

Bug #1859576 reported by Fred Kimmy
6
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_vf_vport() to get to proper vport of VF.

1c9855085eba net: hns3: fix VF ID issue for setting VF VLAN

Ike Panhc (ikepanhc)
description: updated
tags: added: ikeradar
Revision history for this message
Ike Panhc (ikepanhc) wrote :

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.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

In focal kernel since 5.4.0-13.16

Changed in kunpeng920:
status: New → Fix Committed
Ike Panhc (ikepanhc)
tags: removed: ikeradar
Ike Panhc (ikepanhc)
Changed in kunpeng920:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.