美文网首页
mellanox SRIOV

mellanox SRIOV

作者: 分享放大价值 | 来源:发表于2020-06-06 21:24 被阅读0次

a. Make sure that SR-IOV is enabled in the BIOS of the specific server.

b. vi /boot/grub/grub.conf or vi /boot/grub2/grub.cfg ==> intel_iommu=on
对于我们:
step to update grub.cfg in CentOS
vi /etc/default/grub ==> intel_iommu=on for example :GRUB_CMDLINE_LINUX=" console=tty0 net.ifnames=0 biosdevname=0 rootdelay=90 nomodeset root=UUID=7c3de344-bb4f-4c95-8127-3b2f1e435e8d intel_iommu=on "
update-grub

c. mlnxofedinstall (http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers 不同网卡,不同操作系统,需要的安装包不同。
比如我们的环境下下载此安装包MLNX_OFED_LINUX-4.4-1.0.0.0-ubuntu16.04-x86_64,解压,进入目录执行./mlnxofedinstall)

d. Enable SR-IOV on the Firmware

1. mst start
2. mlxconfig -d /dev/mst/mt4115_pciconf0 q
3. mlxconfig -d /dev/mst/mt4115_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=4 
4. 查看对于的pci
5. reboot

e. Enable SR-IOV on the MLNX_OFED Driver

1.ibstat
      ibdev2netdev 查看active状态的interface
2.cat /sys/class/net/ens785f1/device/sriov_totalvfs   只读文件,vf的数量由I.3设置。若没有此参数,则代表intel_iommu=on 没添加
3.查看当前的VFS:mlx5_num_vfs 和sriov_numvfs的区别在于:无论是否intel_iommu为on,mlx5_num_vfs一直存在,但sriov_numvfs由intel_iommu决定
\# cat /sys/class/infiniband/mlx5_1/device/mlx5_num_vfs
\# cat /sys/class/net/ens785f1/device/sriov_numvfs
\# cat /sys/class/net/ens785f1/device/mlx5_num_vfs
4.set所需的VFS,kernel version不同,方法不同:
echo 4 > /sys/class/infiniband/mlx5_0/device/mlx5_num_vfs
echo 4 > /sys/class/net/ens785f1/device/sriov_numvfs
echo 4 > /sys/class/net/ens785f1/device/mlx5_num_vfs 

参考
https://community.mellanox.com/docs/DOC-2386
http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers
https://community.mellanox.com/docs/DOC-1502

相关文章

  • mellanox SRIOV

    a. Make sure that SR-IOV is enabled in the BIOS of the sp...

  • qemu中sriov试验

    要支持sriov功能,首先需要硬件支持,主板和cpu需要支持iommu,vt-dpci设备需要支持sriov,本人...

  • 基于KVM的SRIOV直通配置及性能测试

    SRIOV介绍、VF直通配置,以及包转发率性能测试 小慢哥的原创文章,欢迎转载 目录 ▪ 1. SRIOV介绍▪ ...

  • Mellanox InfiniBand简介

    关于Mellanox 我们是基于InfiniBand和以太网标准的端到端高性能互连产品和解决方案的集成供应商。我们...

  • 配置网卡SRIOV

    参考文档https://community.mellanox.com/s/article/howto-config...

  • 安装IB驱动

    环境 ubuntu 16.04Mellanox Technologies MT26428 [ConnectX VP...

  • linux网卡驱动对XDP支持情况

    各个网卡厂商对应的Linux内核驱动如下 Mellanox: mlx4 (4.8) and mlx5 (4.9) ...

  • dpdk mellanox网卡 多线程hang住的问题

    对于mellanox网卡,使用dpdk driver时,在多线程场景下,如果这几个线程分别获取link状态,或者统...

  • mlx rdma 安装

    装这个遇到很多坑。不过发现了一个很方便的方法:https://www.mellanox.com/products/...

  • dpdk X710 VF reset

    问题描述在NFV平台上,有一个客户的流量突然断了(VM使用SRIOV收发包,网卡类型为intel的XL710),重...

网友评论

      本文标题:mellanox SRIOV

      本文链接:https://www.haomeiwen.com/subject/mcvftktx.html