get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28317,
    "url": "https://patches.dpdk.org/api/patches/28317/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170904065532.13055-1-zhiyong.yang@intel.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": "<20170904065532.13055-1-zhiyong.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20170904065532.13055-1-zhiyong.yang@intel.com",
    "date": "2017-09-04T06:55:32",
    "name": "[dpdk-dev] librte_mbuf: modify the port initialization value",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6def1487a3aa70a4110e671eb69c529d809a073c",
    "submitter": {
        "id": 540,
        "url": "https://patches.dpdk.org/api/people/540/?format=api",
        "name": "Yang, Zhiyong",
        "email": "zhiyong.yang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170904065532.13055-1-zhiyong.yang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28317/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/28317/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 394A77CAA;\n\tMon,  4 Sep 2017 08:55:39 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 3033B6841\n\tfor <dev@dpdk.org>; Mon,  4 Sep 2017 08:55:36 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Sep 2017 23:55:35 -0700",
            "from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.182])\n\tby fmsmga001.fm.intel.com with ESMTP; 03 Sep 2017 23:55:34 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.41,473,1498546800\"; d=\"scan'208\";\n\ta=\"1191258243\"",
        "From": "Zhiyong Yang <zhiyong.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com,\n\tZhiyong Yang <zhiyong.yang@intel.com>",
        "Date": "Mon,  4 Sep 2017 14:55:32 +0800",
        "Message-Id": "<20170904065532.13055-1-zhiyong.yang@intel.com>",
        "X-Mailer": "git-send-email 2.13.3",
        "Subject": "[dpdk-dev] [PATCH] librte_mbuf: modify the port initialization value",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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": "In order to support more than 256 virtual ports, the field \"port\" in\nrte_mbuf has been increased to 16 bits. The initialization/reset\nvalue of the field \"port\" should be changed from 0xff to 0xffff\naccordingly.\n\nSigned-off-by: Zhiyong Yang <zhiyong.yang@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.c | 2 +-\n lib/librte_mbuf/rte_mbuf.h | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c\nindex 26a62b8e1..2e80ed9b1 100644\n--- a/lib/librte_mbuf/rte_mbuf.c\n+++ b/lib/librte_mbuf/rte_mbuf.c\n@@ -144,7 +144,7 @@ rte_pktmbuf_init(struct rte_mempool *mp,\n \t/* init some constant fields */\n \tm->pool = mp;\n \tm->nb_segs = 1;\n-\tm->port = 0xff;\n+\tm->port = 0xffff;\n \trte_mbuf_refcnt_set(m, 1);\n \tm->next = NULL;\n }\ndiff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex eaed7eee0..cdc70aa83 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -1095,7 +1095,7 @@ static inline void rte_pktmbuf_reset(struct rte_mbuf *m)\n \tm->vlan_tci = 0;\n \tm->vlan_tci_outer = 0;\n \tm->nb_segs = 1;\n-\tm->port = 0xff;\n+\tm->port = 0xffff;\n \n \tm->ol_flags = 0;\n \tm->packet_type = 0;\n",
    "prefixes": [
        "dpdk-dev"
    ]
}