mempool: enforce valid flags at creation
authorDavid Marchand <david.marchand@redhat.com>
Thu, 14 Oct 2021 19:29:16 +0000 (21:29 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 15 Oct 2021 08:24:43 +0000 (10:24 +0200)
commitb240af8b10f961298149a86dbb53823334c5870d
tree75446b48814089a087d66fe9e7b990779bf77fce
parentb95af1946ab4fde8489f8a91199d3b5579918997
mempool: enforce valid flags at creation

If we do not enforce valid flags are passed by an application, this
application might face issues in the future when we add more flags.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
app/test/test_mempool.c
lib/mempool/rte_mempool.c
lib/mempool/rte_mempool.h