]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: refactor/cleanup vf configuration code
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 8 May 2012 00:05:32 +0000 (17:05 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 8 May 2012 20:31:57 +0000 (13:31 -0700)
commit1f49a239727176bcdfbf6385b89f06042d34a3a5
treea960ea392263db870ddb8492d71f870b7a59326a
parenta6460245b489d26bdd2d7729e31da645240d5379
be2net: refactor/cleanup vf configuration code

Mainline commit:
11ac75ed1eb9d8f5ff067fa9a82ebf5075989281
- 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 <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 11ac75ed1eb9d8f5ff067fa9a82ebf5075989281)

Conflicts:

drivers/net/benet/be_main.c
drivers/net/benet/be.h
drivers/net/benet/be_main.c