2017-8-29 16:33:40
内核开启VF小结:
1. eth2上创建4个VF
echo 4 > /sys/class/net/eth2/device/sriov_numvfs
2. 关闭eth2 VF
~ # echo 0 > /sys/class/net/eth2/device/sriov_numvfs
注:如果遇到"/sys/class/net/<DEVICE NAME>/device/sriov_numvfs"文件不存,
内核开启配置如下试试:
[*] PCI support
[*] Support mmconfig PCI config space access
[*] PCI Express Port Bus support
[*] Enable PCI resource re-allocation detection
[*] PCI IOV support
[*] PCI PRI support
[*] IOMMU Hardware Support --->
[*] Support for Intel IOMMU using DMA Remapping Devices
[*] Support for Shared Virtual Memory with Intel IOMMU