]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_distributor/rte_distributor.c
distributor: fix livelock on flush
[dpdk.git] / lib / librte_distributor / rte_distributor.c
index 9fa05f69ad1af541e1face1ee4f96c29ef676231..21eb1fb0a1c153538d85e79c0709e983b5126147 100644 (file)
@@ -542,6 +542,9 @@ rte_distributor_flush_v1705(struct rte_distributor *d)
        while (total_outstanding(d) > 0)
                rte_distributor_process(d, NULL, 0);
 
+       /* wait 10ms to allow all worker drain the pkts */
+       rte_delay_us(10000);
+
        /*
         * Send empty burst to all workers to allow them to exit
         * gracefully, should they need to.