aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_dcb_nl.c
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2011-01-04 23:48:45 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-02-11 11:55:36 -0500
commit5977deaa6dde87dc6557570cb1088537e55b9646 (patch)
tree43f9295c94ab9a6354e6fd76ec10c13d5e284235 /drivers/net/ixgbe/ixgbe_dcb_nl.c
parentd37e1d0eba2e508b8ac499497db216c67df65c3c (diff)
ixgbe: DCB, use hardware independent routines
This consolidates hardware specifics to ixgbe_dcb.c this simplifies code that was previously branching based on hardware type. Signed-off-by: John Fastabend <john.r.fastabend@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/net/ixgbe/ixgbe_dcb_nl.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_dcb_nl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ixgbe/ixgbe_dcb_nl.c
index c94adec5bc3b..a977df3fe81b 100644
--- a/drivers/net/ixgbe/ixgbe_dcb_nl.c
+++ b/drivers/net/ixgbe/ixgbe_dcb_nl.c
@@ -405,11 +405,7 @@ static u8 ixgbe_dcbnl_set_all(struct net_device *netdev)
405 if (adapter->dcb_set_bitmap & BIT_PFC) { 405 if (adapter->dcb_set_bitmap & BIT_PFC) {
406 u8 pfc_en; 406 u8 pfc_en;
407 ixgbe_dcb_unpack_pfc(&adapter->dcb_cfg, &pfc_en); 407 ixgbe_dcb_unpack_pfc(&adapter->dcb_cfg, &pfc_en);
408 408 ixgbe_dcb_hw_pfc_config(&adapter->hw, pfc_en);
409 if (adapter->hw.mac.type == ixgbe_mac_82598EB)
410 ixgbe_dcb_config_pfc_82598(&adapter->hw, pfc_en);
411 else if (adapter->hw.mac.type == ixgbe_mac_82599EB)
412 ixgbe_dcb_config_pfc_82599(&adapter->hw, pfc_en);
413 ret = DCB_HW_CHG; 409 ret = DCB_HW_CHG;
414 } 410 }
415 411