From: Sathya Perla Date: Tue, 13 Dec 2011 00:58:50 +0000 (+0000) Subject: be2net: refactor/cleanup vf configuration code X-Git-Tag: v3.3-rc1~182^2~246 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11ac75ed1eb9d8f5ff067fa9a82ebf5075989281;p=pandora-kernel.git be2net: refactor/cleanup vf configuration code - use adapter->num_vfs (and not the module param) to store the actual number of vfs created. Use the same variable to reflect SRIOV enable/disable state. So, drop the adapter->sriov_enabled field. - use for_all_vfs() macro in VF configuration code - drop the "vf_" prefix for the fields of be_vf_cfg; the prefix is redundant and removing it helps reduce line wrap Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed