net/dpaa2: fix prefetch Rx to honor number of packets
authorHemant Agrawal <hemant.agrawal@nxp.com>
Fri, 6 Jul 2018 08:10:02 +0000 (13:40 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 12:32:58 +0000 (14:32 +0200)
commit65a70a98f1dbbff474d54151337f05d4752932a1
tree610a71dde4e5373cdb65d0b227c46be50886ef66
parent6fd3639a824e53157e717bf05a45801ab5edc7be
net/dpaa2: fix prefetch Rx to honor number of packets

This patch fixes prefetch rx routine to
set the next prefetch request to the size of nb_pkts.
It assumes that next request would ideally be
of same size.

Fixes: 4bc5ab88dbd6 ("net/dpaa2: fix Tx only mode")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/net/dpaa2/dpaa2_rxtx.c