get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 965,
    "url": "https://patches.dpdk.org/api/patches/965/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1414376006-31402-2-git-send-email-jijiang.liu@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": "<1414376006-31402-2-git-send-email-jijiang.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1414376006-31402-2-git-send-email-jijiang.liu@intel.com",
    "date": "2014-10-27T02:13:17",
    "name": "[dpdk-dev,v8,01/10] librte_mbuf:the rte_mbuf structure changes",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6e803bd284c904b41364a3809724ca21a0a33a23",
    "submitter": {
        "id": 52,
        "url": "https://patches.dpdk.org/api/people/52/?format=api",
        "name": "Jijiang Liu",
        "email": "jijiang.liu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1414376006-31402-2-git-send-email-jijiang.liu@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/965/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/965/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 81AC87F4D;\n\tMon, 27 Oct 2014 03:05:03 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 45CBF7F41\n\tfor <dev@dpdk.org>; Mon, 27 Oct 2014 03:04:55 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP; 26 Oct 2014 19:13:34 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 26 Oct 2014 19:13:34 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s9R2DW5Y016622;\n\tMon, 27 Oct 2014 10:13:32 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid s9R2DU11031444; Mon, 27 Oct 2014 10:13:32 +0800",
            "(from jijiangl@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s9R2DU3W031440; \n\tMon, 27 Oct 2014 10:13:30 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,792,1406617200\"; d=\"scan'208\";a=\"596635513\"",
        "From": "Jijiang Liu <jijiang.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 27 Oct 2014 10:13:17 +0800",
        "Message-Id": "<1414376006-31402-2-git-send-email-jijiang.liu@intel.com>",
        "X-Mailer": "git-send-email 1.7.12.2",
        "In-Reply-To": "<1414376006-31402-1-git-send-email-jijiang.liu@intel.com>",
        "References": "<1414376006-31402-1-git-send-email-jijiang.liu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v8 01/10] librte_mbuf:the rte_mbuf structure\n\tchanges",
        "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": "Replace the \"reserved2\" field with the \"packet_type\" field and add the \"inner_l2_l3_len\" field in the rte_mbuf structure.\nThe \"packet_type\" field is used to indicate ordinary packet format and also tunneling packet format such as IP in IP, IP in GRE, MAC in GRE and MAC in UDP.\nThe \"inner_l2_len\" and the \"inner_l3_len\" fields are added in the second cache line, they use 2 bytes for TX offloading of tunnels.\n\nSigned-off-by: Jijiang Liu <jijiang.liu@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h |   25 ++++++++++++++++++++++++-\n 1 files changed, 24 insertions(+), 1 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex ddadc21..497d88b 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -163,7 +163,14 @@ struct rte_mbuf {\n \n \t/* remaining bytes are set on RX when pulling packet from descriptor */\n \tMARKER rx_descriptor_fields1;\n-\tuint16_t reserved2;       /**< Unused field. Required for padding */\n+\n+\t/**\n+\t * The packet type, which is used to indicate ordinary packet and also\n+\t * tunneled packet format, i.e. each number is represented a type of\n+\t * packet.\n+\t */\n+\tuint16_t packet_type;\n+\n \tuint16_t data_len;        /**< Amount of data in segment buffer. */\n \tuint32_t pkt_len;         /**< Total pkt len: sum of all segments. */\n \tuint16_t vlan_tci;        /**< VLAN Tag Control Identifier (CPU order) */\n@@ -196,6 +203,18 @@ struct rte_mbuf {\n \t\t\tuint16_t l2_len:7;      /**< L2 (MAC) Header Length. */\n \t\t};\n \t};\n+\n+\t/* fields for TX offloading of tunnels */\n+\tunion {\n+\t\tuint16_t inner_l2_l3_len;\n+\t\t/**< combined inner l2/l3 lengths as single var */\n+\t\tstruct {\n+\t\t\tuint16_t inner_l3_len:9;\n+\t\t\t/**< inner L3 (IP) Header Length. */\n+\t\t\tuint16_t inner_l2_len:7;\n+\t\t\t/**< inner L2 (MAC) Header Length. */\n+\t\t};\n+\t};\n } __rte_cache_aligned;\n \n /**\n@@ -546,11 +565,13 @@ static inline void rte_pktmbuf_reset(struct rte_mbuf *m)\n \tm->next = NULL;\n \tm->pkt_len = 0;\n \tm->l2_l3_len = 0;\n+\tm->inner_l2_l3_len = 0;\n \tm->vlan_tci = 0;\n \tm->nb_segs = 1;\n \tm->port = 0xff;\n \n \tm->ol_flags = 0;\n+\tm->packet_type = 0;\n \tm->data_off = (RTE_PKTMBUF_HEADROOM <= m->buf_len) ?\n \t\t\tRTE_PKTMBUF_HEADROOM : m->buf_len;\n \n@@ -614,12 +635,14 @@ static inline void rte_pktmbuf_attach(struct rte_mbuf *mi, struct rte_mbuf *md)\n \tmi->port = md->port;\n \tmi->vlan_tci = md->vlan_tci;\n \tmi->l2_l3_len = md->l2_l3_len;\n+\tmi->inner_l2_l3_len = md->inner_l2_l3_len;\n \tmi->hash = md->hash;\n \n \tmi->next = NULL;\n \tmi->pkt_len = mi->data_len;\n \tmi->nb_segs = 1;\n \tmi->ol_flags = md->ol_flags;\n+\tmi->packet_type = md->packet_type;\n \n \t__rte_mbuf_sanity_check(mi, 1);\n \t__rte_mbuf_sanity_check(md, 0);\n",
    "prefixes": [
        "dpdk-dev",
        "v8",
        "01/10"
    ]
}