net/xenvirt: fix build after mempool changes
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 13 Jun 2016 11:24:29 +0000 (13:24 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:53 +0000 (17:21 +0200)
commit5fdb4ada1c97ce9399dfb0a8d4d14fbbf1bf1dc8
tree2e9522701e7cdd4b85973cd82fa540aab19d0fa6
parent8aaf473bbed6ac9740d22f0fa4a870651ecdc5ce
net/xenvirt: fix build after mempool changes

The field elt_va_start has been removed from the mempool structure,
and it was not replaced in xenvirt.

Fix this by getting the mempool objects address by using the address of
the first memory chunk list.

Note that it won't work with mempool composed of several chunks,
but it was already the case before.

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

Reported-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
drivers/net/xenvirt/rte_xen_lib.c