配置SR-IOV
from--https://www.cnblogs.com/dream397/p/13656062.html

配置SR-IOV

https://support.huawei.com/enterprise/zh/doc/EDOC1100063070/5b142c34

https://support.huawei.com/enterprise/zh/doc/EDOC1100063070/328ee0c2

[root@localhost ~]# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-4.14.0-115.el7a.0.1.aarch64 root=UUID=a7b34ae0-7d43-4c06-9083-cd70919acbdf ro crashkernel=auto LANG=en_US.UTF-8 iommu=pt intel_iommu=on iommu.passthrough=1
[root@localhost ~]#

 

 

[root@localhost device]# ls 
broken_parity_status      net
class                     numa_node
config                    pools
consistent_dma_mask_bits  power
current_link_speed        remove
current_link_width        rescan
d3cold_allowed            reset
device                    resource
devspec                   resource0
dma_mask_bits             resource2
driver                    resource4
driver_override           revision
enable                    rom
iommu                     sriov_drivers_autoprobe
iommu_group               sriov_numvfs
irq                       sriov_totalvfs
local_cpulist             subsystem
local_cpus                subsystem_device
max_link_speed            subsystem_vendor
max_link_width            uevent
modalias                  vendor
msi_bus                   vpd
msi_irqs
[root@localhost device]# pwd
/sys/class/net/enp5s0/device
[root@localhost device]# echo 5 > sriov_numvfs
-bash: echo: write error: No such file or directory
[root@localhost device]#
复制代码

 

 

复制代码
[root@localhost dpdk-19.11]# dmesg | tail
[ 6798.331462] hinic 0000:05:00.0 enp5s0: set rx mode work
[ 6798.411203] hinic 0000:05:00.0 enp5s0: set rx mode work
[ 6798.491197] hinic 0000:05:00.0 enp5s0: set rx mode work
[ 6902.185881] hinic 0000:05:00.0: Driver doesn't support SRIOV configuration via sysfs
[ 6938.838365] hinic 0000:06:00.0: Driver doesn't support SRIOV configuration via sysfs
[ 6962.713275] hinic 0000:06:00.0: Driver doesn't support SRIOV configuration via sysfs
[ 7040.689571] hinic 0000:06:00.0: Driver doesn't support SRIOV configuration via sysfs
[ 7322.560064] hinic 0000:06:00.0: Driver doesn't support SRIOV configuration via sysfs
[62041.770143] hinic 0000:05:00.0: Driver doesn't support SRIOV configuration via sysfs
[62065.490211] hinic 0000:05:00.0: Driver doesn't support SRIOV configuration via sysfs
复制代码

 

[root@localhost dpdk-19.11]# find /sys/devices/ -name '*05:00.0'
/sys/devices/pci0000:00/0000:00:0c.0/0000:03:00.0/0000:04:00.0/0000:05:00.0
/sys/devices/platform/arm-smmu-v3.0.auto/iommu/smmu3.0x0000000148000000/devices/0000:05:00.0
[root@localhost dpdk-19.11]#

 

modalias                  vpd
[root@localhost dpdk-19.11]# echo 5 >   /sys/bus/pci/drivers/igb_uio/0000:05:00.0/sriov_numvfs 
-bash: echo: write error: No such file or directory
[root@localhost dpdk-19.11]#

 

[root@localhost drivers]# grep sriov_numvfs  -rn *
bus/pci/linux/pci.c:286:                         "%s/sriov_numvfs", dirname);
net/mlx5/mlx5.c:3098:                            * if sriov_numvfs < sriov_totalvfs.
[root@localhost drivers]#

 

 

上一篇
下一篇