be2net: implement .sriov_configure() PCI callback
authorVasundhara Volam <vasundhara.volam@emulex.com>
Wed, 4 Mar 2015 05:44:34 +0000 (00:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2015 20:58:37 +0000 (15:58 -0500)
commitace40aff3cee8a82c39375761ea65cc748aa1623
tree797e46c5813a3febb4fef0323faf9a43472485be
parentf285873841299e027a6159dc3d3af0d0caf578d9
be2net: implement .sriov_configure() PCI callback

This patch implements the .sriov_configure() PCI method to allow for
runtime enabling/disabling of VFs. The module param "num_vfs" is now
deprecated.
At the time of driver load the PF-pool resources are allocated to the PF.
When the user enables VFs, the resources are then re-distributed across
PFs and VFs based on the number of VFs enabled.
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
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_main.c