net/dpaa2: remove loop for unused pool entries
authorGavin Hu <gavin.hu@arm.com>
Tue, 31 Jul 2018 07:51:37 +0000 (15:51 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 3 Aug 2018 15:09:44 +0000 (17:09 +0200)
commite94be227b7ea025d8fd0ee5d79052a8c31d432c6
tree4ba32da5a72b77a2ae1aff36cb94201d5b99bd71
parent688654bf32ea5841f8d157c5c64d0918ad019474
net/dpaa2: remove loop for unused pool entries

Currently only one buffer pool is configured and in use,
looping for up to maxmum 8 times is unnecessary and might
be buggy as assigned uninititalized values.

The fix is to loop for the configured times with initialize
with valid values.

Fixes: 16bbc98a3e ("bus/fslmc: update MC to 10.3.x")
Cc: stable@dpdk.org
Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/net/dpaa2/mc/dpni.c