|
@@ -44,8 +44,7 @@
|
|
|
#include "ixgbe_sriov.h"
|
|
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
|
-void ixgbe_enable_sriov(struct ixgbe_adapter *adapter,
|
|
|
- const struct ixgbe_info *ii)
|
|
|
+void ixgbe_enable_sriov(struct ixgbe_adapter *adapter)
|
|
|
{
|
|
|
struct ixgbe_hw *hw = &adapter->hw;
|
|
|
int num_vf_macvlans, i;
|
|
@@ -128,12 +127,6 @@ void ixgbe_enable_sriov(struct ixgbe_adapter *adapter,
|
|
|
kcalloc(adapter->num_vfs,
|
|
|
sizeof(struct vf_data_storage), GFP_KERNEL);
|
|
|
if (adapter->vfinfo) {
|
|
|
- /* Now that we're sure SR-IOV is enabled
|
|
|
- * and memory allocated set up the mailbox parameters
|
|
|
- */
|
|
|
- ixgbe_init_mbx_params_pf(hw);
|
|
|
- memcpy(&hw->mbx.ops, ii->mbx_ops, sizeof(hw->mbx.ops));
|
|
|
-
|
|
|
/* limit trafffic classes based on VFs enabled */
|
|
|
if ((adapter->hw.mac.type == ixgbe_mac_82599EB) &&
|
|
|
(adapter->num_vfs < 16)) {
|