mempool/octeontx2: add devargs for max pool selection
authorJerin Jacob <jerinj@marvell.com>
Sat, 22 Jun 2019 13:24:16 +0000 (18:54 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 25 Jun 2019 21:35:57 +0000 (23:35 +0200)
commit9a8e7062c81c3ce855e27b06e1d849e087ddfa79
tree51fd7b9a0039b346208c7f64eaf8ab3ba6ad056a
parentee338015e7a9f589aee597c74ecbb68aadf10331
mempool/octeontx2: add devargs for max pool selection

The maximum number of mempools per application needs to be configured
on HW during mempool driver initialization. HW can support up to 1M
mempools, Since each mempool costs set of HW resources, the max_pools
devargs parameter is being introduced to configure the number of
mempools required for the application.
For example:

-w 0002:02:00.0,max_pools=512

With the above configuration, the driver will set up only 512 mempools
for the given application to save HW resources.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Harman Kalra <hkalra@marvell.com>
drivers/mempool/octeontx2/otx2_mempool.c