get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1273,
    "url": "https://patches.dpdk.org/api/patches/1273/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1415984609-2484-5-git-send-email-olivier.matz@6wind.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": "<1415984609-2484-5-git-send-email-olivier.matz@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1415984609-2484-5-git-send-email-olivier.matz@6wind.com",
    "date": "2014-11-14T17:03:20",
    "name": "[dpdk-dev,v2,04/13] mbuf: add help about TX checksum flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "49483b962168490334a0748680869d11f8200434",
    "submitter": {
        "id": 8,
        "url": "https://patches.dpdk.org/api/people/8/?format=api",
        "name": "Olivier Matz",
        "email": "olivier.matz@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1415984609-2484-5-git-send-email-olivier.matz@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/1273/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/1273/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 575B17FAD;\n\tFri, 14 Nov 2014 17:54:05 +0100 (CET)",
            "from mail-wg0-f51.google.com (mail-wg0-f51.google.com\n\t[74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 6C98F7F6D\n\tfor <dev@dpdk.org>; Fri, 14 Nov 2014 17:53:48 +0100 (CET)",
            "by mail-wg0-f51.google.com with SMTP id k14so633321wgh.24\n\tfor <dev@dpdk.org>; Fri, 14 Nov 2014 09:03:52 -0800 (PST)",
            "from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tcu9sm40352554wjb.0.2014.11.14.09.03.51 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 14 Nov 2014 09:03:51 -0800 (PST)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Cb3emR4KBzm3AcR9V0RHxoQrfar5a0h4Nl1F3MpQEV8=;\n\tb=Pveuar7P9AIIwN1XFYqMRROhOxyI1GAGIT9kaazg89awRdmkgcJ1A7zcx55lp4aUVG\n\tWj2U/kyC7ac5SmkbuOroV7hJFZSG1rcvi+nRHt5U1bqkMmz0Q0KRRJOMFu9qxGAWXfVi\n\tik46q3YFGNsBt1CxonXtH4645ZryOWM/X5zoF4B5mPJ2XCb367xbRgUo/8uYR02VfAQZ\n\tGZdGbe9kr5I0J485zU0ZOddgwO7PhZCPU1OzdKvK/BXWKqz5A28ixFhUgOz4QKCVHVas\n\tLvpc7YX1qauo0qonxwO9vUNWY+mrvt3Bg8kT4u9ow0gdUfO7yVUoLN9wZpY1l+z2JKLO\n\tfg4w==",
        "X-Gm-Message-State": "ALoCoQnhiARfDcJr2FGS6kWm9Hx+6MhTrTD3nzPOpgDKRwZgImafGmKwL13E1ZhBWL7dD5GMzF8k",
        "X-Received": "by 10.180.14.226 with SMTP id s2mr9129562wic.61.1415984632351;\n\tFri, 14 Nov 2014 09:03:52 -0800 (PST)",
        "From": "Olivier Matz <olivier.matz@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 14 Nov 2014 18:03:20 +0100",
        "Message-Id": "<1415984609-2484-5-git-send-email-olivier.matz@6wind.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1415984609-2484-1-git-send-email-olivier.matz@6wind.com>",
        "References": "<1415635166-1364-1-git-send-email-olivier.matz@6wind.com>\n\t<1415984609-2484-1-git-send-email-olivier.matz@6wind.com>",
        "Cc": "jigsaw@gmail.com",
        "Subject": "[dpdk-dev] [PATCH v2 04/13] mbuf: add help about TX checksum flags",
        "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": "Describe how to use hardware checksum API.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 25 +++++++++++++++++--------\n 1 file changed, 17 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex 029c669..d7070e9 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -95,19 +95,28 @@ extern \"C\" {\n #define PKT_RX_TUNNEL_IPV6_HDR (1ULL << 12) /**< RX tunnel packet with IPv6 header. */\n \n #define PKT_TX_VLAN_PKT      (1ULL << 55) /**< TX packet is a 802.1q VLAN packet. */\n-#define PKT_TX_IP_CKSUM      (1ULL << 54) /**< IP cksum of TX pkt. computed by NIC. */\n+\n+/**\n+ * Enable hardware computation of IP cksum. To use it:\n+ *  - fill l2_len and l3_len in mbuf\n+ *  - set the flags PKT_TX_IP_CKSUM\n+ *  - set the ip checksum to 0 in IP header\n+ */\n+#define PKT_TX_IP_CKSUM      (1ULL << 54)\n #define PKT_TX_IPV4_CSUM     PKT_TX_IP_CKSUM /**< Alias of PKT_TX_IP_CKSUM. */\n #define PKT_TX_IPV4          PKT_RX_IPV4_HDR /**< IPv4 with no IP checksum offload. */\n #define PKT_TX_IPV6          PKT_RX_IPV6_HDR /**< IPv6 packet */\n \n-/*\n- * Bits 52+53 used for L4 packet type with checksum enabled.\n- *     00: Reserved\n- *     01: TCP checksum\n- *     10: SCTP checksum\n- *     11: UDP checksum\n+/**\n+ * Bits 52+53 used for L4 packet type with checksum enabled: 00: Reserved,\n+ * 01: TCP checksum, 10: SCTP checksum, 11: UDP checksum. To use hardware\n+ * L4 checksum offload, the user needs to:\n+ *  - fill l2_len and l3_len in mbuf\n+ *  - set the flags PKT_TX_TCP_CKSUM, PKT_TX_SCTP_CKSUM or PKT_TX_UDP_CKSUM\n+ *  - calculate the pseudo header checksum and set it in the L4 header (only\n+ *    for TCP or UDP). For SCTP, set the crc field to 0.\n  */\n-#define PKT_TX_L4_NO_CKSUM   (0ULL << 52) /**< Disable L4 cksum of TX pkt. */\n+#define PKT_TX_L4_NO_CKSUM   (0ULL << 52) /* Disable L4 cksum of TX pkt. */\n #define PKT_TX_TCP_CKSUM     (1ULL << 52) /**< TCP cksum of TX pkt. computed by NIC. */\n #define PKT_TX_SCTP_CKSUM    (2ULL << 52) /**< SCTP cksum of TX pkt. computed by NIC. */\n #define PKT_TX_UDP_CKSUM     (3ULL << 52) /**< UDP cksum of TX pkt. computed by NIC. */\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "04/13"
    ]
}