get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59782,
    "url": "http://patches.dpdk.org/api/patches/59782/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1569479349-36962-3-git-send-email-orika@mellanox.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": "<1569479349-36962-3-git-send-email-orika@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1569479349-36962-3-git-send-email-orika@mellanox.com",
    "date": "2019-09-26T06:28:58",
    "name": "[02/13] net/mlx5: query hca hairpin capabilities",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "212c4fcd90cad4f662611de4d1ba63bb601b47fe",
    "submitter": {
        "id": 795,
        "url": "http://patches.dpdk.org/api/people/795/?format=api",
        "name": "Ori Kam",
        "email": "orika@mellanox.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1569479349-36962-3-git-send-email-orika@mellanox.com/mbox/",
    "series": [
        {
            "id": 6536,
            "url": "http://patches.dpdk.org/api/series/6536/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6536",
            "date": "2019-09-26T06:28:56",
            "name": "add hairpin feature",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6536/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59782/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/59782/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 46601397D;\n\tThu, 26 Sep 2019 08:30:01 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 12F08397D\n\tfor <dev@dpdk.org>; Thu, 26 Sep 2019 08:30:00 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\torika@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 26 Sep 2019 09:29:55 +0300",
            "from pegasus04.mtr.labs.mlnx. (pegasus04.mtr.labs.mlnx\n\t[10.210.16.126])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x8Q6TmlH012493;\n\tThu, 26 Sep 2019 09:29:55 +0300"
        ],
        "From": "Ori Kam <orika@mellanox.com>",
        "To": "Matan Azrad <matan@mellanox.com>, Shahaf Shuler <shahafs@mellanox.com>, \n\tViacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "Cc": "dev@dpdk.org, orika@mellanox.com, jingjing.wu@intel.com,\n\tstephen@networkplumber.org",
        "Date": "Thu, 26 Sep 2019 06:28:58 +0000",
        "Message-Id": "<1569479349-36962-3-git-send-email-orika@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1569479349-36962-1-git-send-email-orika@mellanox.com>",
        "References": "<1569479349-36962-1-git-send-email-orika@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH 02/13] 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\t<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\t<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>\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 d4d2ca8..cd896c8 100644\n--- a/drivers/net/mlx5/mlx5.h\n+++ b/drivers/net/mlx5/mlx5.h\n@@ -184,6 +184,10 @@ struct mlx5_hca_attr {\n \tuint32_t tunnel_lro_vxlan:1;\n \tuint32_t lro_max_msg_sz_mode:2;\n \tuint32_t lro_timer_supported_periods[MLX5_LRO_NUM_SUPP_PERIODS];\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 acfe1de..b072c37 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": [
        "02/13"
    ]
}