内核开启VF小结

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/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



转载于:https://www.cnblogs.com/mull/p/8503851.html

你可能感兴趣的:(内核开启VF小结)