get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28336,
    "url": "https://patches.dpdk.org/api/patches/28336/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170905051319.11223-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": "<20170905051319.11223-1-zhiyong.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20170905051319.11223-1-zhiyong.yang@intel.com",
    "date": "2017-09-05T05:13:19",
    "name": "[dpdk-dev,v2] librte_mbuf: modify port initialization value",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4adac4cdf86f1716c73f9b5a4e2bf63bbbd7b018",
    "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/20170905051319.11223-1-zhiyong.yang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28336/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/28336/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 EA2753254;\n\tTue,  5 Sep 2017 07:13:25 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id D85233254\n\tfor <dev@dpdk.org>; Tue,  5 Sep 2017 07:13:24 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga105.fm.intel.com with ESMTP; 04 Sep 2017 22:13:23 -0700",
            "from unknown (HELO dpdk5.bj.intel.com) ([172.16.182.182])\n\tby fmsmga004.fm.intel.com with ESMTP; 04 Sep 2017 22:13:22 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.41,478,1498546800\"; d=\"scan'208\";a=\"307968541\"",
        "From": "Zhiyong Yang <zhiyong.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@intel.com, stephen@networkplumber.org, \n\tZhiyong Yang <zhiyong.yang@intel.com>",
        "Date": "Tue,  5 Sep 2017 13:13:19 +0800",
        "Message-Id": "<20170905051319.11223-1-zhiyong.yang@intel.com>",
        "X-Mailer": "git-send-email 2.13.3",
        "In-Reply-To": "<20170904065532.13055-1-zhiyong.yang@intel.com>",
        "References": "<20170904065532.13055-1-zhiyong.yang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] librte_mbuf: modify 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\"\nin rte_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\nChanges in V2:\nIntroduce MBUF_INVALID_PORT as a constant.\n\n lib/librte_mbuf/rte_mbuf.c | 2 +-\n lib/librte_mbuf/rte_mbuf.h | 4 +++-\n 2 files changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c\nindex 26a62b8e1..bcf4e2fcf 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 = MBUF_INVALID_PORT;\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..e32038a73 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -1087,6 +1087,8 @@ static inline void rte_pktmbuf_reset_headroom(struct rte_mbuf *m)\n  * @param m\n  *   The packet mbuf to be resetted.\n  */\n+#define MBUF_INVALID_PORT 0xffff\n+\n static inline void rte_pktmbuf_reset(struct rte_mbuf *m)\n {\n \tm->next = NULL;\n@@ -1095,7 +1097,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 = MBUF_INVALID_PORT;\n \n \tm->ol_flags = 0;\n \tm->packet_type = 0;\n",
    "prefixes": [
        "dpdk-dev",
        "v2"
    ]
}