428 Star 1.6K Fork 1.6K

GVPopenEuler/kernel

 / 详情

【openEuler-1.0-LTS/OLK-5.10/OLK-6.6】hns3网卡驱动在动态vlan模式下,可能出现VF无法收到带vlan报文的问题。

已完成
缺陷
创建于  
2024-04-01 12:00

【标题描述】
hns3网卡在开启动态vlan模式下(云核场景),PF配置了vlan,对于未配置vlan的VF,收不到带vlan的报文。

【环境信息】
硬件信息

  • E9000H
    软件信息
  • hns3当前版本均涉及
    网络信息
  • 如果有特殊组网,请提供网络拓扑信息
    输入图片说明

【问题复现步骤】
实际可以无需组bond。需在E9000H场景,通用服务器不涉及。
快速复现方法如下:
1、使能1个VF
2、选择一个PF移除驱动:
echo 1 > /sys/bus/pci/devices/0000:bd:00.0/remove
3、重新加载驱动并立刻配置vlan:
echo 1 > /sys/bus/pci/rescan ;ip link add link enp189s0f0 name vlan.300 type vlan id 300
4、预期结果,VF可以收到vlan 200(举例)的报文。

【实际结果】
VF无法收到vlan 200的报文。

【其他相关附件信息】
可以通过网卡的debugfs确认问题发生:
cat /sys/kernel/debug/hns3/0000:bd:00.0/vlan_config | grep I_PORT

异常值:
I_PORT_VLAN_FILTER: on
正常值:
I_PORT_VLAN_FILTER: off

评论 (2)

Yonglong Liu 创建了缺陷 1年前

Hi liuyonglong86, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

openeuler-ci-bot 添加了
 
sig/Kernel
标签
1年前
ci-robot 通过合并 Pull Request !5715: net: hns3: updates 2024.04.02任务状态待办的 修改为已完成 1年前
zhengzengkai 里程碑设置为24.03-Kernel-Develop 1年前
zhengzengkai 关联分支设置为OLK-6.6 1年前

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 陈浩-chen-hao418 Yonglong Liu-liuyonglong86
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助