From: Wei Yang Date: Wed, 25 Mar 2015 08:23:46 +0000 (+0800) Subject: PCI: Refresh First VF Offset and VF Stride when updating NumVFs X-Git-Tag: omap-for-v4.1/fixes-rc1~126^2~7^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f59dca27d20c73500c4a88ab9a077e40669755db;p=pandora-kernel.git PCI: Refresh First VF Offset and VF Stride when updating NumVFs The First VF Offset and VF Stride fields depend on the NumVFs setting, so refresh the cached fields in struct pci_sriov when updating NumVFs. See the SR-IOV spec r1.1, sec 3.3.9 and 3.3.10. [bhelgaas: changelog, remove kernel-doc comment marker] Signed-off-by: Wei Yang Acked-by: Bjorn Helgaas Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed