get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115746,
    "url": "http://patchwork.dpdk.org/api/patches/115746/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220901142041.2628537-19-cristian.dumitrescu@intel.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": "<20220901142041.2628537-19-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220901142041.2628537-19-cristian.dumitrescu@intel.com",
    "date": "2022-09-01T14:20:38",
    "name": "[V3,18/21] net/softnic: add the pipeline meter CLI commands",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9c224793b322140ff25d9c4d9225719457e3cd03",
    "submitter": {
        "id": 19,
        "url": "http://patchwork.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220901142041.2628537-19-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24503,
            "url": "http://patchwork.dpdk.org/api/series/24503/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24503",
            "date": "2022-09-01T14:20:20",
            "name": "net/softnic: replace the legacy pipeline with SWX pipeline",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/24503/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/115746/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/115746/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 A076AA0032;\n\tThu,  1 Sep 2022 16:23:38 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7688842BD8;\n\tThu,  1 Sep 2022 16:21:25 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 9F5EC42B6D\n for <dev@dpdk.org>; Thu,  1 Sep 2022 16:21:10 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Sep 2022 07:20:59 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by fmsmga004.fm.intel.com with ESMTP; 01 Sep 2022 07:20:58 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1662042070; x=1693578070;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=PF3mhNENA3pdhPV+EdP3c6pqTgqQ/pnNr4AmnA+yjE4=;\n b=gs1IIp6DoUeBcZx6Gr4oCRLZQTBgoIe3au9tBAdxnKVtyDFQrNx4Dec1\n npFw/gGke1WfYAQEEQDFV7KtlhpavCcbZOOaBWBqW5b5cmVNoJSTwgrt/\n GiPK7GhNk+Vmj7JjPYw5xYApMr5x4KX8dTki/1LxyiNV95msmjaG7dY6N\n drIKyG7RSPmdlqPjNfbtRdT+w9W0qSUIc/AEf14+u4Xa/VxCfvuYOtgcL\n M+A07acYILT4D8sh7bP61boLlf5uFhjHPRA+T2vyqywcgb2hxiA7aDOZ9\n Pj27edvv7HrFLTOlQPzCJcJZ/mHButLu77/d2TuNr/egl0bFLZ++lGElp g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10457\"; a=\"357444085\"",
            "E=Sophos;i=\"5.93,281,1654585200\"; d=\"scan'208\";a=\"357444085\"",
            "E=Sophos;i=\"5.93,281,1654585200\"; d=\"scan'208\";a=\"680870234\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Yogesh Jangra <yogesh.jangra@intel.com>",
        "Subject": "[PATCH V3 18/21] net/softnic: add the pipeline meter CLI commands",
        "Date": "Thu,  1 Sep 2022 14:20:38 +0000",
        "Message-Id": "<20220901142041.2628537-19-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220901142041.2628537-1-cristian.dumitrescu@intel.com>",
        "References": "<20220804165839.1074817-1-cristian.dumitrescu@intel.com>\n <20220901142041.2628537-1-cristian.dumitrescu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "Add CLI commands for pipeline meter configuration.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\n---\n drivers/net/softnic/rte_eth_softnic_cli.c | 423 ++++++++++++++++++++++\n 1 file changed, 423 insertions(+)",
    "diff": "diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net/softnic/rte_eth_softnic_cli.c\nindex b1f7460f47..bbbf3babda 100644\n--- a/drivers/net/softnic/rte_eth_softnic_cli.c\n+++ b/drivers/net/softnic/rte_eth_softnic_cli.c\n@@ -1520,6 +1520,395 @@ cmd_softnic_pipeline_regwr(struct pmd_internals *softnic,\n \t}\n }\n \n+/**\n+ * pipeline <pipeline_name> meter profile <profile_name> add cir <cir> pir <pir> cbs <cbs> pbs <pbs>\n+ */\n+static void\n+cmd_softnic_pipeline_meter_profile_add(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct rte_meter_trtcm_params params;\n+\tstruct pipeline *p;\n+\tconst char *profile_name;\n+\tint status;\n+\n+\tif (n_tokens != 14) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tp = softnic_pipeline_find(softnic, tokens[1]);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[2], \"meter\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"meter\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[3], \"profile\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"profile\");\n+\t\treturn;\n+\t}\n+\n+\tprofile_name = tokens[4];\n+\n+\tif (strcmp(tokens[5], \"add\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"add\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[6], \"cir\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"cir\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint64(&params.cir, tokens[7])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"cir\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[8], \"pir\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"pir\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint64(&params.pir, tokens[9])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pir\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[10], \"cbs\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"cbs\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint64(&params.cbs, tokens[11])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"cbs\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[12], \"pbs\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"pbs\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint64(&params.pbs, tokens[13])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pbs\");\n+\t\treturn;\n+\t}\n+\n+\tstatus = rte_swx_ctl_meter_profile_add(p->p, profile_name, &params);\n+\tif (status) {\n+\t\tsnprintf(out, out_size, \"Command failed.\\n\");\n+\t\treturn;\n+\t}\n+}\n+\n+/**\n+ * pipeline <pipeline_name> meter profile <profile_name> delete\n+ */\n+static void\n+cmd_softnic_pipeline_meter_profile_delete(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct pipeline *p;\n+\tconst char *profile_name;\n+\tint status;\n+\n+\tif (n_tokens != 6) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tp = softnic_pipeline_find(softnic, tokens[1]);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[2], \"meter\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"meter\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[3], \"profile\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"profile\");\n+\t\treturn;\n+\t}\n+\n+\tprofile_name = tokens[4];\n+\n+\tif (strcmp(tokens[5], \"delete\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"delete\");\n+\t\treturn;\n+\t}\n+\n+\tstatus = rte_swx_ctl_meter_profile_delete(p->p, profile_name);\n+\tif (status) {\n+\t\tsnprintf(out, out_size, \"Command failed.\\n\");\n+\t\treturn;\n+\t}\n+}\n+\n+/**\n+ * pipeline <pipeline_name> meter <meter_array_name> from <index0> to <index1> reset\n+ */\n+static void\n+cmd_softnic_pipeline_meter_reset(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct pipeline *p;\n+\tconst char *name;\n+\tuint32_t idx0 = 0, idx1 = 0;\n+\n+\tif (n_tokens != 9) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tp = softnic_pipeline_find(softnic, tokens[1]);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[2], \"meter\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"meter\");\n+\t\treturn;\n+\t}\n+\n+\tname = tokens[3];\n+\n+\tif (strcmp(tokens[4], \"from\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"from\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&idx0, tokens[5])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"index0\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[6], \"to\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"to\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&idx1, tokens[7]) || idx1 < idx0) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"index1\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[8], \"reset\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"reset\");\n+\t\treturn;\n+\t}\n+\n+\tfor ( ; idx0 <= idx1; idx0++) {\n+\t\tint status;\n+\n+\t\tstatus = rte_swx_ctl_meter_reset(p->p, name, idx0);\n+\t\tif (status) {\n+\t\t\tsnprintf(out, out_size, \"Command failed for index %u.\\n\", idx0);\n+\t\t\treturn;\n+\t\t}\n+\t}\n+}\n+\n+/**\n+ * pipeline <pipeline_name> meter <meter_array_name> from <index0> to <index1> set\n+ *\tprofile <profile_name>\n+ */\n+static void\n+cmd_softnic_pipeline_meter_set(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct pipeline *p;\n+\tconst char *name, *profile_name;\n+\tuint32_t idx0 = 0, idx1 = 0;\n+\n+\tif (n_tokens != 11) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tp = softnic_pipeline_find(softnic, tokens[1]);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[2], \"meter\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"meter\");\n+\t\treturn;\n+\t}\n+\n+\tname = tokens[3];\n+\n+\tif (strcmp(tokens[4], \"from\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"from\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&idx0, tokens[5])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"index0\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[6], \"to\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"to\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&idx1, tokens[7]) || idx1 < idx0) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"index1\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[8], \"set\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"set\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[9], \"profile\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"profile\");\n+\t\treturn;\n+\t}\n+\n+\tprofile_name = tokens[10];\n+\n+\tfor ( ; idx0 <= idx1; idx0++) {\n+\t\tint status;\n+\n+\t\tstatus = rte_swx_ctl_meter_set(p->p, name, idx0, profile_name);\n+\t\tif (status) {\n+\t\t\tsnprintf(out, out_size, \"Command failed for index %u.\\n\", idx0);\n+\t\t\treturn;\n+\t\t}\n+\t}\n+}\n+\n+/**\n+ * pipeline <pipeline_name> meter <meter_array_name> from <index0> to <index1> stats\n+ */\n+static void\n+cmd_softnic_pipeline_meter_stats(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct rte_swx_ctl_meter_stats stats;\n+\tstruct pipeline *p;\n+\tconst char *name;\n+\tuint32_t idx0 = 0, idx1 = 0;\n+\n+\tif (n_tokens != 9) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tp = softnic_pipeline_find(softnic, tokens[1]);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[2], \"meter\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"meter\");\n+\t\treturn;\n+\t}\n+\n+\tname = tokens[3];\n+\n+\tif (strcmp(tokens[4], \"from\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"from\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&idx0, tokens[5])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"index0\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[6], \"to\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"to\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&idx1, tokens[7]) || idx1 < idx0) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"index1\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[8], \"stats\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"stats\");\n+\t\treturn;\n+\t}\n+\n+\t/* Table header. */\n+\tsnprintf(out, out_size, \"+-%7s-+-%16s-+-%16s-+-%16s-+-%16s-+-%16s-+-%16s-+\\n\",\n+\t\t \"-------\",\n+\t\t \"----------------\", \"----------------\", \"----------------\",\n+\t\t \"----------------\", \"----------------\", \"----------------\");\n+\tout_size -= strlen(out);\n+\tout += strlen(out);\n+\n+\tsnprintf(out, out_size, \"| %4s | %16s | %16s | %16s | %16s | %16s | %16s |\\n\",\n+\t\t \"METER #\",\n+\t\t \"GREEN (packets)\", \"YELLOW (packets)\", \"RED (packets)\",\n+\t\t \"GREEN (bytes)\", \"YELLOW (bytes)\", \"RED (bytes)\");\n+\tout_size -= strlen(out);\n+\tout += strlen(out);\n+\n+\tsnprintf(out, out_size, \"+-%7s-+-%16s-+-%16s-+-%16s-+-%16s-+-%16s-+-%16s-+\\n\",\n+\t\t \"-------\",\n+\t\t \"----------------\", \"----------------\", \"----------------\",\n+\t\t \"----------------\", \"----------------\", \"----------------\");\n+\tout_size -= strlen(out);\n+\tout += strlen(out);\n+\n+\t/* Table rows. */\n+\tfor ( ; idx0 <= idx1; idx0++) {\n+\t\tint status;\n+\n+\t\tstatus = rte_swx_ctl_meter_stats_read(p->p, name, idx0, &stats);\n+\t\tif (status) {\n+\t\t\tsnprintf(out, out_size, \"Pipeline meter stats error at index %u.\\n\", idx0);\n+\t\t\tout_size -= strlen(out);\n+\t\t\tout += strlen(out);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tsnprintf(out, out_size, \"| %7d | %16\" PRIx64 \" | %16\" PRIx64 \" | %16\" PRIx64\n+\t\t\t \" | %16\" PRIx64 \" | %16\" PRIx64 \" | %16\" PRIx64 \" |\\n\",\n+\t\t\t idx0,\n+\t\t\t stats.n_pkts[RTE_COLOR_GREEN],\n+\t\t\t stats.n_pkts[RTE_COLOR_YELLOW],\n+\t\t\t stats.n_pkts[RTE_COLOR_RED],\n+\t\t\t stats.n_bytes[RTE_COLOR_GREEN],\n+\t\t\t stats.n_bytes[RTE_COLOR_YELLOW],\n+\t\t\t stats.n_bytes[RTE_COLOR_RED]);\n+\t\tout_size -= strlen(out);\n+\t\tout += strlen(out);\n+\t}\n+}\n+\n /**\n  * thread <thread_id> pipeline <pipeline_name> enable [ period <timer_period_ms> ]\n  */\n@@ -1760,6 +2149,40 @@ softnic_cli_process(char *in, char *out, size_t out_size, void *arg)\n \t\t\tcmd_softnic_pipeline_regwr(softnic, tokens, n_tokens, out, out_size);\n \t\t\treturn;\n \t\t}\n+\n+\t\tif (n_tokens >= 6 &&\n+\t\t\t!strcmp(tokens[2], \"meter\") &&\n+\t\t\t!strcmp(tokens[3], \"profile\") &&\n+\t\t\t!strcmp(tokens[5], \"add\")) {\n+\t\t\tcmd_softnic_pipeline_meter_profile_add(softnic, tokens, n_tokens,\n+\t\t\t\tout, out_size);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tif (n_tokens >= 6 &&\n+\t\t\t!strcmp(tokens[2], \"meter\") &&\n+\t\t\t!strcmp(tokens[3], \"profile\") &&\n+\t\t\t!strcmp(tokens[5], \"delete\")) {\n+\t\t\tcmd_softnic_pipeline_meter_profile_delete(softnic, tokens, n_tokens,\n+\t\t\t\tout, out_size);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tif (n_tokens >= 9 && !strcmp(tokens[2], \"meter\") && !strcmp(tokens[8], \"reset\")) {\n+\t\t\tcmd_softnic_pipeline_meter_reset(softnic, tokens, n_tokens, out, out_size);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tif (n_tokens >= 9 && !strcmp(tokens[2], \"meter\") && !strcmp(tokens[8], \"set\")) {\n+\t\t\tcmd_softnic_pipeline_meter_set(softnic, tokens, n_tokens, out, out_size);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tif (n_tokens >= 9 && !strcmp(tokens[2], \"meter\") && !strcmp(tokens[8], \"stats\")) {\n+\t\t\tcmd_softnic_pipeline_meter_stats(softnic, tokens, n_tokens, out, out_size);\n+\t\t\treturn;\n+\t\t}\n+\n \t}\n \n \tif (strcmp(tokens[0], \"thread\") == 0) {\n",
    "prefixes": [
        "V3",
        "18/21"
    ]
}