net/dpaa2: add retry and timeout in packet enqueue API
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 5 Nov 2019 14:23:16 +0000 (19:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Nov 2019 00:14:00 +0000 (01:14 +0100)
commitce4fd609b4d7724533ccf9eb8b667afadc5a1687
tree4303f49937d195443db70907ba67950829ac8b2f
parentc9d9825bea486d4490a02ce2c5672c5a16891fab
net/dpaa2: add retry and timeout in packet enqueue API

In the packet transmit, if the QBMAN is not able to process the
packets, the Tx function loops infinitely to send the packet out.
This patch changes the logic retry for some time (count) and then
return.

Fixes: cd9935cec873 ("net/dpaa2: enable Rx and Tx operations")
Fixes: 16c4a3c46ab7 ("bus/fslmc: add enqueue response read in qbman")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Radu Bulie <radu-andrei.bulie@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
drivers/net/dpaa2/dpaa2_rxtx.c