创建vf报错,问题求助


echo $VF_NUM | sudo tee /sys/class/net/$IFNAME/device/sriov_numvfs > /dev/null
创建vf时报错
[ 4821.848031] igb 0000:01:00.1: can't enable 1 VFs (bus 02 out of range of [bus 01])
有大神遇到过吗?

 virtualization technology & Virtualization Technology Directed i/o也是enable

请了解DPDK的大神帮忙看下,多谢!
已邀请:

Cool - SDN&P4程序猿

赞同来自:


问题已解决:

如果报错:SR-IOV: bus number out of range,那是因为主板比较老不支持SR-IOV去设置给每个pci卡分配中断号,可使用pci=assign-busses参数强制分配。

root@dpdk:/home/ccf# cat /etc/default/grub

If you change this file, run 'update-grub' afterwards to update

/boot/grub/grub.cfg.

For full documentation of the options in this file, see:

info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT="iommu=pt intel_iommu=on isolcpus=2,3 default_hugepagesz=1G hugepagesz=1G hugepages=20 pci=assign-busses"
GRUB_CMDLINE_LINUX=""

要回复问题请先登录注册