From: John Fastabend Date: Thu, 4 Aug 2011 07:15:55 +0000 (+0000) Subject: ixgbe: dcb, set priority to traffic class mappings X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~176 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8431c60cbd6b5c71159bc39e25adfe652f7d1e61;p=users%2Fjedix%2Flinux-maple.git ixgbe: dcb, set priority to traffic class mappings This patch adds support for configuring the priority to traffic class mapping. (cherry picked from commit e886c44f7b4da15182368a25a15984c9da727bd4) Signed-off-by: John Fastabend Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ixgbe/ixgbe_dcb_nl.c index 1750befed3b8..44376811e276 100644 --- a/drivers/net/ixgbe/ixgbe_dcb_nl.c +++ b/drivers/net/ixgbe/ixgbe_dcb_nl.c @@ -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); }