dpaa_eth: use AVOIDBLOCK for Tx confirmation queues
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 30 Mar 2017 13:24:15 +0000 (16:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2017 19:03:31 +0000 (12:03 -0700)
The AVOIDBLOCK flag determines the Tx confirmation queues processing
to be redirected to any available CPU when the current one is slow
in processing them. This may result in a higher Tx confirmation
interrupt count but may reduce pressure on a certain CPU that with
the previous setting would process all Tx confirmation frames.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

index d4bb8bf86a45977cdabf61979de5849866f159bf..9a520e4f0df9a0d47b75f71f01557414ba3d4eab 100644 (file)
@@ -974,7 +974,7 @@ static int dpaa_fq_init(struct dpaa_fq *dpaa_fq, bool td_enable)
                 * Tx Confirmation FQs.
                 */
                if (dpaa_fq->fq_type == FQ_TYPE_TX_CONFIRM)
-                       initfq.fqd.fq_ctrl |= cpu_to_be16(QM_FQCTRL_HOLDACTIVE);
+                       initfq.fqd.fq_ctrl |= cpu_to_be16(QM_FQCTRL_AVOIDBLOCK);
 
                /* FQ placement */
                initfq.we_mask |= cpu_to_be16(QM_INITFQ_WE_DESTWQ);