OSDN Git Service

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)
commitcf19a8c3d515d8c9d88d804437c6ac291eeaa2aa
tree5e071141712d7230d01f4fd711ded8d5c348f6ef
parentf613ed665bb3ec49edc4907bd8799e3a2de47df5
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