aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2010-11-16 22:26:53 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-11-16 22:26:53 -0500
commit01fa7d905fe9a5b045615fbde19e6c0f78063206 (patch)
treeb55846030f4c14194e462ffce4dd5793d66f7564 /drivers
parent5f5ae6fc86083526088e2c2ca4454e0f44f1e0cb (diff)
ixgbe: remove residual code left over from earlier combining of TXDCTL
Missed some code that was left floating around in the DCB configuration for the TXDCTL register. As a result the register was being messed with in two different spots when we only needed to do the change once. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index cbb3570f920e..dd73ebc545d3 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -3328,8 +3328,6 @@ static void ixgbe_configure_dcb(struct ixgbe_adapter *adapter)
3328{ 3328{
3329 struct ixgbe_hw *hw = &adapter->hw; 3329 struct ixgbe_hw *hw = &adapter->hw;
3330 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; 3330 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN;
3331 u32 txdctl;
3332 int i, j;
3333 3331
3334 if (!(adapter->flags & IXGBE_FLAG_DCB_ENABLED)) { 3332 if (!(adapter->flags & IXGBE_FLAG_DCB_ENABLED)) {
3335 if (hw->mac.type == ixgbe_mac_82598EB) 3333 if (hw->mac.type == ixgbe_mac_82598EB)
@@ -3350,20 +3348,13 @@ static void ixgbe_configure_dcb(struct ixgbe_adapter *adapter)
3350 ixgbe_dcb_calculate_tc_credits(hw, &adapter->dcb_cfg, max_frame, 3348 ixgbe_dcb_calculate_tc_credits(hw, &adapter->dcb_cfg, max_frame,
3351 DCB_RX_CONFIG); 3349 DCB_RX_CONFIG);
3352 3350
3353 /* reconfigure the hardware */
3354 ixgbe_dcb_hw_config(&adapter->hw, &adapter->dcb_cfg);
3355
3356 for (i = 0; i < adapter->num_tx_queues; i++) {
3357 j = adapter->tx_ring[i]->reg_idx;
3358 txdctl = IXGBE_READ_REG(hw, IXGBE_TXDCTL(j));
3359 /* PThresh workaround for Tx hang with DFP enabled. */
3360 txdctl |= 32;
3361 IXGBE_WRITE_REG(hw, IXGBE_TXDCTL(j), txdctl);
3362 }
3363 /* Enable VLAN tag insert/strip */ 3351 /* Enable VLAN tag insert/strip */
3364 adapter->netdev->features |= NETIF_F_HW_VLAN_RX; 3352 adapter->netdev->features |= NETIF_F_HW_VLAN_RX;
3365 3353
3366 hw->mac.ops.set_vfta(&adapter->hw, 0, 0, true); 3354 hw->mac.ops.set_vfta(&adapter->hw, 0, 0, true);
3355
3356 /* reconfigure the hardware */
3357 ixgbe_dcb_hw_config(hw, &adapter->dcb_cfg);
3367} 3358}
3368 3359
3369#endif 3360#endif