402 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

支持hns roce 网口up/down状态的事件上报

已完成
需求 成员
创建于  
2022-11-02 15:35

【特性描述】
使得用户态roce可以获取当前的网络状态变化,从而进行异常处理
【特性竞争力】
提供网络状态的变化给用户,用户可以设计相应的处理程序提高网络鲁棒性
【硬件架构】
鲲鹏服务器RoCE板载网卡
【特性约束】
NA
【涉及仓库】
driver/infiniband/hw/hns
【交付个人/团队】
鲲鹏服务器板载网卡RoCE团队

评论 (2)

tcc@hello 创建了需求

Hi hellotcc, 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: @YangYingliang , @成坚 (CHENG Jian) , @jiaoff , @zhengzengkai , @刘勇强 , @wangxiongfeng , @朱科潜 , @WangShaoBo , @lujialin , @wuxu_buque , @Xu Kuohai , @冷嘲啊 , @Lingmingqiang , @yuzenghui , @juntian , @OSSIM , @陈结松 , @whoisxxx , @koulihong , @刘恺 , @hanjun-guo , @woqidaideshi , @Chiqijun , @Kefeng , @ThunderTown , @AlexGuo , @kylin-mayukun , @Zheng Zucheng , @柳歆 , @Jackie Liu , @zhujianwei001 , @郑振鹏 , @SuperSix173 , @colyli , @Zhang Yi , @htforge , @Qiuuuuu , @Yuehaibing , @xiehaocheng , @guzitao , @CTC-Xibo.Wang , @zhanghongchen , @chen wei , @Jason Zeng , @Xie XiuQi

openeuler-ci-bot 添加了
 
sig/Kernel
标签

使用ibv_asyncwatch进行测试,当出现网口的up/down事件时,会对事件名进行打印,如下:

[root@localhost ~]# ibv_asyncwatch -d hns_0 &
[1] 296330
[root@localhost ~]# hns_0: async event FD 4

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# rdma link
link mlx5_0/1 state ACTIVE physical_state LINK_UP netdev eth2
link mlx5_1/1 state ACTIVE physical_state LINK_UP netdev eth3
link hns_0/1 state ACTIVE physical_state LINK_UP netdev eth4
link hns_1/1 state ACTIVE physical_state LINK_UP netdev eth6
link hns_2/1 state ACTIVE physical_state LINK_UP netdev eth8
link hns_3/1 state DOWN physical_state DISABLED netdev eth10
[root@localhost ~]# ifconfig eth4 down
  event_type IBV_EVENT_PORT_ERR (10), port 1
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ifconfig eth4 up
[root@localhost ~]#   event_type IBV_EVENT_PORT_ACTIVE (9), port 1

登录 后才可以发表评论

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

搜索帮助