ixgbe: DCB, use hardware independent routines
authorJohn Fastabend <john.r.fastabend@intel.com>
Wed, 5 Jan 2011 04:48:45 +0000 (04:48 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 11 Feb 2011 16:55:36 +0000 (08:55 -0800)
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>
drivers/net/ixgbe/ixgbe_dcb_nl.c

index c94adec5bc3bb7e80cba64f9adfc1b76a7599076..a977df3fe81bfb42c890bd762a22b52f45b3ed80 100644 (file)
@@ -405,11 +405,7 @@ static u8 ixgbe_dcbnl_set_all(struct net_device *netdev)
        if (adapter->dcb_set_bitmap & BIT_PFC) {
                u8 pfc_en;
                ixgbe_dcb_unpack_pfc(&adapter->dcb_cfg, &pfc_en);
-
-               if (adapter->hw.mac.type == ixgbe_mac_82598EB)
-                       ixgbe_dcb_config_pfc_82598(&adapter->hw, pfc_en);
-               else if (adapter->hw.mac.type == ixgbe_mac_82599EB)
-                       ixgbe_dcb_config_pfc_82599(&adapter->hw, pfc_en);
+               ixgbe_dcb_hw_pfc_config(&adapter->hw, pfc_en);
                ret = DCB_HW_CHG;
        }