be2net: refactor VF setup/teardown code into be_vf_setup/clear()
commitf9449ab76805a2f0e739f5e85a6d9e32d089f1b2
authorSathya Perla <sathya.perla@emulex.com>
Mon, 24 Oct 2011 02:45:01 +0000 (24 02:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2011 22:40:14 +0000 (24 18:40 -0400)
tree859c82352adf2a5347f03aa46c090aebcc2e738d
parenta54769f51b9495f8313224fea670ab6fe720f4b1
be2net: refactor VF setup/teardown code into be_vf_setup/clear()

Currently the code for VF setup/teardown done by a PF (if_create,
mac_add_config, link_status_query etc) is scattered; this patch
refactors this code into be_vf_setup() and be_vf_clear().  The
if_create/if_destroy/mac_addr_query cmds are now called after the MCCQ
is created; so these cmds are now modified to use the MCCQ instead of
MBOX.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c