]> 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)
commit1f40ed2938924171396f250de7f8203195d80ec6
tree5e071141712d7230d01f4fd711ded8d5c348f6ef
parenta25d0cd04d3acf103106bbeb7d6bcbc0923484c5
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