common/cnxk: support to get policer level to index
authorSunil Kumar Kori <skori@marvell.com>
Tue, 12 Oct 2021 07:05:46 +0000 (12:35 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 19 Oct 2021 14:21:14 +0000 (16:21 +0200)
commitb7cb2203eb6d64a79b9ffdae9afbc7d89bbac65f
tree55d85985f6a42c33f9288cfeb2e6463895c45b62
parentcf8f6aa12a339c3140f71acde18b3dbe91cdb1b3
common/cnxk: support to get policer level to index

CN10K platform supports policer up to 3 level of hierarchy.
Implement RoC API to get corresponding index for given level.

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/meson.build
drivers/common/cnxk/roc_nix.h
drivers/common/cnxk/roc_nix_bpf.c [new file with mode: 0644]
drivers/common/cnxk/roc_nix_priv.h
drivers/common/cnxk/roc_utils.c
drivers/common/cnxk/version.map