net/thunderx: fix deadlock in Rx path
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 May 2017 18:41:55 +0000 (00:11 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 20:23:57 +0000 (22:23 +0200)
RBDR buffers are refilled when SW consumes the buffers from CQ.
This creates deadlock case when CQ buffers exhausted due to lack
of RBDR buffers. Fix is to refill the RBDR when rx_free_thresh
meet, irrespective of the number of CQ buffers consumed.

Fixes: e2d7fc9f0a24 ("net/thunderx: add single and multi-segment Rx")
Cc: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>

No differences found