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)
commitb31eb105463fa1844c19fde382dd6bd294329831
treec7c04a83a44236ff97934a4c40e9b783ba9f5d29
parent939abaf96a72e31a053c26cd825252e4ba77375f
net/thunderx: fix deadlock in Rx path

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>
drivers/net/thunderx/nicvf_rxtx.c