git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/crypto-perf: support lookaside IPsec
[dpdk.git]
/
lib
/
mempool
/
rte_mempool.c
diff --git
a/lib/mempool/rte_mempool.c
b/lib/mempool/rte_mempool.c
index
c988ebd
..
b75d26c
100644
(file)
--- 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);
}
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,
/* 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;
}
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;
}
rte_errno = EINVAL;
return NULL;
}