get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76817,
    "url": "http://patches.dpdk.org/api/patches/76817/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200908021603.44862-3-huwei013@chinasoftinc.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": "<20200908021603.44862-3-huwei013@chinasoftinc.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200908021603.44862-3-huwei013@chinasoftinc.com",
    "date": "2020-09-08T02:16:03",
    "name": "[2/2] app/testpmd: retain original FDIR mode when configuring DCB",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "4104513bb0728f48bcbc2259d88b1f3fbc4c1e1c",
    "submitter": {
        "id": 1537,
        "url": "http://patches.dpdk.org/api/people/1537/?format=api",
        "name": "Wei Hu (Xavier)",
        "email": "huwei013@chinasoftinc.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/20200908021603.44862-3-huwei013@chinasoftinc.com/mbox/",
    "series": [
        {
            "id": 12002,
            "url": "http://patches.dpdk.org/api/series/12002/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12002",
            "date": "2020-09-08T02:16:01",
            "name": "updates for testpmd",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12002/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76817/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76817/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 6217AA04AA;\n\tTue,  8 Sep 2020 04:16:49 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 014B01C133;\n\tTue,  8 Sep 2020 04:16:39 +0200 (CEST)",
            "from mail.chinasoftinc.com (unknown [114.113.233.8])\n by dpdk.org (Postfix) with ESMTP id 2A06D1C12F\n for <dev@dpdk.org>; Tue,  8 Sep 2020 04:16:37 +0200 (CEST)",
            "from localhost.localdomain (65.49.108.226) by INCCAS002.ito.icss\n (10.168.0.60) with Microsoft SMTP Server id 14.3.487.0; Tue, 8 Sep 2020\n 10:16:34 +0800"
        ],
        "From": "\"Wei Hu (Xavier)\" <huwei013@chinasoftinc.com>",
        "To": "<dev@dpdk.org>, Wenzhuo Lu <wenzhuo.lu@intel.com>, Beilei Xing\n <beilei.xing@intel.com>, Bernard Iremonger <bernard.iremonger@intel.com>,\n Jijiang Liu <jijiang.liu@intel.com>, Jingjing Wu <jingjing.wu@intel.com>,\n Helin Zhang <helin.zhang@intel.com>",
        "CC": "<xavier.huwei@huawei.com>, <lihuisong@huawei.com>,\n <ferruh.yigit@intel.com>",
        "Date": "Tue, 8 Sep 2020 10:16:03 +0800",
        "Message-ID": "<20200908021603.44862-3-huwei013@chinasoftinc.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20200908021603.44862-1-huwei013@chinasoftinc.com>",
        "References": "<20200908021603.44862-1-huwei013@chinasoftinc.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[65.49.108.226]",
        "Subject": "[dpdk-dev] [PATCH 2/2] app/testpmd: retain original FDIR mode when\n\tconfiguring DCB",
        "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": "From: Huisong Li <lihuisong@huawei.com>\n\nSometimes, we have to start testpmd application with --pkt-filter-mode to\ntest flow table feature. When using 'port config 0 dcb vt off 4 pfc on'\ncommand, the dcb information are configured in init_port_dcb_config\nfunction by get_eth_dcb_conf function, And then rte_eth_dev_configure API\nfunction will be called to re-configure PMD driver.\n\nThe values of rxmode and txmode in rte_eth_conf struct used to configure\nPMD driver, come from the current values maintained in testpmd. However,\nthe fdir_conf.mode in rte_eth_conf struct is not set, which may cause that\nsome PMD driver cannot test the flow table feature when multiple TCs are\nenabled.\n\nFixes: 1a572499beb6 (\"app/testpmd: setup DCB forwarding based on traffic class\")\nCc: stable@dpdk.org\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nSigned-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>\n---\n app/test-pmd/testpmd.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex 73543bb..19bf972 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -3521,6 +3521,7 @@ init_port_dcb_config(portid_t pid,\n \n \tport_conf.rxmode = rte_port->dev_conf.rxmode;\n \tport_conf.txmode = rte_port->dev_conf.txmode;\n+\tport_conf.fdir_conf.mode = rte_port->dev_conf.fdir_conf.mode;\n \n \t/*set configuration of DCB in vt mode and DCB in non-vt mode*/\n \tretval = get_eth_dcb_conf(pid, &port_conf, dcb_mode, num_tcs, pfc_en);\n",
    "prefixes": [
        "2/2"
    ]
}