]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbe: dcb, set priority to traffic class mappings
authorJohn Fastabend <john.r.fastabend@intel.com>
Thu, 4 Aug 2011 07:15:55 +0000 (07:15 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:11:05 +0000 (22:11 +0800)
This patch adds support for configuring the priority to
traffic class mapping.

(cherry picked from commit e886c44f7b4da15182368a25a15984c9da727bd4)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_dcb_nl.c

index 1750befed3b87cf7cb6a4ee1e17b228d9408c674..44376811e27669a7a5a14584b6ed52d32553fe61 100644 (file)
@@ -572,6 +572,9 @@ static int ixgbe_dcbnl_ieee_setets(struct net_device *dev,
        if (max_tc != netdev_get_num_tc(dev))
                ixgbe_setup_tc(dev, max_tc);
 
+       for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++)
+               netdev_set_prio_tc_map(dev, i, ets->prio_tc[i]);
+
        return ixgbe_dcb_hw_ets(&adapter->hw, ets, max_frame);
 }