mem: check for contiguousness in external segments
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 14 Nov 2018 14:51:11 +0000 (14:51 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 18 Nov 2018 13:12:20 +0000 (14:12 +0100)
commit32fc0fa00eed43d6985c2e8d3691f0e29aeea645
tree4f8e8fa1a67b80cd89aa71b6092ae6768d6ee589
parent2ddd89c3c6a29e7fc37604c6ecc49d8933dba08e
mem: check for contiguousness in external segments

For IOVA as VA mode, we assume that memory is contiguous. However,
for external segments that assumption may not necessarily hold.
Fix the code to not assume that external memory segments are
contiguous even in IOVA as VA mode.

Fixes: 5282bb1c3695 ("mem: allow memseg lists to be marked as external")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_memalloc.c