net: hns3: add 'QoS' support for port based VLAN configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Ike Panhc | ||
Ubuntu-20.04-hwe |
Fix Released
|
Undecided
|
Ike Panhc |
Bug Description
[Bug Description]
Create a VF and set the PVID to 55. The peer end sends packets through the related commands about mz. The non-VLAN info packets should not be received, but we found the VF received the packets.
[Steps to Reproduce]
1) Enable VF
echo 1 > /sys/class/
2) Set the PVID to 55
ip link set eno2 vf 0 vlan 55 (ip link set <pf_name> vf <vf_id> vlan <vlan_id>)
3) Peer end send common non-VLAN packets, and no packets are expected to be received.
mz eno2 -t ip sp=5001,dp=5003 -b ba:7f:32:1a:b8:37 -p 1000 -c 500
(mz <ethx> -t ip sp=5001,dp=5003 -b <dst_mac> -p 1000 -c 500)
[Actual Results]
The local VF can receive packets.
[Expected Results]
No packets are expected to be received. Packets that do not belong to the VLAN should be filtered out.
[Reproducibility]
High probability
[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required2022031
OS:Ubuntu 20.04.3 LTS
Linux tx 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:08 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
[Resolution]
b44eb28d44a6 net: hns3: add 'QoS' support for port based VLAN configuration
Patch b44eb28d44a6 hits mainline kernel since 5.14. It shall be in focal HWE kernel. I will verify that.