get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 82611,
    "url": "http://patches.dpdk.org/api/patches/82611/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201028095935.27855-2-getelson@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": "<20201028095935.27855-2-getelson@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201028095935.27855-2-getelson@nvidia.com",
    "date": "2020-10-28T09:59:35",
    "name": "[2/2] examples/l3fwd-power: fix check_ptype query",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0212c5db854d5e843e3eb25de49cdb9baed4415f",
    "submitter": {
        "id": 1882,
        "url": "http://patches.dpdk.org/api/people/1882/?format=api",
        "name": "Gregory Etelson",
        "email": "getelson@nvidia.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201028095935.27855-2-getelson@nvidia.com/mbox/",
    "series": [
        {
            "id": 13414,
            "url": "http://patches.dpdk.org/api/series/13414/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13414",
            "date": "2020-10-28T09:59:34",
            "name": "[1/2] drivers/net/mlx5: fix representor interrupts handler",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/13414/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/82611/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/82611/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 E6ADDA04DD;\n\tWed, 28 Oct 2020 11:00:23 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1F8E5C96E;\n\tWed, 28 Oct 2020 11:00:07 +0100 (CET)",
            "from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com\n [216.228.121.143]) by dpdk.org (Postfix) with ESMTP id F41C3C954\n for <dev@dpdk.org>; Wed, 28 Oct 2020 11:00:02 +0100 (CET)",
            "from hqmail.nvidia.com (Not Verified[216.228.121.13]) by\n hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA)\n id <B5f9941270001>; Wed, 28 Oct 2020 03:00:07 -0700",
            "from nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13)\n with Microsoft SMTP Server (TLS) id 15.0.1473.3;\n Wed, 28 Oct 2020 09:59:54 +0000"
        ],
        "From": "Gregory Etelson <getelson@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<getelson@nvidia.com>, <matan@nvidia.com>, <rasland@nvidia.com>, \"David\n Hunt\" <david.hunt@intel.com>, Jianfeng Tan <jianfeng.tan@intel.com>",
        "Date": "Wed, 28 Oct 2020 11:59:35 +0200",
        "Message-ID": "<20201028095935.27855-2-getelson@nvidia.com>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20201028095935.27855-1-getelson@nvidia.com>",
        "References": "<20201028095935.27855-1-getelson@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "quoted-printable",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.124.1.5]",
        "X-ClientProxiedBy": "HQMAIL105.nvidia.com (172.20.187.12) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1;\n t=1603879207; bh=SuqC5Ah0yCMyB2WT+D47eXd9LOawgPqbQNKgXzWRKMs=;\n h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To:\n References:MIME-Version:Content-Transfer-Encoding:Content-Type:\n X-Originating-IP:X-ClientProxiedBy;\n b=hBUwL/F44/cta2enjp9rKqTAlsw/ETezI9fsk9fqP2+H6ZwC3AOuZK/IPhZE6Jj6R\n T93Hg1vvwzelhOCGUbB61tIXd7POxxxyUoo0HvC3scOTSHrULLQPxoIlvVnDdvmFLP\n 36XRJ7yYQpQu2cwnZ/SFvSR7FYAm+q2mKrRuSKEvTFmBpjWjBoPHm4dkTU102iVk+j\n sC9r/zydWo3c+lExwpF3cYHIaMVhaxYidAALY/xOOB6AWhEHdJdsYP9MJDl+18+78S\n SsGW6xv+raJbiK1fSA6460FNLOIxVjxfuhCu8RpflUXqI1VrzwZdABWtDOERehD7Sc\n h2/S2lJoTi74w==",
        "Subject": "[dpdk-dev] [PATCH 2/2] examples/l3fwd-power: fix check_ptype query",
        "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": "l3fwd-power uses `--parse-ptype' parameter to query egress packets\ntype.  Before that feature is eanbled l3fwd-power verifies PMD ability\nto advertise supporrtred packet types with\nrte_eth_dev_get_supported_ptypes().\n\nThe patch updates code for PMDs that register supported types after\ndev_start.\n\nFixes: 82bea4661626 (\"examples/l3fwd-power: add --parse-ptype option\")\n\nSigned-off-by: Gregory Etelson <getelson@nvidia.com>\n---\n examples/l3fwd-power/main.c | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex a48d75f68f..a18a25f316 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -2702,9 +2702,7 @@ main(int argc, char **argv)\n \t\t\t\tif (add_cb_parse_ptype(portid, queueid) < 0)\n \t\t\t\t\trte_exit(EXIT_FAILURE,\n \t\t\t\t\t\t \"Fail to add ptype cb\\n\");\n-\t\t\t} else if (!check_ptype(portid))\n-\t\t\t\trte_exit(EXIT_FAILURE,\n-\t\t\t\t\t \"PMD can not provide needed ptypes\\n\");\n+\t\t\t}\n \t\t}\n \t}\n \n@@ -2735,6 +2733,11 @@ main(int argc, char **argv)\n \t\t}\n \t\t/* initialize spinlock for each port */\n \t\trte_spinlock_init(&(locks[portid]));\n+\n+\t\tif (!parse_ptype)\n+\t\t\tif (!check_ptype(portid))\n+\t\t\t\trte_exit(EXIT_FAILURE,\n+\t\t\t\t\t\"PMD can not provide needed ptypes\\n\");\n \t}\n \n \tcheck_all_ports_link_status(enabled_port_mask);\n",
    "prefixes": [
        "2/2"
    ]
}