]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/dpaa2/dpaa2_ethdev.c
net/dpaa2: add support for frame based Tx congestion
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.c
index a1ef1cbca356fea649611f364e91dd142dbab77e..82dd8bb53bb759d63c6264907b8ceb13d0bcef38 100644 (file)
@@ -492,8 +492,7 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev,
        if (priv->flags & DPAA2_TX_CGR_SUPPORT) {
                struct dpni_congestion_notification_cfg cong_notif_cfg;
 
-               cong_notif_cfg.units = DPNI_CONGESTION_UNIT_BYTES;
-               /* Notify about congestion when the queue size is 32 KB */
+               cong_notif_cfg.units = DPNI_CONGESTION_UNIT_FRAMES;
                cong_notif_cfg.threshold_entry = CONG_ENTER_TX_THRESHOLD;
                /* Notify that the queue is not congested when the data in
                 * the queue is below this thershold.