get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1399,
    "url": "https://patches.dpdk.org/api/patches/1399/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416524335-22753-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": "<1416524335-22753-5-git-send-email-olivier.matz@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1416524335-22753-5-git-send-email-olivier.matz@6wind.com",
    "date": "2014-11-20T22:58:46",
    "name": "[dpdk-dev,v3,04/13] mbuf: add help about TX checksum flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "92019457f09c44aa5bf955c15ce2e45ebc64973e",
    "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/1416524335-22753-5-git-send-email-olivier.matz@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/1399/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/1399/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 D3E0B7FA8;\n\tThu, 20 Nov 2014 23:48:48 +0100 (CET)",
            "from mail-wi0-f180.google.com (mail-wi0-f180.google.com\n\t[209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 2802B7F0C\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 23:48:35 +0100 (CET)",
            "by mail-wi0-f180.google.com with SMTP id n3so7028526wiv.7\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 14:59:07 -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\tcz3sm5380581wjb.23.2014.11.20.14.59.06 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 20 Nov 2014 14:59:06 -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=NjWAa/cEQdBM7ZSO0B6h39hiHkiXFyBMolS5RmVFPi0=;\n\tb=foZcDIX4ZbW1RG/K8rGLV51aqkDY8NojXam9K2WKmGATfd6gWN1fEpXqS9UVrqRySi\n\tKuW/fBNHBpaqW72dfdwuG6xR8HTTBwE0nA0tSdD7JgAS0LOGNy3h33zPpzoMTE2mL5Kq\n\tl8dMVjd4aS3GzP4n/NUrtbMKAyEksAT1RRWTFhMzBAhAckBeG5meA4RCF+uF4WQYf16w\n\txfXgpYVIwyL0dVtDuS1iIzSYp9AZwshIJ9FPQUywCMXSvDI3FOIKNd5rc8OrJOjSXjg/\n\tinI+YfBzuKA4otDx6uuDSdZjypBoit84OWM/80hTruNPzl+NTX6NOJteJgA9MM593TGN\n\tbedQ==",
        "X-Gm-Message-State": "ALoCoQncqTsFx/FC8GrymZUkGWgbYWuUSqhF+mhJPpzV36IRuA/3wo9sPLqVbMn298tDo4ZM/uBm",
        "X-Received": "by 10.194.187.164 with SMTP id ft4mr1456169wjc.76.1416524347060; \n\tThu, 20 Nov 2014 14:59:07 -0800 (PST)",
        "From": "Olivier Matz <olivier.matz@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 20 Nov 2014 23:58:46 +0100",
        "Message-Id": "<1416524335-22753-5-git-send-email-olivier.matz@6wind.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1416524335-22753-1-git-send-email-olivier.matz@6wind.com>",
        "References": "<1415984609-2484-1-git-send-email-olivier.matz@6wind.com>\n\t<1416524335-22753-1-git-send-email-olivier.matz@6wind.com>",
        "Cc": "jigsaw@gmail.com",
        "Subject": "[dpdk-dev] [PATCH v3 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 | 17 ++++++++++-------\n 1 file changed, 10 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex d3eba44..0c96b00 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -98,14 +98,17 @@ extern \"C\" {\n /* add new TX flags here */\n #define PKT_TX_VXLAN_CKSUM   (1ULL << 50) /**< TX checksum of VXLAN computed by NIC */\n #define PKT_TX_IEEE1588_TMST (1ULL << 51) /**< TX IEEE1588 packet to timestamp. */\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+/**\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",
        "v3",
        "04/13"
    ]
}