[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