get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 4304,
    "url": "https://patches.dpdk.org/api/patches/4304/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1429021435-28414-1-git-send-email-adrien.mazarguil@6wind.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1429021435-28414-1-git-send-email-adrien.mazarguil@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1429021435-28414-1-git-send-email-adrien.mazarguil@6wind.com",
    "date": "2015-04-14T14:23:55",
    "name": "[dpdk-dev] enic: set correct port ID in received mbufs",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b9fc68e0cebca27c2b005c3142191e6f0b502962",
    "submitter": {
        "id": 165,
        "url": "https://patches.dpdk.org/api/people/165/?format=api",
        "name": "Adrien Mazarguil",
        "email": "adrien.mazarguil@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1429021435-28414-1-git-send-email-adrien.mazarguil@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/4304/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/4304/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 323EEC314;\n\tTue, 14 Apr 2015 16:24:07 +0200 (CEST)",
            "from mail-wi0-f181.google.com (mail-wi0-f181.google.com\n\t[209.85.212.181]) by dpdk.org (Postfix) with ESMTP id D23255A35\n\tfor <dev@dpdk.org>; Tue, 14 Apr 2015 16:24:05 +0200 (CEST)",
            "by wizk4 with SMTP id k4so115826380wiz.1\n\tfor <dev@dpdk.org>; Tue, 14 Apr 2015 07:24:05 -0700 (PDT)",
            "from 6wind.com (6wind.net2.nerim.net. [213.41.180.237])\n\tby mx.google.com with ESMTPSA id\n\tl10sm1805084wje.15.2015.04.14.07.24.04\n\t(version=TLSv1.2 cipher=RC4-SHA bits=128/128);\n\tTue, 14 Apr 2015 07:24:04 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=E7aCuI3k3c4DtKFwtQGyU6UAPbi2DPZxK2BK5CaWGsI=;\n\tb=Zzb4z8SknJPmRFIybR0fnVyyoLocb3D3hszQA3zKxvZCfncjY83robfTcoH06MtXms\n\tiyEiPIlAsW2IQ3ysXzxRmkmawshwfT8YXp5Y0MKncP/d9gYzAFAkaG2/vNCE0XAcrGvP\n\tsNnMKYDRJfo0g7miiQrVziG0p3xzKMREm0r0Av5DxZjuFrU7LyuBhONSc5j4/hAnabyA\n\tSg28A/PJeeqkvcoZXIKI+TZ0bSNu1SVNcq15Yh8cP20z2KpbpAStCjdgABGDVXP9MUGy\n\tFH+0QfiM3XoQuneR+KlVvycZiRlxQBrw6HTKSxxzxD8fq+auWF5nL54HI4WU0gMyzFcK\n\tlNNw==",
        "X-Gm-Message-State": "ALoCoQnnWwuK+HoQZCl24ISgFmNN5CIUQTHJkjNVA0Ika/UGPBow8t2VLKPjUEAowgkUGWXnuNF+",
        "X-Received": "by 10.194.78.231 with SMTP id e7mr39001604wjx.33.1429021445707; \n\tTue, 14 Apr 2015 07:24:05 -0700 (PDT)",
        "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Tue, 14 Apr 2015 16:23:55 +0200",
        "Message-Id": "<1429021435-28414-1-git-send-email-adrien.mazarguil@6wind.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "Subject": "[dpdk-dev] [PATCH] enic: set correct port ID in received mbufs",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This field is not supposed to contain the RX queue index. Applications can\nrely on it to determine the port a given mbuf comes from.\n\nSigned-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>\n---\n lib/librte_pmd_enic/enic.h        | 1 +\n lib/librte_pmd_enic/enic_ethdev.c | 1 +\n lib/librte_pmd_enic/enic_main.c   | 4 ++--\n 3 files changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_enic/enic.h b/lib/librte_pmd_enic/enic.h\nindex a50bff1..0eba334 100644\n--- a/lib/librte_pmd_enic/enic.h\n+++ b/lib/librte_pmd_enic/enic.h\n@@ -99,6 +99,7 @@ struct enic {\n \tstruct vnic_dev_bar bar0;\n \tstruct vnic_dev *vdev;\n \n+\tunsigned int port_id;\n \tstruct rte_eth_dev *rte_dev;\n \tstruct enic_fdir fdir;\n \tchar bdf_name[ENICPMD_BDF_LENGTH];\ndiff --git a/lib/librte_pmd_enic/enic_ethdev.c b/lib/librte_pmd_enic/enic_ethdev.c\nindex 3e53f86..a319e1e 100644\n--- a/lib/librte_pmd_enic/enic_ethdev.c\n+++ b/lib/librte_pmd_enic/enic_ethdev.c\n@@ -567,6 +567,7 @@ static int eth_enicpmd_dev_init(struct rte_eth_dev *eth_dev)\n \n \tENICPMD_FUNC_TRACE();\n \n+\tenic->port_id = eth_dev->data->port_id;\n \tenic->rte_dev = eth_dev;\n \teth_dev->dev_ops = &enicpmd_eth_dev_ops;\n \teth_dev->rx_pkt_burst = &enicpmd_recv_pkts;\ndiff --git a/lib/librte_pmd_enic/enic_main.c b/lib/librte_pmd_enic/enic_main.c\nindex 0e40d46..15313c2 100644\n--- a/lib/librte_pmd_enic/enic_main.c\n+++ b/lib/librte_pmd_enic/enic_main.c\n@@ -344,7 +344,7 @@ static int enic_rq_alloc_buf(struct vnic_rq *rq)\n \t\thdr_mbuf->data_off = RTE_PKTMBUF_HEADROOM;\n \n \t\thdr_mbuf->nb_segs = 2;\n-\t\thdr_mbuf->port = rq->index;\n+\t\thdr_mbuf->port = enic->port_id;\n \t\thdr_mbuf->next = mbuf;\n \n \t\tdma_addr = (dma_addr_t)\n@@ -359,7 +359,7 @@ static int enic_rq_alloc_buf(struct vnic_rq *rq)\n \t\ttype = RQ_ENET_TYPE_NOT_SOP;\n \t} else {\n \t\tmbuf->nb_segs = 1;\n-\t\tmbuf->port = rq->index;\n+\t\tmbuf->port = enic->port_id;\n \t}\n \n \tmbuf->data_off = RTE_PKTMBUF_HEADROOM;\n",
    "prefixes": [
        "dpdk-dev"
    ]
}