get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 302,
    "url": "http://patches.dpdk.org/api/patches/302/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1409759378-10113-12-git-send-email-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1409759378-10113-12-git-send-email-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1409759378-10113-12-git-send-email-bruce.richardson@intel.com",
    "date": "2014-09-03T15:49:36",
    "name": "[dpdk-dev,11/13] mbuf: move l2_len and l3_len to second cache line",
    "commit_ref": "",
    "pull_url": "",
    "state": "superseded",
    "archived": true,
    "hash": "7376d234240ecb79118835ba4760451283582526",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1409759378-10113-12-git-send-email-bruce.richardson@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/302/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/302/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<bricha3@ecsmtp.ir.intel.com>",
        "Received": [
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\r\n\tby dpdk.org (Postfix) with ESMTP id B38B958EE\r\n\tfor <dev@dpdk.org>; Wed,  3 Sep 2014 17:45:07 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\r\n\tby orsmga101.jf.intel.com with ESMTP; 03 Sep 2014 08:49:42 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\r\n\tby orsmga001.jf.intel.com with ESMTP; 03 Sep 2014 08:49:41 -0700",
            "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\r\n\t[10.237.217.46])\r\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\r\n\ts83FneKI025437; Wed, 3 Sep 2014 16:49:40 +0100",
            "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\r\n\tby sivswdev02.ir.intel.com with ESMTP id s83Fnd7G010493;\r\n\tWed, 3 Sep 2014 16:49:39 +0100",
            "(from bricha3@localhost)\r\n\tby sivswdev02.ir.intel.com with  id s83Fndqk010489;\r\n\tWed, 3 Sep 2014 16:49:39 +0100"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,458,1406617200\"; d=\"scan'208\";a=\"567777854\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Wed,  3 Sep 2014 16:49:36 +0100",
        "Message-Id": "<1409759378-10113-12-git-send-email-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1409759378-10113-1-git-send-email-bruce.richardson@intel.com>",
        "References": "<1409759378-10113-1-git-send-email-bruce.richardson@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 11/13] mbuf: move l2_len and l3_len to second\r\n\tcache line",
        "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>,\r\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>,\r\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-List-Received-Date": "Wed, 03 Sep 2014 15:45:09 -0000"
    },
    "content": "The l2_len and l3_len fields are used for TX offloads and so should be\nput on the second cache line, along with the other fields only used on\nTX.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\r\nindex db079ac..d3c1745 100644\r\n--- a/lib/librte_mbuf/rte_mbuf.h\r\n+++ b/lib/librte_mbuf/rte_mbuf.h\r\n@@ -159,8 +159,7 @@ struct rte_mbuf {\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-\tuint16_t l3_len:9;      /**< L3 (IP) Header Length. */\r\n-\tuint16_t l2_len:7;      /**< L2 (MAC) Header Length. */\r\n+\tuint16_t reserved;\r\n \tuint16_t vlan_tci;      /**< VLAN Tag Control Identifier (CPU order). */\r\n \tunion {\r\n \t\tuint32_t rss;   /**< RSS hash result if RSS enabled */\r\n@@ -176,6 +175,9 @@ struct rte_mbuf {\r\n \tstruct rte_mempool *pool; /**< Pool from which mbuf was allocated. */\r\n \tstruct rte_mbuf *next;    /**< Next segment of scattered packet. */\r\n \r\n+\t/* fields to support TX offloads */\r\n+\tuint16_t l3_len:9;      /**< L3 (IP) Header Length. */\r\n+\tuint16_t l2_len:7;      /**< L2 (MAC) Header Length. */\r\n } __rte_cache_aligned;\r\n \r\n #define RTE_MBUF_METADATA_UINT8(mbuf, offset)              \\\r\n",
    "prefixes": [
        "dpdk-dev",
        "11/13"
    ]
}