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: MMI-PSA29.97-13-9~18194^2~221^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e886c44f7b4da15182368a25a15984c9da727bd4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ixgbe: dcb, set priority to traffic class mappings This patch adds support for configuring the priority to traffic class mapping. Signed-off-by: John Fastabend Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c index 22caad7b200b..1d38955ca19d 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c +++ b/drivers/net/ethernet/intel/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); }