get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47954,
    "url": "http://patches.dpdk.org/api/patches/47954/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/84cafa786d943c9d612db31c81d321b95e6e7e5b.1541747960.git.rahul.lakkireddy@chelsio.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": "<84cafa786d943c9d612db31c81d321b95e6e7e5b.1541747960.git.rahul.lakkireddy@chelsio.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/84cafa786d943c9d612db31c81d321b95e6e7e5b.1541747960.git.rahul.lakkireddy@chelsio.com",
    "date": "2018-11-09T07:56:25",
    "name": "[3/6] net/cxgbe: fix check for redefined match items",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c5f8a6ded80cfe0e133055b11bf1ea8c68fb0702",
    "submitter": {
        "id": 241,
        "url": "http://patches.dpdk.org/api/people/241/?format=api",
        "name": "Rahul Lakkireddy",
        "email": "rahul.lakkireddy@chelsio.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/84cafa786d943c9d612db31c81d321b95e6e7e5b.1541747960.git.rahul.lakkireddy@chelsio.com/mbox/",
    "series": [
        {
            "id": 2332,
            "url": "http://patches.dpdk.org/api/series/2332/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2332",
            "date": "2018-11-09T07:56:22",
            "name": "net/cxgbe: bug fixes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/2332/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/47954/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/47954/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 1C4EA4F9C;\n\tFri,  9 Nov 2018 08:57:50 +0100 (CET)",
            "from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8])\n\tby dpdk.org (Postfix) with ESMTP id F1A234F9A;\n\tFri,  9 Nov 2018 08:57:48 +0100 (CET)",
            "from localhost (scalar.blr.asicdesigners.com [10.193.185.94])\n\tby stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id wA97vi4k014826; \n\tThu, 8 Nov 2018 23:57:45 -0800"
        ],
        "From": "Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>",
        "To": "dev@dpdk.org",
        "Cc": "indranil@chelsio.com, nirranjan@chelsio.com, stable@dpdk.org",
        "Date": "Fri,  9 Nov 2018 13:26:25 +0530",
        "Message-Id": "<84cafa786d943c9d612db31c81d321b95e6e7e5b.1541747960.git.rahul.lakkireddy@chelsio.com>",
        "X-Mailer": "git-send-email 2.5.3",
        "In-Reply-To": [
            "<cover.1541747960.git.rahul.lakkireddy@chelsio.com>",
            "<cover.1541747960.git.rahul.lakkireddy@chelsio.com>"
        ],
        "References": [
            "<cover.1541747960.git.rahul.lakkireddy@chelsio.com>",
            "<cover.1541747960.git.rahul.lakkireddy@chelsio.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH 3/6] net/cxgbe: fix check for redefined match\n\titems",
        "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": "Fix issue where ethertype is set to 0x800 for IPv4 by ether match\nitem and IPv4 match item also inherently sets ethertype to 0x800.\n\nCurrent logic returns error when IPv4 match item is parsed. So, fix\nby only bailing if the redefined match items have different values.\n\nFixes: ee61f5113b17 (\"net/cxgbe: parse and validate flows\")\nCc: stable@dpdk.org\n\nSigned-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>\n---\n drivers/net/cxgbe/cxgbe_flow.c | 12 +++++-------\n 1 file changed, 5 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/net/cxgbe/cxgbe_flow.c b/drivers/net/cxgbe/cxgbe_flow.c\nindex 54ec7e595..a8f076e6c 100644\n--- a/drivers/net/cxgbe/cxgbe_flow.c\n+++ b/drivers/net/cxgbe/cxgbe_flow.c\n@@ -7,14 +7,12 @@\n \n #define __CXGBE_FILL_FS(__v, __m, fs, elem, e) \\\n do { \\\n-\tif (!((fs)->val.elem || (fs)->mask.elem)) { \\\n-\t\t(fs)->val.elem = (__v); \\\n-\t\t(fs)->mask.elem = (__m); \\\n-\t} else { \\\n+\tif ((fs)->mask.elem && ((fs)->val.elem != (__v))) \\\n \t\treturn rte_flow_error_set(e, EINVAL, RTE_FLOW_ERROR_TYPE_ITEM, \\\n-\t\t\t\t\t  NULL, \"a filter can be specified\" \\\n-\t\t\t\t\t  \" only once\"); \\\n-\t} \\\n+\t\t\t\t\t  NULL, \"Redefined match item with\" \\\n+\t\t\t\t\t  \" different values found\"); \\\n+\t(fs)->val.elem = (__v); \\\n+\t(fs)->mask.elem = (__m); \\\n } while (0)\n \n #define __CXGBE_FILL_FS_MEMCPY(__v, __m, fs, elem) \\\n",
    "prefixes": [
        "3/6"
    ]
}