X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fmempool%2Frte_mempool.c;h=b75d26c82a00da72b6451352e4f06cf34e69c4b0;hb=28dde5da503ed09f10cdfb295e390b114df7330a;hp=c988ebd87a54955bfdb32aeb02a2f526d27e9e46;hpb=d7203661844c304b5e1e7acfcae3b66d4a79b87e;p=dpdk.git diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c index c988ebd87a..b75d26c82a 100644 --- a/lib/mempool/rte_mempool.c +++ b/lib/mempool/rte_mempool.c @@ -798,13 +798,6 @@ rte_mempool_cache_free(struct rte_mempool_cache *cache) rte_free(cache); } -#define MEMPOOL_KNOWN_FLAGS (RTE_MEMPOOL_F_NO_SPREAD \ - | RTE_MEMPOOL_F_NO_CACHE_ALIGN \ - | RTE_MEMPOOL_F_SP_PUT \ - | RTE_MEMPOOL_F_SC_GET \ - | RTE_MEMPOOL_F_POOL_CREATED \ - | RTE_MEMPOOL_F_NO_IOVA_CONTIG \ - ) /* create an empty mempool */ struct rte_mempool * rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size, @@ -849,8 +842,8 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size, return NULL; } - /* enforce no unknown flag is passed by the application */ - if ((flags & ~MEMPOOL_KNOWN_FLAGS) != 0) { + /* enforce only user flags are passed by the application */ + if ((flags & ~RTE_MEMPOOL_VALID_USER_FLAGS) != 0) { rte_errno = EINVAL; return NULL; }