mem: 64-bit mempool sizes
authorIntel <intel.com>
Tue, 12 Mar 2013 11:03:00 +0000 (12:03 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 25 Jul 2013 14:07:51 +0000 (16:07 +0200)
Signed-off-by: Intel
lib/librte_mempool/rte_mempool.c

index a54f62e..747e65d 100644 (file)
@@ -133,11 +133,10 @@ rte_mempool_create(const char *name, unsigned n, unsigned elt_size,
        struct rte_mempool *mp = NULL;
        struct rte_ring *r;
        const struct rte_memzone *mz;
-       size_t mempool_size;
+       uint64_t mempool_size, total_elt_size;
        int mz_flags = RTE_MEMZONE_1GB|RTE_MEMZONE_SIZE_HINT_ONLY;
        int rg_flags = 0;
        uint32_t header_size, trailer_size;
-       uint32_t total_elt_size;
        unsigned i;
        void *obj;