bus/fslmc: use virt2memseg instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:16 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:54:56 +0000 (19:54 +0200)
commit0e41bb3b0046987d8926d9c671899090ec8e8bc0
tree221d9e8675136453471bbad6e70eeeb46220d847
parentf901e64d2102a515f06fd1bbe1a0543f6c073e0c
bus/fslmc: use virt2memseg instead of iteration

Reduce dependency on internal details of EAL memory subsystem, and
simplify code.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h