aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2011-07-20 20:40:30 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-09-16 21:29:29 -0400
commit4c1d7b4b5dec6b8a97202d88538c06733173b1c5 (patch)
treeec1d8f8ca61ab3ce3d6cac1ef1fdb8290e3b81d3 /drivers/net/ethernet/intel
parentd7ccb8c2f2f73a9fcdb8fb0f3bcdd09746f3a9ef (diff)
ixgbe: remove redundant configuration of tx_sample_rate
This change fixes a minor redundancy in that tx_sample_rate was set twice. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index bb069bc3d1a2..fec49e6fc3b6 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -3409,16 +3409,12 @@ static void ixgbe_fdir_filter_restore(struct ixgbe_adapter *adapter)
3409 3409
3410static void ixgbe_configure(struct ixgbe_adapter *adapter) 3410static void ixgbe_configure(struct ixgbe_adapter *adapter)
3411{ 3411{
3412 struct net_device *netdev = adapter->netdev;
3413 struct ixgbe_hw *hw = &adapter->hw;
3414 int i;
3415
3416 ixgbe_configure_pb(adapter); 3412 ixgbe_configure_pb(adapter);
3417#ifdef CONFIG_IXGBE_DCB 3413#ifdef CONFIG_IXGBE_DCB
3418 ixgbe_configure_dcb(adapter); 3414 ixgbe_configure_dcb(adapter);
3419#endif 3415#endif
3420 3416
3421 ixgbe_set_rx_mode(netdev); 3417 ixgbe_set_rx_mode(adapter->netdev);
3422 ixgbe_restore_vlan(adapter); 3418 ixgbe_restore_vlan(adapter);
3423 3419
3424#ifdef IXGBE_FCOE 3420#ifdef IXGBE_FCOE
@@ -3427,15 +3423,14 @@ static void ixgbe_configure(struct ixgbe_adapter *adapter)
3427 3423
3428#endif /* IXGBE_FCOE */ 3424#endif /* IXGBE_FCOE */
3429 if (adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) { 3425 if (adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) {
3430 for (i = 0; i < adapter->num_tx_queues; i++) 3426 ixgbe_init_fdir_signature_82599(&adapter->hw,
3431 adapter->tx_ring[i]->atr_sample_rate = 3427 adapter->fdir_pballoc);
3432 adapter->atr_sample_rate;
3433 ixgbe_init_fdir_signature_82599(hw, adapter->fdir_pballoc);
3434 } else if (adapter->flags & IXGBE_FLAG_FDIR_PERFECT_CAPABLE) { 3428 } else if (adapter->flags & IXGBE_FLAG_FDIR_PERFECT_CAPABLE) {
3435 ixgbe_init_fdir_perfect_82599(&adapter->hw, 3429 ixgbe_init_fdir_perfect_82599(&adapter->hw,
3436 adapter->fdir_pballoc); 3430 adapter->fdir_pballoc);
3437 ixgbe_fdir_filter_restore(adapter); 3431 ixgbe_fdir_filter_restore(adapter);
3438 } 3432 }
3433
3439 ixgbe_configure_virtualization(adapter); 3434 ixgbe_configure_virtualization(adapter);
3440 3435
3441 ixgbe_configure_tx(adapter); 3436 ixgbe_configure_tx(adapter);