]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: refactor/cleanup vf configuration code
authorSathya Perla <sathya.perla@emulex.com>
Tue, 13 Dec 2011 00:58:50 +0000 (00:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2011 18:34:26 +0000 (13:34 -0500)
commit237316916d1119f9a669be135f9913ff2227bb72
treeead18a44d5fa3fba328c2be772cf1568b7adbcc5
parentf944a58169a719f82a6cb2596833a86572a633b2
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 <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c