mempool: fix search of maximum contiguous pages
authorWei Dai <wei.dai@intel.com>
Tue, 25 Oct 2016 15:01:11 +0000 (17:01 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 25 Oct 2016 21:18:47 +0000 (23:18 +0200)
commit1e975578bc30a84547b62bd682b03f8f08bf3a38
treeaf651e1e34523a805d0262792386093b8589d9c3
parent1cfde13610fe8574020999ab8ea6d8617d6773c2
mempool: fix search of maximum contiguous pages

paddr[i] + pg_sz always points to the start physical address of the
2nd page after pddr[i], so only up to 2 pages can be combinded to
be used. With this revision, more than 2 pages can be used.

Fixes: 84121f197187 ("mempool: store memory chunks in a list")

Signed-off-by: Wei Dai <wei.dai@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c