net: hns3: add 'QoS' support for port based VLAN configuration

Bug #1983164 reported by Fred Kimmy
6
This bug affects 1 person
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/net/eno2/device/sriov_numvfs
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 required2022031015626):
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

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

Patch b44eb28d44a6 hits mainline kernel since 5.14. It shall be in focal HWE kernel. I will verify that.

Changed in kunpeng920:
assignee: nobody → Ike Panhc (ikepanhc)
Revision history for this message
Ike Panhc (ikepanhc) wrote :

Patch b44eb28d44a6 is in Ubuntu focal HWE kernels. Set to "Fix released".

Changed in kunpeng920:
status: New → 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.