bus/dpaa: fix port order shuffling
authorShreyansh Jain <shreyansh.jain@nxp.com>
Tue, 23 Jan 2018 12:27:04 +0000 (17:57 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 12:44:48 +0000 (13:44 +0100)
commitb8f19c924a7d83fdab02ef1fccdc223cb8b3781d
tree26acfba150ea61572c1249d78eae677597627c7f
parentdf2a17124257255eb59004c787e590ae21e27345
bus/dpaa: fix port order shuffling

While scanning for devices, the order in which devices appear is
different as compared to MAC sequence.
This can cause confusion for users and automated scripts.
This patch create a sorted list of devices.

Fixes: 919eeaccb2ba ("bus/dpaa: introduce NXP DPAA bus driver skeleton")
Cc: stable@dpdk.org
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/dpaa/dpaa_bus.c