net-next tree mlx5e set sriov_numf failed

From: wenxu <hidden>
Date: 2019-12-10 05:04:10

Hi mellanox team,

I test the net-next branch, set the sriov_numvf fail for

Cannot allocate memory


# uname -r
5.5.0-rc1+

# ethtool -i eth0
driver: mlx5_core
version: 5.0-0
firmware-version: 16.25.1020 (MT_0000000080)
expansion-rom-version:
bus-info: 0000:81:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes

# echo 1 > /sys/class/net/eth0/device/sriov_numvfs
-bash: echo: write error: Cannot allocate memory

dmesg show:
[Tue Dec 10 12:24:26 2019] mlx5_core 0000:81:00.0: E-Switch: Enable: mode(LEGACY), nvfs(1), active vports(2)
[Tue Dec 10 12:24:26 2019] mlx5_core 0000:81:00.0: not enough MMIO resources for SR-IOV
[Tue Dec 10 12:24:26 2019] mlx5_core 0000:81:00.0: mlx5_sriov_enable:149:(pid 20601): pci_enable_sriov failed : -12
[Tue Dec 10 12:24:26 2019] mlx5_core 0000:81:00.0: E-Switch: Disable: mode(LEGACY), nvfs(1), active vports(2)


BR

wenxu



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help