be2net: fix re-loaded PF driver to re-gain control of its VFs
authorSathya Perla <sathya.perla@emulex.com>
Sun, 3 Feb 2013 20:30:11 +0000 (20:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2013 18:26:49 +0000 (13:26 -0500)
commit4c876616298f8b07614892ac7aa82c768e435fda
treed62a2490bfdd1b7da4928193fc28fe05f2644343
parente68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86
be2net: fix re-loaded PF driver to re-gain control of its VFs

Currently, when the PF driver is unloaded and re-loaded while VFs are attached
to VMs, it loses control of its VFs.

The PF driver now uses the newly defined/created GET_IFACE_LIST cmd
(available in FW ver >= 4.6) to query the if_id of the VFs
(enabled in its previous life). The PF driver then uses the if_id for
further VF configuration.

The GET_IFACE_MAC_LIST cmd has also implemented in BE3 FW for PF to
query pmac-ids used by its VFs.

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