app/crypto-perf: support lookaside IPsec
[dpdk.git] / lib / mempool / rte_mempool.c
index c988ebd..b75d26c 100644 (file)
@@ -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;
        }