Show a patch.

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

{
    "id": 74568,
    "url": "https://patches.dpdk.org/api/patches/74568/",
    "web_url": "https://patches.dpdk.org/patch/74568/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1595332804-6860-1-git-send-email-michaelba@mellanox.com>",
    "date": "2020-07-21T12:00:04",
    "name": "net/mlx5: fix an ineffective calculation in hairpin splitter",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "96e5a155fc98ac3f835e52821d66a4666a74e9f1",
    "submitter": {
        "id": 1582,
        "url": "https://patches.dpdk.org/api/people/1582/",
        "name": "Michael Baum",
        "email": "michaelba@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74568/mbox/",
    "series": [
        {
            "id": 11205,
            "url": "https://patches.dpdk.org/api/series/11205/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11205",
            "date": "2020-07-21T12:00:04",
            "name": "net/mlx5: fix an ineffective calculation in hairpin splitter",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11205/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74568/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74568/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH] net/mlx5: fix an ineffective calculation in\n\thairpin splitter",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "Michael Baum <michaelba@mellanox.com>",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 521DAA0526;\n\tTue, 21 Jul 2020 14:00:12 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 34EA21BFF9;\n\tTue, 21 Jul 2020 14:00:12 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 7B8951BFE7\n for <dev@dpdk.org>; Tue, 21 Jul 2020 14:00:10 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n matan@mellanox.com) with SMTP; 21 Jul 2020 15:00:08 +0300",
            "from pegasus07.mtr.labs.mlnx (pegasus07.mtr.labs.mlnx\n [10.210.16.112])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 06LC07L7015168;\n Tue, 21 Jul 2020 15:00:07 +0300"
        ],
        "To": "dev@dpdk.org",
        "X-Mailer": "git-send-email 1.8.3.1",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Tue, 21 Jul 2020 12:00:04 +0000",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "Cc": "matan@mellanox.com, viacheslavo@mellanox.com, stable@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<1595332804-6860-1-git-send-email-michaelba@mellanox.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "The flow_hairpin_split function defines a pointer called addr that\npoints to the list of items.\nWhen the function wants to progress in the list, it adds the size of an\nitem to the pointer.\n\nAt the end of the function, it precedes the pointer one more time even\nthough it is not used afterwards. In fact, this line is unaffected and\nthe operation of the function would have been no different without it.\n\nRemove the line where the pointer is preceded unnecessarily.\n\nFixes: d85c7b5ea59f (\"net/mlx5: split hairpin flows\")\nCc: stable@dpdk.org\n\nSigned-off-by: Michael Baum <michaelba@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c | 1 -\n 1 file changed, 1 deletion(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex aba8f41..cf7052b 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -3518,7 +3518,6 @@ struct mlx5_flow_tunnel_info {\n \ttag_item->data = UINT32_MAX;\n \ttag_item->id = UINT16_MAX;\n \titem->mask = tag_item;\n-\taddr += sizeof(struct mlx5_rte_flow_item_tag);\n \titem->last = NULL;\n \titem++;\n \titem->type = RTE_FLOW_ITEM_TYPE_END;\n",
    "prefixes": []
}