mbuf: maintain user and compile time mempool ops name
authorHemant Agrawal <hemant.agrawal@nxp.com>
Mon, 29 Jan 2018 08:10:44 +0000 (13:40 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jan 2018 17:52:34 +0000 (18:52 +0100)
commit8b0f7f4341328e7f9f58f04f9f23b15298ff90c6
tree6e6103cd6649499ff805cfde849ee0dffc4b0056
parent96fd032ba8fe2c6cba044406cfba5be598b97a4b
mbuf: maintain user and compile time mempool ops name

At present the userdefined mempool ops name overwrites
the default mempool ops name variable in internal_config.

This patch change the logic to maintain the value of
user defined only in the internal config.

The pktmbuf_create_pool is updated to reflect the same ie.
use user defined. If not present than use the default.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
lib/librte_eal/common/eal_common_options.c
lib/librte_mbuf/rte_mbuf.c