From: Stefan Assmann Date: Sat, 18 Aug 2012 04:06:11 +0000 (+0000) Subject: igb: Change how we check for pre-existing and assigned VFs X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~111^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f557147c4615f5e03abb673bd566901783565666;p=pandora-kernel.git igb: Change how we check for pre-existing and assigned VFs Adapt the pre-existing and assigned VFs code to the ixgbe way introduced in commit 9297127b9cdd8d30c829ef5fd28b7cc0323a7bcd. Instead of searching the enabled VFs we use pci_num_vf to determine enabled VFs. By comparing to which PF an assigned VF is owned it's possible to decide whether to leave it enabled or not. Signed-off-by: Stefan Assmann Acked-by: Greg Rose Tested-by: Robert Garrett Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed