> @@ -129,6 +130,14 @@ static void bcm_sf2_imp_setup(struct dsa_switch *ds, int 
> port)
>       reg |= MII_DUMB_FWDG_EN;
>       core_writel(priv, reg, CORE_SWITCH_CTRL);
>  
> +     /* Configure Traffic Class to QoS mapping, allow each priority to map
> +      * to a different queue number
> +      */
> +     reg = core_readl(priv, CORE_PORT_TC2_QOS_MAP_PORT(port));
> +     for (i = 0; i < 8; i++)
> +             reg |= i << (PRT_TO_QID_SHIFT * i);

Hi Florian

Rather than 8, would ds->num_tx_queues be more descriptive?

       Andrew

Reply via email to