> -Original Message-
> From: David Miller
> Sent: Thursday, June 6, 2019 4:46 AM
> To: Ioana Ciocoi Radulescu
> Cc: netdev@vger.kernel.org; Ioana Ciornei
> Subject: Re: [PATCH net-next 2/3] dpaa2-eth: Support multiple traffic classes
> on Tx
>
> From: Ioana
From: Ioana Radulescu
Date: Wed, 5 Jun 2019 12:57:25 +0300
> + queue_mapping %= dpaa2_eth_queue_count(priv);
You are now performing a very expensive modulus operation every single TX
packet, regardless of whether TC is in use or not.
The whole reason we store the queue mapping pre-cooked i
DPNI objects can have multiple traffic classes, as reflected by
the num_tc attribute. Until now we ignored its value and only
used traffic class 0.
This patch adds support for multiple Tx traffic classes; the skb
priority information received from the stack is used to select the
hardware Tx queue