common/cnxk: support NPA device
authorAshwin Sekhar T K <asekhar@marvell.com>
Tue, 6 Apr 2021 14:41:02 +0000 (20:11 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 9 Apr 2021 06:32:24 +0000 (08:32 +0200)
commit124ff1a4cbb3318421b03391b2cbc6735410f4bc
tree1e06208683f2cd6a165d4cd7bab7b99c7d1962f4
parent585bb3e538f91340debe74e4cc024e0e8404bca9
common/cnxk: support NPA device

Add base NPA device support. NPA i.e Network Pool Allocator is
HW block that provides HW mempool functionality on Marvell CN9K
and CN10K SoC's. NPA by providing HW mempool support, also
facilitates Rx and Tx packet alloc and packet free by HW without
SW intervention.

Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
15 files changed:
drivers/common/cnxk/meson.build
drivers/common/cnxk/roc_api.h
drivers/common/cnxk/roc_dev.c
drivers/common/cnxk/roc_dev_priv.h
drivers/common/cnxk/roc_idev.c
drivers/common/cnxk/roc_idev.h
drivers/common/cnxk/roc_idev_priv.h
drivers/common/cnxk/roc_npa.c [new file with mode: 0644]
drivers/common/cnxk/roc_npa.h [new file with mode: 0644]
drivers/common/cnxk/roc_npa_priv.h [new file with mode: 0644]
drivers/common/cnxk/roc_platform.c
drivers/common/cnxk/roc_platform.h
drivers/common/cnxk/roc_priv.h
drivers/common/cnxk/roc_utils.c
drivers/common/cnxk/version.map