get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/98043/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 98043,
    "url": "http://patchwork.dpdk.org/api/patches/98043/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210906075450.1452123-6-skori@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210906075450.1452123-6-skori@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210906075450.1452123-6-skori@marvell.com",
    "date": "2021-09-06T07:54:29",
    "name": "[06/27] common/cnxk: support RoC API to configure bandwidth profile",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "176235e16166c2cd94f6fd90ba42276301da9fe5",
    "submitter": {
        "id": 1318,
        "url": "http://patchwork.dpdk.org/api/people/1318/?format=api",
        "name": "Sunil Kumar Kori",
        "email": "skori@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210906075450.1452123-6-skori@marvell.com/mbox/",
    "series": [
        {
            "id": 18696,
            "url": "http://patchwork.dpdk.org/api/series/18696/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=18696",
            "date": "2021-09-06T07:54:24",
            "name": "[01/27] common/cnxk: update policer MBOX APIs and HW definitions",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/18696/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/98043/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/98043/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 11C3AA0C4D;\n\tMon,  6 Sep 2021 09:55:31 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 65D6B41134;\n\tMon,  6 Sep 2021 09:55:14 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id A970F410EA\n for <dev@dpdk.org>; Mon,  6 Sep 2021 09:55:13 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id\n 185N0bDv022892;\n Mon, 6 Sep 2021 00:55:11 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 3aw2sp1sks-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 06 Sep 2021 00:55:11 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 6 Sep 2021 00:55:09 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 6 Sep 2021 00:55:09 -0700",
            "from localhost.localdomain (unknown [10.28.34.25])\n by maili.marvell.com (Postfix) with ESMTP id E1C7D3F709A;\n Mon,  6 Sep 2021 00:55:07 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=GYr0Z+cGkhrZ6wR7Q6Zcay/6JSB0Bzqveb9kl+PZnbg=;\n b=biDy7y78Qj8/v0WUZxW0lfRctx7NnrlHs+vGXIe51MwS7vKuDHEJ+/C/7+3GvNm2EuQC\n dNN5l3fPNpgZioPqn2PIK9Mm0XCHlfQwoCHvfjqTZdEXmBmyjd3U0leTeZNUDSwqdaS1\n ZEUD9gSwof4guxi/Dmwis3d/c860RL3StFgdQSuslVcsPfn0GrNn0p9EdJWJ/3bEfGUH\n Uy3S5B3lxzp5i+Q3i0UQljZt4UCC+bRClJKmzcnwokAfZ3Zm+kpm1tNWcRe5pNc8he+1\n w2b3SmKh1SlvrfiXUQbydxwA37DUolxoiNv1hU5ta4LUAvEpbdOw+yP4w7gULPf39VK6 1Q==",
        "From": "<skori@marvell.com>",
        "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>, Ray Kinsella <mdr@ashroe.eu>",
        "CC": "<dev@dpdk.org>",
        "Date": "Mon, 6 Sep 2021 13:24:29 +0530",
        "Message-ID": "<20210906075450.1452123-6-skori@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210906075450.1452123-1-skori@marvell.com>",
        "References": "<20210906075450.1452123-1-skori@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "KFggQh9Hol81YslKFxXvjix8V28ELKs2",
        "X-Proofpoint-ORIG-GUID": "KFggQh9Hol81YslKFxXvjix8V28ELKs2",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475\n definitions=2021-09-06_02,2021-09-03_01,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH 06/27] common/cnxk: support RoC API to configure\n bandwidth profile",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Sunil Kumar Kori <skori@marvell.com>\n\nImplement RoC API to configure HW bandwidth profile for\nCN10K platform.\n\nSigned-off-by: Sunil Kumar Kori <skori@marvell.com>\n---\n drivers/common/cnxk/roc_nix.h     | 108 +++++++++++++++\n drivers/common/cnxk/roc_nix_bpf.c | 223 ++++++++++++++++++++++++++++++\n drivers/common/cnxk/version.map   |   1 +\n 3 files changed, 332 insertions(+)",
    "diff": "diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h\nindex 081b1b7cc9..6b3b3a50e5 100644\n--- a/drivers/common/cnxk/roc_nix.h\n+++ b/drivers/common/cnxk/roc_nix.h\n@@ -10,6 +10,54 @@\n #define ROC_NIX_BPF_LEVEL_IDX_INVALID 0xFF\n #define ROC_NIX_BPF_LEVEL_MAX\t      3\n \n+/** NIX rate limits */\n+#define MAX_RATE_DIV_EXP  12\n+#define MAX_RATE_EXPONENT 0xf\n+#define MAX_RATE_MANTISSA 0xff\n+\n+#define NIX_METER_RATE_CONST 2000000ULL\n+\n+/* NIX rate calculation in Bits/Sec\n+ *\tPIR_ADD = ((256 + NIX_*_PIR[RATE_MANTISSA])\n+ *\t\t<< NIX_*_PIR[RATE_EXPONENT]) / 256\n+ *\tPIR = (2E6 * PIR_ADD / (1 << NIX_*_PIR[RATE_DIVIDER_EXPONENT]))\n+ *\n+ *\tCIR_ADD = ((256 + NIX_*_CIR[RATE_MANTISSA])\n+ *\t\t<< NIX_*_CIR[RATE_EXPONENT]) / 256\n+ *\tCIR = (2E6 * CIR_ADD / (CCLK_TICKS << NIX_*_CIR[RATE_DIVIDER_EXPONENT]))\n+ */\n+#define METER_RATE(exponent, mantissa, div_exp)                                \\\n+\t((NIX_METER_RATE_CONST * ((256 + (mantissa)) << (exponent))) /         \\\n+\t (((1ull << (div_exp)) * 256)))\n+\n+/* Meter rate limits in Bits/Sec */\n+#define ROC_NIX_BPF_RATE_MIN METER_RATE(0, 0, MAX_RATE_DIV_EXP)\n+#define ROC_NIX_BPF_RATE_MAX METER_RATE(MAX_RATE_EXPONENT, MAX_RATE_MANTISSA, 0)\n+\n+#define NIX_LENGTH_ADJUST_MIN ((int)-NIX_MIN_HW_FRS + 1)\n+#define NIX_LENGTH_ADJUST_MAX 255\n+\n+/** NIX burst limits */\n+#define MAX_BURST_EXPONENT 0xf\n+#define MAX_BURST_MANTISSA 0xff\n+\n+/* NIX burst calculation\n+ *\tPIR_BURST = ((256 + NIX_*_PIR[BURST_MANTISSA])\n+ *\t\t<< (NIX_*_PIR[BURST_EXPONENT] + 1))\n+ *\t\t\t/ 256\n+ *\n+ *\tCIR_BURST = ((256 + NIX_*_CIR[BURST_MANTISSA])\n+ *\t\t<< (NIX_*_CIR[BURST_EXPONENT] + 1))\n+ *\t\t\t/ 256\n+ */\n+#define METER_BURST(exponent, mantissa)                                        \\\n+\t(((256 + (mantissa)) << ((exponent) + 1)) / 256)\n+\n+/** Meter burst limits */\n+#define ROC_NIX_BPF_BURST_MIN METER_BURST(0, 0)\n+#define ROC_NIX_BPF_BURST_MAX                                                  \\\n+\tMETER_BURST(MAX_BURST_EXPONENT, MAX_BURST_MANTISSA)\n+\n enum roc_nix_rss_reta_sz {\n \tROC_NIX_RSS_RETA_SZ_64 = 64,\n \tROC_NIX_RSS_RETA_SZ_128 = 128,\n@@ -39,6 +87,62 @@ enum roc_nix_bpf_level_flag {\n \tROC_NIX_BPF_LEVEL_F_TOP = BIT(2),\n };\n \n+enum roc_nix_bpf_color {\n+\tROC_NIX_BPF_COLOR_GREEN,\n+\tROC_NIX_BPF_COLOR_YELLOW,\n+\tROC_NIX_BPF_COLOR_RED,\n+\tROC_NIX_BPF_COLOR_MAX\n+};\n+\n+enum roc_nix_bpf_algo {\n+\tROC_NIX_BPF_ALGO_NONE,\n+\tROC_NIX_BPF_ALGO_2698,\n+\tROC_NIX_BPF_ALGO_4115,\n+\tROC_NIX_BPF_ALGO_2697\n+};\n+\n+enum roc_nix_bpf_lmode { ROC_NIX_BPF_LMODE_BYTE, ROC_NIX_BPF_LMODE_PACKET };\n+\n+enum roc_nix_bpf_action {\n+\tROC_NIX_BPF_ACTION_PASS,\n+\tROC_NIX_BPF_ACTION_DROP,\n+\tROC_NIX_BPF_ACTION_RED\n+};\n+\n+struct roc_nix_bpf_cfg {\n+\tenum roc_nix_bpf_algo alg;\n+\tenum roc_nix_bpf_lmode lmode;\n+\tunion {\n+\t\t/* Valid when *alg* is set to ROC_NIX_BPF_ALGO_2697. */\n+\t\tstruct {\n+\t\t\tuint64_t cir;\n+\t\t\tuint64_t cbs;\n+\t\t\tuint64_t ebs;\n+\t\t} algo2697;\n+\n+\t\t/* Valid when *alg* is set to ROC_NIX_BPF_ALGO_2698. */\n+\t\tstruct {\n+\t\t\tuint64_t cir;\n+\t\t\tuint64_t pir;\n+\t\t\tuint64_t cbs;\n+\t\t\tuint64_t pbs;\n+\t\t} algo2698;\n+\n+\t\t/* Valid when *alg* is set to ROC_NIX_BPF_ALGO_4115. */\n+\t\tstruct {\n+\t\t\tuint64_t cir;\n+\t\t\tuint64_t eir;\n+\t\t\tuint64_t cbs;\n+\t\t\tuint64_t ebs;\n+\t\t} algo4115;\n+\t};\n+\n+\tenum roc_nix_bpf_action action[ROC_NIX_BPF_COLOR_MAX];\n+\n+\t/* Reserved for future config*/\n+\tuint32_t rsvd[3];\n+};\n+\n struct roc_nix_bpf_objs {\n \tuint16_t level;\n \tuint16_t count;\n@@ -495,6 +599,10 @@ int __roc_api roc_nix_bpf_free(struct roc_nix *roc_nix,\n \n int __roc_api roc_nix_bpf_free_all(struct roc_nix *roc_nix);\n \n+int __roc_api roc_nix_bpf_config(struct roc_nix *roc_nix, uint16_t id,\n+\t\t\t\t enum roc_nix_bpf_level_flag lvl_flag,\n+\t\t\t\t struct roc_nix_bpf_cfg *cfg);\n+\n uint8_t __roc_api\n roc_nix_bpf_level_to_idx(enum roc_nix_bpf_level_flag lvl_flag);\n \ndiff --git a/drivers/common/cnxk/roc_nix_bpf.c b/drivers/common/cnxk/roc_nix_bpf.c\nindex 41d31bc6cd..39b44ef1cd 100644\n--- a/drivers/common/cnxk/roc_nix_bpf.c\n+++ b/drivers/common/cnxk/roc_nix_bpf.c\n@@ -26,6 +26,103 @@ get_mbox(struct roc_nix *roc_nix)\n \treturn dev->mbox;\n }\n \n+static inline uint64_t\n+meter_rate_to_nix(uint64_t value, uint64_t *exponent_p, uint64_t *mantissa_p,\n+\t\t  uint64_t *div_exp_p)\n+{\n+\tuint64_t div_exp, exponent, mantissa;\n+\n+\t/* Boundary checks */\n+\tif (value < ROC_NIX_BPF_RATE_MIN || value > ROC_NIX_BPF_RATE_MAX)\n+\t\treturn 0;\n+\n+\tif (value <= METER_RATE(0, 0, 0)) {\n+\t\t/* Calculate rate div_exp and mantissa using\n+\t\t * the following formula:\n+\t\t *\n+\t\t * value = (2E6 * (256 + mantissa)\n+\t\t *              / ((1 << div_exp) * 256))\n+\t\t */\n+\t\tdiv_exp = 0;\n+\t\texponent = 0;\n+\t\tmantissa = MAX_RATE_MANTISSA;\n+\n+\t\twhile (value < (NIX_METER_RATE_CONST / (1 << div_exp)))\n+\t\t\tdiv_exp += 1;\n+\n+\t\twhile (value < ((NIX_METER_RATE_CONST * (256 + mantissa)) /\n+\t\t\t\t((1 << div_exp) * 256)))\n+\t\t\tmantissa -= 1;\n+\t} else {\n+\t\t/* Calculate rate exponent and mantissa using\n+\t\t * the following formula:\n+\t\t *\n+\t\t * value = (2E6 * ((256 + mantissa) << exponent)) / 256\n+\t\t *\n+\t\t */\n+\t\tdiv_exp = 0;\n+\t\texponent = MAX_RATE_EXPONENT;\n+\t\tmantissa = MAX_RATE_MANTISSA;\n+\n+\t\twhile (value < (NIX_METER_RATE_CONST * (1 << exponent)))\n+\t\t\texponent -= 1;\n+\n+\t\twhile (value < ((NIX_METER_RATE_CONST *\n+\t\t\t\t ((256 + mantissa) << exponent)) /\n+\t\t\t\t256))\n+\t\t\tmantissa -= 1;\n+\t}\n+\n+\tif (div_exp > MAX_RATE_DIV_EXP || exponent > MAX_RATE_EXPONENT ||\n+\t    mantissa > MAX_RATE_MANTISSA)\n+\t\treturn 0;\n+\n+\tif (div_exp_p)\n+\t\t*div_exp_p = div_exp;\n+\tif (exponent_p)\n+\t\t*exponent_p = exponent;\n+\tif (mantissa_p)\n+\t\t*mantissa_p = mantissa;\n+\n+\t/* Calculate real rate value */\n+\treturn METER_RATE(exponent, mantissa, div_exp);\n+}\n+\n+static inline uint64_t\n+meter_burst_to_nix(uint64_t value, uint64_t *exponent_p, uint64_t *mantissa_p)\n+{\n+\tuint64_t exponent, mantissa;\n+\n+\tif (value < ROC_NIX_BPF_BURST_MIN || value > ROC_NIX_BPF_BURST_MAX)\n+\t\treturn 0;\n+\n+\t/* Calculate burst exponent and mantissa using\n+\t * the following formula:\n+\t *\n+\t * value = (((256 + mantissa) << (exponent + 1)\n+\t / 256)\n+\t *\n+\t */\n+\texponent = MAX_BURST_EXPONENT;\n+\tmantissa = MAX_BURST_MANTISSA;\n+\n+\twhile (value < (1ull << (exponent + 1)))\n+\t\texponent -= 1;\n+\n+\twhile (value < ((256 + mantissa) << (exponent + 1)) / 256)\n+\t\tmantissa -= 1;\n+\n+\tif (exponent > MAX_BURST_EXPONENT || mantissa > MAX_BURST_MANTISSA)\n+\t\treturn 0;\n+\n+\tif (exponent_p)\n+\t\t*exponent_p = exponent;\n+\tif (mantissa_p)\n+\t\t*mantissa_p = mantissa;\n+\n+\treturn METER_BURST(exponent, mantissa);\n+}\n+\n uint8_t\n roc_nix_bpf_level_to_idx(enum roc_nix_bpf_level_flag level_f)\n {\n@@ -210,3 +307,129 @@ roc_nix_bpf_free_all(struct roc_nix *roc_nix)\n \treq->free_all = true;\n \treturn mbox_process(mbox);\n }\n+\n+int\n+roc_nix_bpf_config(struct roc_nix *roc_nix, uint16_t id,\n+\t\t   enum roc_nix_bpf_level_flag lvl_flag,\n+\t\t   struct roc_nix_bpf_cfg *cfg)\n+{\n+\tuint64_t exponent_p = 0, mantissa_p = 0, div_exp_p = 0;\n+\tstruct mbox *mbox = get_mbox(roc_nix);\n+\tstruct nix_cn10k_aq_enq_req *aq;\n+\tuint8_t level_idx;\n+\n+\tif (roc_model_is_cn9k())\n+\t\treturn NIX_ERR_HW_NOTSUP;\n+\n+\tif (!cfg)\n+\t\treturn NIX_ERR_PARAM;\n+\n+\tlevel_idx = roc_nix_bpf_level_to_idx(lvl_flag);\n+\tif (level_idx == ROC_NIX_BPF_LEVEL_IDX_INVALID)\n+\t\treturn NIX_ERR_PARAM;\n+\n+\taq = mbox_alloc_msg_nix_cn10k_aq_enq(mbox);\n+\tif (aq == NULL)\n+\t\treturn -ENOSPC;\n+\taq->qidx = (sw_to_hw_lvl_map[level_idx] << 14) | id;\n+\taq->ctype = NIX_AQ_CTYPE_BAND_PROF;\n+\taq->op = NIX_AQ_INSTOP_WRITE;\n+\n+\tswitch (cfg->alg) {\n+\tcase ROC_NIX_BPF_ALGO_2697:\n+\t\tmeter_rate_to_nix(cfg->algo2697.cir, &exponent_p, &mantissa_p,\n+\t\t\t\t  &div_exp_p);\n+\t\taq->prof.cir_mantissa = mantissa_p;\n+\t\taq->prof.cir_exponent = exponent_p;\n+\n+\t\tmeter_burst_to_nix(cfg->algo2697.cbs, &exponent_p, &mantissa_p);\n+\t\taq->prof.cbs_mantissa = mantissa_p;\n+\t\taq->prof.cbs_exponent = exponent_p;\n+\n+\t\tmeter_burst_to_nix(cfg->algo2697.ebs, &exponent_p, &mantissa_p);\n+\t\taq->prof.pebs_mantissa = mantissa_p;\n+\t\taq->prof.pebs_exponent = exponent_p;\n+\n+\t\taq->prof_mask.cir_mantissa = ~(aq->prof_mask.cir_mantissa);\n+\t\taq->prof_mask.cbs_mantissa = ~(aq->prof_mask.cbs_mantissa);\n+\t\taq->prof_mask.pebs_mantissa = ~(aq->prof_mask.pebs_mantissa);\n+\t\taq->prof_mask.cir_exponent = ~(aq->prof_mask.cir_exponent);\n+\t\taq->prof_mask.cbs_exponent = ~(aq->prof_mask.cbs_exponent);\n+\t\taq->prof_mask.pebs_exponent = ~(aq->prof_mask.pebs_exponent);\n+\t\tbreak;\n+\n+\tcase ROC_NIX_BPF_ALGO_2698:\n+\t\tmeter_rate_to_nix(cfg->algo2698.cir, &exponent_p, &mantissa_p,\n+\t\t\t\t  &div_exp_p);\n+\t\taq->prof.cir_mantissa = mantissa_p;\n+\t\taq->prof.cir_exponent = exponent_p;\n+\n+\t\tmeter_rate_to_nix(cfg->algo2698.pir, &exponent_p, &mantissa_p,\n+\t\t\t\t  &div_exp_p);\n+\t\taq->prof.peir_mantissa = mantissa_p;\n+\t\taq->prof.peir_exponent = exponent_p;\n+\n+\t\tmeter_burst_to_nix(cfg->algo2698.cbs, &exponent_p, &mantissa_p);\n+\t\taq->prof.cbs_mantissa = mantissa_p;\n+\t\taq->prof.cbs_exponent = exponent_p;\n+\n+\t\tmeter_burst_to_nix(cfg->algo2698.pbs, &exponent_p, &mantissa_p);\n+\t\taq->prof.pebs_mantissa = mantissa_p;\n+\t\taq->prof.pebs_exponent = exponent_p;\n+\n+\t\taq->prof_mask.cir_mantissa = ~(aq->prof_mask.cir_mantissa);\n+\t\taq->prof_mask.peir_mantissa = ~(aq->prof_mask.peir_mantissa);\n+\t\taq->prof_mask.cbs_mantissa = ~(aq->prof_mask.cbs_mantissa);\n+\t\taq->prof_mask.pebs_mantissa = ~(aq->prof_mask.pebs_mantissa);\n+\t\taq->prof_mask.cir_exponent = ~(aq->prof_mask.cir_exponent);\n+\t\taq->prof_mask.peir_exponent = ~(aq->prof_mask.peir_exponent);\n+\t\taq->prof_mask.cbs_exponent = ~(aq->prof_mask.cbs_exponent);\n+\t\taq->prof_mask.pebs_exponent = ~(aq->prof_mask.pebs_exponent);\n+\t\tbreak;\n+\n+\tcase ROC_NIX_BPF_ALGO_4115:\n+\t\tmeter_rate_to_nix(cfg->algo4115.cir, &exponent_p, &mantissa_p,\n+\t\t\t\t  &div_exp_p);\n+\t\taq->prof.cir_mantissa = mantissa_p;\n+\t\taq->prof.cir_exponent = exponent_p;\n+\n+\t\tmeter_rate_to_nix(cfg->algo4115.eir, &exponent_p, &mantissa_p,\n+\t\t\t\t  &div_exp_p);\n+\t\taq->prof.peir_mantissa = mantissa_p;\n+\t\taq->prof.peir_exponent = exponent_p;\n+\n+\t\tmeter_burst_to_nix(cfg->algo4115.cbs, &exponent_p, &mantissa_p);\n+\t\taq->prof.cbs_mantissa = mantissa_p;\n+\t\taq->prof.cbs_exponent = exponent_p;\n+\n+\t\tmeter_burst_to_nix(cfg->algo4115.ebs, &exponent_p, &mantissa_p);\n+\t\taq->prof.pebs_mantissa = mantissa_p;\n+\t\taq->prof.pebs_exponent = exponent_p;\n+\n+\t\taq->prof_mask.cir_mantissa = ~(aq->prof_mask.cir_mantissa);\n+\t\taq->prof_mask.peir_mantissa = ~(aq->prof_mask.peir_mantissa);\n+\t\taq->prof_mask.cbs_mantissa = ~(aq->prof_mask.cbs_mantissa);\n+\t\taq->prof_mask.pebs_mantissa = ~(aq->prof_mask.pebs_mantissa);\n+\n+\t\taq->prof_mask.cir_exponent = ~(aq->prof_mask.cir_exponent);\n+\t\taq->prof_mask.peir_exponent = ~(aq->prof_mask.peir_exponent);\n+\t\taq->prof_mask.cbs_exponent = ~(aq->prof_mask.cbs_exponent);\n+\t\taq->prof_mask.pebs_exponent = ~(aq->prof_mask.pebs_exponent);\n+\t\tbreak;\n+\n+\tdefault:\n+\t\treturn NIX_ERR_PARAM;\n+\t}\n+\n+\taq->prof.lmode = cfg->lmode;\n+\taq->prof.gc_action = cfg->action[ROC_NIX_BPF_COLOR_GREEN];\n+\taq->prof.yc_action = cfg->action[ROC_NIX_BPF_COLOR_YELLOW];\n+\taq->prof.rc_action = cfg->action[ROC_NIX_BPF_COLOR_RED];\n+\n+\taq->prof_mask.lmode = ~(aq->prof_mask.lmode);\n+\taq->prof_mask.gc_action = ~(aq->prof_mask.gc_action);\n+\taq->prof_mask.yc_action = ~(aq->prof_mask.yc_action);\n+\taq->prof_mask.rc_action = ~(aq->prof_mask.rc_action);\n+\n+\treturn mbox_process(mbox);\n+}\ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex 025daf320f..849cbeed22 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -75,6 +75,7 @@ INTERNAL {\n \troc_se_auth_key_set;\n \troc_se_ciph_key_set;\n \troc_nix_bpf_alloc;\n+\troc_nix_bpf_config;\n \troc_nix_bpf_count_get;\n \troc_nix_bpf_free;\n \troc_nix_bpf_free_all;\n",
    "prefixes": [
        "06/27"
    ]
}