net: hns3: remove unnecessary updating port based VLAN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Incomplete
|
Undecided
|
Unassigned | ||
Ubuntu-20.04-hwe |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
dmesg show “Add port vlan failed.” and “PF failed(-22) to config VF’s VLAN” . Actually, the VLAN is successfully created. This led to an error in judgment.
[Steps to Reproduce]
1)echo 1 > /sys/class/
2)ip link set dev <pf_name> vf 0 vlan 1
3)
[Actual Results]
hns30000:
hns30000:7d:00.0:PF failed(-22)to config VF‘s VLAN
[Expected Results]
Not error print, VLAN creat success.
[Reproducibility]
must appear
[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required2022053
kernel version Linux ubuntu 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:28:43 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
[Resolution]
net: hns3: remove unnecessary updating port based VLAN
(https:/
description: | updated |
Changed in kunpeng920: | |
status: | Incomplete → New |
I have different error. Is there any patch needed too?
ubuntu@segers:~$ uname -a pci0000: 7c/0000: 7c:00.0/ 0000:7d: 00.0/sriov_ numvfs
Linux segers 5.13.0-51-generic #58~20.04.1-Ubuntu SMP Mon Jun 13 20:00:13 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@segers:~$ echo 1 | sudo tee /sys/devices/
1
ubuntu@segers:~$ sudo ip link set dev enp125s0f0v0 vf 0 vlan 1
RTNETLINK answers: Input/output error
ubuntu@segers:~$ dmesg | tail -3
[ 275.159698] hns3 0000:7d:01.0: finished initializing hclgevf driver
[ 275.161721] hns3 0000:7d:01.0: using random MAC address c6:a2:a3:37:50:27
[ 275.203320] hns3 0000:7d:01.0 enp125s0f0v0: renamed from eth0