Show a patch.

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

{
    "id": 42953,
    "url": "http://patches.dpdk.org/api/patches/42953/",
    "web_url": "http://patches.dpdk.org/patch/42953/",
    "project": {
        "id": 1,
        "url": "http://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": "<02048f950f6b4cf3a2bb203c6b039245c2268c3d.1531387413.git.nelio.laranjeiro@6wind.com>",
    "date": "2018-07-12T09:30:52",
    "name": "[v4,06/21] net/mlx5: add flow stop/start",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4d81d3e93f3d57685b2f86413c0bce813c7bd210",
    "submitter": {
        "id": 243,
        "url": "http://patches.dpdk.org/api/people/243/",
        "name": "Nélio Laranjeiro",
        "email": "nelio.laranjeiro@6wind.com"
    },
    "delegate": {
        "id": 6624,
        "url": "http://patches.dpdk.org/api/users/6624/",
        "username": "shahafs",
        "first_name": "Shahaf",
        "last_name": "Shuler",
        "email": "shahafs@mellanox.com"
    },
    "mbox": "http://patches.dpdk.org/patch/42953/mbox/",
    "series": [
        {
            "id": 544,
            "url": "http://patches.dpdk.org/api/series/544/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=544",
            "date": "2018-07-12T09:30:46",
            "name": "net/mlx5: flow rework",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/544/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42953/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/42953/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<cover.1531387413.git.nelio.laranjeiro@6wind.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.18.0",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B89611B5CC;\n\tThu, 12 Jul 2018 11:31:41 +0200 (CEST)",
            "from mail-wr1-f67.google.com (mail-wr1-f67.google.com\n\t[209.85.221.67]) by dpdk.org (Postfix) with ESMTP id F23B91B561\n\tfor <dev@dpdk.org>; Thu, 12 Jul 2018 11:31:30 +0200 (CEST)",
            "by mail-wr1-f67.google.com with SMTP id c4-v6so8291146wrs.12\n\tfor <dev@dpdk.org>; Thu, 12 Jul 2018 02:31:30 -0700 (PDT)",
            "from laranjeiro-vm.dev.6wind.com\n\t(host.78.145.23.62.rev.coltfrance.com. [62.23.145.78])\n\tby smtp.gmail.com with ESMTPSA id\n\ts2-v6sm18717603wrn.75.2018.07.12.02.31.29\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 12 Jul 2018 02:31:29 -0700 (PDT)"
        ],
        "References": "<cover.1531293415.git.nelio.laranjeiro@6wind.com>\n\t<cover.1531387413.git.nelio.laranjeiro@6wind.com>",
        "X-Google-Smtp-Source": "AAOMgpeNlAy6JyzVfS91VQhL7KzSVu9mrrN6BpDg8BpfPe5VjqVEjzDEmlUvPA4HmgojC2hzBYpdSQ==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Ccw4CjKG9Rqt+pwxyhFq3+hXv9opIbWyMqT/Y9RoQS8=;\n\tb=BLzOZwSqOBeuAMytfilMXM0Ej8gr/SmP9SULH0K6uYjO7+MYKkFW4WFJHuSDTSgA7M\n\tPmWzxK3ky3NL2BsLeEuZC9Ke8S4BVp+dPt47UXWlWM83vRtt3zdgDJtLxdOe5HqxlVXG\n\tiutGbHDndk7s6f1DX5xUeye3UJLBTix5wLlvoWjc+xYOa9idm2hllQQder7tPtbfDI4j\n\tiW+tjXAUcu/BSMslHKXmbmUXQ1OifXs4R9mtBClG5N35tTIZCTPFOjwTKTNf4Ec/FTc2\n\tRyh1ayVG8lUhUlqT1WpLS5KIw/F9ZSlQ2E5BpYQwGY96GJz7UNDU9NNMEqV19DNO9kNy\n\tqDVQ==",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 2002:adf:a963:: with SMTP id\n\tu90-v6mr1228480wrc.248.1531387890065; \n\tThu, 12 Jul 2018 02:31:30 -0700 (PDT)",
        "Message-Id": "<02048f950f6b4cf3a2bb203c6b039245c2268c3d.1531387413.git.nelio.laranjeiro@6wind.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Ccw4CjKG9Rqt+pwxyhFq3+hXv9opIbWyMqT/Y9RoQS8=;\n\tb=OvZJ5zQqU++HIJUUWhlTXKCwBshonhu3oxlqtpFGV7PQFLPk3gCeAcbG9M/UY2Q6KD\n\tFLXHm1JKyhf6LWCWKRnk+fvwHNOLwd9PLbt2Y6TgbnNNWpCEycyQJTWCiRwOUGOeK4Cd\n\tXoKgkXjxBm6/F4kee3BxV67GoX1Sx1J2jYDb9lpO6XA+mJvJBom/2pdGWqzYc1d62HrF\n\tUkJgaY5gFsWgFV5p6K9cIsvS2hzzUCW2UkYPfiYGtkcoxOkiG0NpSKwZxBH93GwMfpnF\n\trPdueCRLh+9/d6wcija8QZSqeWtvJHekRtsoGJnJHxRfJdtzD51dx4RM2Lj6wP7WGnIe\n\tNRUw==",
        "Delivered-To": "patchwork@dpdk.org",
        "Precedence": "list",
        "From": "Nelio Laranjeiro <nelio.laranjeiro@6wind.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org,\n\tYongseok Koh <yskoh@mellanox.com>",
        "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>",
        "Date": "Thu, 12 Jul 2018 11:30:52 +0200",
        "X-Gm-Message-State": "AOUpUlGnt7ToF+P3OCnuhl/LiMkVkV8YkSINCxRvO9MjOPMjYYeOIfdR\n\tfNCEzTKdo4GKKrw0Vtnv0PqkQB7oKg==",
        "Cc": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v4 06/21] net/mlx5: add flow stop/start"
    },
    "content": "Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>\nAcked-by: Yongseok Koh <yskoh@mellanox.com>\n---\n drivers/net/mlx5/mlx5_flow.c | 24 ++++++++++++++++++++----\n 1 file changed, 20 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c\nindex 6041a4573..77f1bd5cc 100644\n--- a/drivers/net/mlx5/mlx5_flow.c\n+++ b/drivers/net/mlx5/mlx5_flow.c\n@@ -908,9 +908,12 @@ mlx5_flow_list_flush(struct rte_eth_dev *dev, struct mlx5_flows *list)\n  *   Pointer to a TAILQ flow list.\n  */\n void\n-mlx5_flow_stop(struct rte_eth_dev *dev __rte_unused,\n-\t       struct mlx5_flows *list __rte_unused)\n+mlx5_flow_stop(struct rte_eth_dev *dev, struct mlx5_flows *list)\n {\n+\tstruct rte_flow *flow;\n+\n+\tTAILQ_FOREACH_REVERSE(flow, list, mlx5_flows, next)\n+\t\tmlx5_flow_remove(dev, flow);\n }\n \n /**\n@@ -925,10 +928,23 @@ mlx5_flow_stop(struct rte_eth_dev *dev __rte_unused,\n  *   0 on success, a negative errno value otherwise and rte_errno is set.\n  */\n int\n-mlx5_flow_start(struct rte_eth_dev *dev __rte_unused,\n-\t\tstruct mlx5_flows *list __rte_unused)\n+mlx5_flow_start(struct rte_eth_dev *dev, struct mlx5_flows *list)\n {\n+\tstruct rte_flow *flow;\n+\tstruct rte_flow_error error;\n+\tint ret = 0;\n+\n+\tTAILQ_FOREACH(flow, list, next) {\n+\t\tret = mlx5_flow_apply(dev, flow, &error);\n+\t\tif (ret < 0)\n+\t\t\tgoto error;\n+\t}\n \treturn 0;\n+error:\n+\tret = rte_errno; /* Save rte_errno before cleanup. */\n+\tmlx5_flow_stop(dev, list);\n+\trte_errno = ret; /* Restore rte_errno. */\n+\treturn -rte_errno;\n }\n \n /**\n",
    "prefixes": [
        "v4",
        "06/21"
    ]
}