eal/bsd: concatenate adjacent memory segments
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 28 Jun 2018 11:41:48 +0000 (12:41 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 22:58:56 +0000 (00:58 +0200)
commite1589061ccc9de253f67684119fb0f4b9c721255
tree84a7fb126e95131316a716d2fd2da8cc2d48bf1b
parent953e6913c1916c189f19bc149049da271ddccab1
eal/bsd: concatenate adjacent memory segments

Previously, memory allocator always left holes between mapped
contigmem segments, even if they were IOVA-contiguous. Fix this
by remembering last IOVA address and memseg index, and checking
against those when mapping new contigmem segments.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/bsdapp/eal/eal_memory.c