get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 91866,
    "url": "http://patches.dpdk.org/api/patches/91866/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1618916122-181792-8-git-send-email-jiaweiw@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<1618916122-181792-8-git-send-email-jiaweiw@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1618916122-181792-8-git-send-email-jiaweiw@nvidia.com",
    "date": "2021-04-20T10:55:14",
    "name": "[v6,07/15] common/mlx5: add read ASO flow meter HCA capability",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4c4f7e9457e03b882cf1840cb7f50e8d68b349e2",
    "submitter": {
        "id": 1939,
        "url": "http://patches.dpdk.org/api/people/1939/?format=api",
        "name": "Jiawei Wang",
        "email": "jiaweiw@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1618916122-181792-8-git-send-email-jiaweiw@nvidia.com/mbox/",
    "series": [
        {
            "id": 16520,
            "url": "http://patches.dpdk.org/api/series/16520/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16520",
            "date": "2021-04-20T10:55:12",
            "name": "Add ASO meter support in MLX5 PMD",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/16520/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/91866/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/91866/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 B049FA0548;\n\tTue, 20 Apr 2021 12:56:03 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6AD9F41763;\n\tTue, 20 Apr 2021 12:55:35 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 00FFB41729\n for <dev@dpdk.org>; Tue, 20 Apr 2021 12:55:25 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n jiaweiw@nvidia.com) with SMTP; 20 Apr 2021 13:55:24 +0300",
            "from nvidia.com (gen-l-vrt-281.mtl.labs.mlnx [10.237.44.1])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 13KAtMRt009943;\n Tue, 20 Apr 2021 13:55:24 +0300"
        ],
        "From": "Jiawei Wang <jiaweiw@nvidia.com>",
        "To": "matan@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com,\n ferruh.yigit@intel.com, thomas@monjalon.net,\n Shahaf Shuler <shahafs@nvidia.com>",
        "Cc": "dev@dpdk.org, rasland@nvidia.com, asafp@nvidia.com,\n Li Zhang <lizh@nvidia.com>",
        "Date": "Tue, 20 Apr 2021 13:55:14 +0300",
        "Message-Id": "<1618916122-181792-8-git-send-email-jiaweiw@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1618916122-181792-1-git-send-email-jiaweiw@nvidia.com>",
        "References": "<20210331073632.1443011-1-lizh@nvidia.com>\n <1618916122-181792-1-git-send-email-jiaweiw@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v6 07/15] common/mlx5: add read ASO flow meter\n HCA capability",
        "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: Li Zhang <lizh@nvidia.com>\n\nRead and store the device capability of FLOW_METER_ASO general object,\nusing the DevX API.\n\nSigned-off-by: Li Zhang <lizh@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/common/mlx5/mlx5_devx_cmds.c | 14 ++++++++++++++\n drivers/common/mlx5/mlx5_devx_cmds.h |  8 ++++++++\n 2 files changed, 22 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c\nindex ec6069b..88be7de 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.c\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.c\n@@ -696,6 +696,9 @@ struct mlx5_devx_obj *\n \tattr->max_geneve_tlv_option_data_len = MLX5_GET(cmd_hca_cap, hcattr,\n \t\t\tmax_geneve_tlv_option_data_len);\n \tattr->qos.sup = MLX5_GET(cmd_hca_cap, hcattr, qos);\n+\tattr->qos.flow_meter_aso_sup = !!(MLX5_GET64(cmd_hca_cap, hcattr,\n+\t\t\t\t\t general_obj_types) &\n+\t\t\t      MLX5_GENERAL_OBJ_TYPES_CAP_FLOW_METER_ASO);\n \tattr->vdpa.valid = !!(MLX5_GET64(cmd_hca_cap, hcattr,\n \t\t\t\t\t general_obj_types) &\n \t\t\t      MLX5_GENERAL_OBJ_TYPES_CAP_VIRTQ_NET_Q);\n@@ -783,6 +786,17 @@ struct mlx5_devx_obj *\n \t\t\t\tMLX5_GET(qos_cap, hcattr, packet_pacing);\n \t\tattr->qos.wqe_rate_pp =\n \t\t\t\tMLX5_GET(qos_cap, hcattr, wqe_rate_pp);\n+\t\tif (attr->qos.flow_meter_aso_sup) {\n+\t\t\tattr->qos.log_meter_aso_granularity =\n+\t\t\t\tMLX5_GET(qos_cap, hcattr,\n+\t\t\t\t\tlog_meter_aso_granularity);\n+\t\t\tattr->qos.log_meter_aso_max_alloc =\n+\t\t\t\tMLX5_GET(qos_cap, hcattr,\n+\t\t\t\t\tlog_meter_aso_max_alloc);\n+\t\t\tattr->qos.log_max_num_meter_aso =\n+\t\t\t\tMLX5_GET(qos_cap, hcattr,\n+\t\t\t\t\tlog_max_num_meter_aso);\n+\t\t}\n \t}\n \tif (attr->vdpa.valid)\n \t\tmlx5_devx_cmd_query_hca_vdpa_attr(ctx, &attr->vdpa);\ndiff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h\nindex 209e7da..fa8dd38 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.h\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.h\n@@ -50,10 +50,18 @@ struct mlx5_hca_qos_attr {\n \t * Using older driver versions, flow_meter_old can be 1\n \t * while flow_meter is 0.\n \t */\n+\tuint32_t flow_meter_aso_sup:1;\n+\t/* Whether FLOW_METER_ASO Object is supported. */\n \tuint8_t log_max_flow_meter;\n \t/* Power of the maximum supported meters. */\n \tuint8_t flow_meter_reg_c_ids;\n \t/* Bitmap of the reg_Cs available for flow meter to use. */\n+\tuint32_t log_meter_aso_granularity:5;\n+\t/* Power of the minimum allocation granularity Object. */\n+\tuint32_t log_meter_aso_max_alloc:5;\n+\t/* Power of the maximum allocation granularity Object. */\n+\tuint32_t log_max_num_meter_aso:5;\n+\t/* Power of the maximum number of supported objects. */\n \n };\n \n",
    "prefixes": [
        "v6",
        "07/15"
    ]
}