get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 62252,
    "url": "https://patches.dpdk.org/api/patches/62252/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1572479604-178752-4-git-send-email-orika@mellanox.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1572479604-178752-4-git-send-email-orika@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1572479604-178752-4-git-send-email-orika@mellanox.com",
    "date": "2019-10-30T23:53:12",
    "name": "[v7,03/14] net/mlx5: query hca hairpin capabilities",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "94623e3077ed27737e5708bff8a175d3babcd12e",
    "submitter": {
        "id": 795,
        "url": "https://patches.dpdk.org/api/people/795/?format=api",
        "name": "Ori Kam",
        "email": "orika@mellanox.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1572479604-178752-4-git-send-email-orika@mellanox.com/mbox/",
    "series": [
        {
            "id": 7165,
            "url": "https://patches.dpdk.org/api/series/7165/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=7165",
            "date": "2019-10-30T23:53:09",
            "name": "add hairpin feature",
            "version": 7,
            "mbox": "https://patches.dpdk.org/series/7165/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/62252/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/62252/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 036D2A00BE;\n\tThu, 31 Oct 2019 00:54:22 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4AE3A1C138;\n\tThu, 31 Oct 2019 00:53:44 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 608061C118\n for <dev@dpdk.org>; Thu, 31 Oct 2019 00:53:36 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n orika@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 31 Oct 2019 01:53:31 +0200",
            "from pegasus04.mtr.labs.mlnx. (pegasus04.mtr.labs.mlnx\n [10.210.16.126])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x9UNrQvR007114;\n Thu, 31 Oct 2019 01:53:31 +0200"
        ],
        "From": "Ori Kam <orika@mellanox.com>",
        "To": "Matan Azrad <matan@mellanox.com>, Shahaf Shuler <shahafs@mellanox.com>,\n Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "Cc": "dev@dpdk.org, orika@mellanox.com, jingjing.wu@intel.com,\n stephen@networkplumber.org",
        "Date": "Wed, 30 Oct 2019 23:53:12 +0000",
        "Message-Id": "<1572479604-178752-4-git-send-email-orika@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1572479604-178752-1-git-send-email-orika@mellanox.com>",
        "References": "<1569479349-36962-1-git-send-email-orika@mellanox.com>\n <1572479604-178752-1-git-send-email-orika@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v7 03/14] net/mlx5: query hca hairpin capabilities",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "This commit query and store the hairpin capabilities from the device.\n\nThose capabilities will be used when creating the hairpin queue.\n\nSigned-off-by: Ori Kam <orika@mellanox.com>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\n drivers/net/mlx5/mlx5.h           | 4 ++++\n drivers/net/mlx5/mlx5_devx_cmds.c | 7 +++++++\n 2 files changed, 11 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h\nindex b6a51b2..ee04dd0 100644\n--- a/drivers/net/mlx5/mlx5.h\n+++ b/drivers/net/mlx5/mlx5.h\n@@ -187,6 +187,10 @@ struct mlx5_hca_attr {\n \tuint32_t lro_max_msg_sz_mode:2;\n \tuint32_t lro_timer_supported_periods[MLX5_LRO_NUM_SUPP_PERIODS];\n \tuint32_t flex_parser_protocols;\n+\tuint32_t hairpin:1;\n+\tuint32_t log_max_hairpin_queues:5;\n+\tuint32_t log_max_hairpin_wq_data_sz:5;\n+\tuint32_t log_max_hairpin_num_packets:5;\n };\n \n /* Flow list . */\ndiff --git a/drivers/net/mlx5/mlx5_devx_cmds.c b/drivers/net/mlx5/mlx5_devx_cmds.c\nindex 51947d3..17c1671 100644\n--- a/drivers/net/mlx5/mlx5_devx_cmds.c\n+++ b/drivers/net/mlx5/mlx5_devx_cmds.c\n@@ -327,6 +327,13 @@ struct mlx5_devx_obj *\n \tattr->flow_counters_dump = MLX5_GET(cmd_hca_cap, hcattr,\n \t\t\t\t\t    flow_counters_dump);\n \tattr->eswitch_manager = MLX5_GET(cmd_hca_cap, hcattr, eswitch_manager);\n+\tattr->hairpin = MLX5_GET(cmd_hca_cap, hcattr, hairpin);\n+\tattr->log_max_hairpin_queues = MLX5_GET(cmd_hca_cap, hcattr,\n+\t\t\t\t\t\tlog_max_hairpin_queues);\n+\tattr->log_max_hairpin_wq_data_sz = MLX5_GET(cmd_hca_cap, hcattr,\n+\t\t\t\t\t\t    log_max_hairpin_wq_data_sz);\n+\tattr->log_max_hairpin_num_packets = MLX5_GET\n+\t\t(cmd_hca_cap, hcattr, log_min_hairpin_wq_data_sz);\n \tattr->eth_net_offloads = MLX5_GET(cmd_hca_cap, hcattr,\n \t\t\t\t\t  eth_net_offloads);\n \tattr->eth_virt = MLX5_GET(cmd_hca_cap, hcattr, eth_virt);\n",
    "prefixes": [
        "v7",
        "03/14"
    ]
}