]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: set sriov_totalvfs correctly
authorDerek Chickles <derek.chickles@cavium.com>
Tue, 1 Aug 2017 22:05:07 +0000 (15:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 23:50:14 +0000 (16:50 -0700)
commit366b3b2ca7c05e21c1398afc2add3f1df6501eb5
tree5e071141712d7230d01f4fd711ded8d5c348f6ef
parenta15c49f84e65cd3e035a61a5bca9cb61c654025f
liquidio: set sriov_totalvfs correctly

The file /sys/devices/pci000.../sriov_totalvfs is showing a wrong value.
Fix it by calling pci_sriov_set_totalvfs() to set the total number of VFs
available after calculations for the number of PF and VF queues are made.

Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c