From: Donald Dutile Date: Mon, 5 Nov 2012 20:20:37 +0000 (-0500) Subject: PCI: Provide method to reduce the number of total VFs supported X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~34^2~10^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff73156d3ad661655e6d9ef04c2284cf3abb0f1;p=pandora-kernel.git PCI: Provide method to reduce the number of total VFs supported Some implementations of SRIOV provide a capability structure value of TotalVFs that is greater than what the software can support. Provide a method to reduce the capability structure reported value to the value the driver can support. This ensures sysfs reports the current capability of the system, hardware and software. Example for its use: igb & ixgbe -- report 8 & 64 as TotalVFs, but drivers only support 7 & 63 maximum. Signed-off-by: Donald Dutile Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed