Show a patch.

GET /api/patches/301/?format=api
Content-Type: application/json
Vary: Accept

    "id": 301,
    "url": "",
    "web_url": "",
    "project": {
        "id": 1,
        "url": "",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "",
        "list_email": "",
        "web_url": "",
        "scm_url": "git://",
        "webscm_url": ""
    "msgid": "<>",
    "date": "2014-09-03T15:49:33",
    "name": "[dpdk-dev,08/13] mbuf: add named points inside the mbuf structure",
    "commit_ref": "",
    "pull_url": "",
    "state": "superseded",
    "archived": true,
    "hash": "aa3705fd2b81d60451b2133e4f24f418dd1900bb",
    "submitter": {
        "id": 20,
        "url": "",
        "name": "Bruce Richardson",
        "email": ""
    "delegate": null,
    "mbox": "",
    "series": [],
    "comments": "",
    "check": "pending",
    "checks": "",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "Received": [
            "from ( [])\r\n\tby (Postfix) with ESMTP id 2EC1658EE\r\n\tfor <>; Wed,  3 Sep 2014 17:45:07 +0200 (CEST)",
            "from ([])\r\n\tby with ESMTP; 03 Sep 2014 08:49:42 -0700",
            "from ([])\r\n\tby with ESMTP; 03 Sep 2014 08:49:40 -0700",
            "from (\r\n\t[])\r\n\tby (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\r\n\ts83Fndwr025433; Wed, 3 Sep 2014 16:49:40 +0100",
            "from (localhost [])\r\n\tby with ESMTP id s83FndK3010469;\r\n\tWed, 3 Sep 2014 16:49:39 +0100",
            "(from bricha3@localhost)\r\n\tby with  id s83FndU5010465;\r\n\tWed, 3 Sep 2014 16:49:39 +0100"
        "References": "<>",
        "X-BeenThere": "",
        "Message-Id": "<>",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,458,1406617200\"; d=\"scan'208\";a=\"567777849\"",
        "List-Post": "<>",
        "Precedence": "list",
        "From": "Bruce Richardson <>",
        "X-Mailer": "git-send-email",
        "X-List-Received-Date": "Wed, 03 Sep 2014 15:45:07 -0000",
        "Return-Path": "<>",
        "List-Help": "<>",
        "In-Reply-To": "<>",
        "To": "",
        "List-Archive": "<>",
        "List-Id": "patches and discussions about DPDK <>",
        "List-Unsubscribe": "<>,\r\n\t<>",
        "Date": "Wed,  3 Sep 2014 16:49:33 +0100",
        "List-Subscribe": "<>,\r\n\t<>",
        "Subject": "[dpdk-dev] [PATCH 08/13] mbuf: add named points inside the mbuf\r\n\tstructure"
    "content": "Add markers or \"labels\" at given points inside the mbuf which can be\nused instead of individual fields to identify the start of logical\nsections inside the mbuf.\n\nThe use of typedefs and dummy fields was chosen over using unions\nbecause of a couple reasons:\n* unions cause an extra level of indentation (more likely two levels as\n  a union containing a struct for multiple fields would be needed). This\n  makes the lines longer than they need to be and increases the need for\n  wrapping. [This was the main reason]\n* with markers, you can apply multiple markers at the same point if\n  wanted.\n\nSigned-off-by: Bruce Richardson <>\n---\n lib/librte_mbuf/rte_mbuf.h | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\r\nindex ca66d9a..591be95 100644\r\n--- a/lib/librte_mbuf/rte_mbuf.h\r\n+++ b/lib/librte_mbuf/rte_mbuf.h\r\n@@ -115,14 +115,22 @@ extern \"C\" {\r\n  */\r\n #define PKT_TX_OFFLOAD_MASK (PKT_TX_VLAN_PKT | PKT_TX_IP_CKSUM | PKT_TX_L4_MASK)\r\n \r\n+/* define a set of marker types that can be used to refer to set points in the\r\n+ * mbuf */\r\n+typedef void    *MARKER[0];   /**< generic marker for a point in a structure */\r\n+typedef uint64_t MARKER64[0]; /**< marker that allows us to overwrite 8 bytes\r\n+                               * with a single assignment */\r\n /**\r\n  * The generic rte_mbuf, containing a packet mbuf.\r\n  */\r\n struct rte_mbuf {\r\n+\tMARKER cacheline0;\r\n+\r\n \tvoid *buf_addr;           /**< Virtual address of segment buffer. */\r\n \tphys_addr_t buf_physaddr; /**< Physical address of segment buffer. */\r\n \r\n \t/* next 8 bytes are initialised on RX descriptor rearm */\r\n+\tMARKER64 rearm_data;\r\n \tuint16_t buf_len;         /**< Length of segment buffer. */\r\n \tuint16_t data_off;\r\n \r\n@@ -147,6 +155,7 @@ struct rte_mbuf {\r\n \tuint64_t ol_flags;      /**< Offload features. */\r\n \r\n \t/* remaining bytes are set on RX when pulling packet from descriptor */\r\n+\tMARKER rx_descriptor_fields1;\r\n \tuint16_t packet_type;   /**< Type of packet, e.g. protocols used */\r\n \tuint16_t data_len;      /**< Amount of data in segment buffer. */\r\n \tuint32_t pkt_len;       /**< Total pkt len: sum of all segments. */\r\n",
    "prefixes": [