get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53496,
    "url": "http://patches.dpdk.org/api/patches/53496/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190516180427.17270-7-stephen@networkplumber.org/",
    "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": "<20190516180427.17270-7-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190516180427.17270-7-stephen@networkplumber.org",
    "date": "2019-05-16T18:04:26",
    "name": "[v2,6/7] ether: use bitops to speedup comparison",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0c6752b1e6642c3b73e5f53542a046089ef295df",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190516180427.17270-7-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 4699,
            "url": "http://patches.dpdk.org/api/series/4699/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4699",
            "date": "2019-05-16T18:04:20",
            "name": "ether: improvements and optimizations",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4699/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/53496/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/53496/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 28A411B108;\n\tThu, 16 May 2019 20:04:50 +0200 (CEST)",
            "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 34C30E3EB\n\tfor <dev@dpdk.org>; Thu, 16 May 2019 20:04:44 +0200 (CEST)",
            "by mail-pf1-f195.google.com with SMTP id u17so2243529pfn.7\n\tfor <dev@dpdk.org>; Thu, 16 May 2019 11:04:44 -0700 (PDT)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\td67sm9376657pfa.35.2019.05.16.11.04.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 16 May 2019 11:04:42 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=1ICmW9YuE04Am3/8hB7X4T/qBkWnZRHwCB74spjpPtI=;\n\tb=DMX2KM5noFczZQ16Kq8AdMkUALweR7lAmxjWWWLTwupmVZJ9uE881slTpNQT6g4p14\n\tPOgE5itxTYRLVwgDjFImOjLSWO2cPufuDvxatlViE1ojp8xVUYURUBSnv1oijSy2e1iA\n\tbzhpcr8N+NSCwK2Zuxm3hPNdAodomHWf/hj/yUcReyek5yTtiMo0Wx7a+cb5RQ+mANAY\n\tZxGUzaZP6iw1px50f7bg0NYNjXxraZ/w9DhgF+GGLR03MfvdaPNUdrwTeRg3yvO8HZHk\n\tQP+LpFRJaWNd9N+Nh3rHb+PkCoc3jPtW9Jx8PJb4CCRuRF0kXCzx9ss2k0qKlhwbsoWj\n\tSEGQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=1ICmW9YuE04Am3/8hB7X4T/qBkWnZRHwCB74spjpPtI=;\n\tb=VconHogzVWmJImWc2vVir2HZz9ocMbybMke8Rep22btJ5Gm1j6mx+cmqlKuBuo+VYk\n\t3EdGrY3kPdyXB6BXAF535PY6NAOSxhfpgbbLIz61J1DcX77WBZLmDmQIuaTfOx/I5CZc\n\toqEOVBvlF0Ktmyr74ALjWSNu+eB7f9CSZxgRT4RtTqq53wKOzKM3CRonO8YrBJT5xltQ\n\tE5XnmSZdf6zkVQn0ZwQRVAbcNFRtRG+NbfRH6viz4JkMWTTQkxqAT1AJ53SS7sG2swuB\n\tyj1ammKRoUOfKVJ7pEx949x1AMZVizPLDdRLYM8J1yc9Hx/QUuuiTWVKxcU+R/VfogDX\n\ttvvA==",
        "X-Gm-Message-State": "APjAAAUwR6c7viEyOmyq7GXrsa6NvuWaKdnhIgjtFSVpImCGT0DhvGKB\n\tdbIjsilm1VaTjo0Q52X3vissUhyCAeA=",
        "X-Google-Smtp-Source": "APXvYqwtcRrkfQHcvrCtE3r70tXXYISKlkqpk2RnMnGkLlHf8PZY5x+gHVPX1ttoKJkZF/BOnZ7aVw==",
        "X-Received": "by 2002:a62:582:: with SMTP id\n\t124mr55910928pff.209.1558029882834; \n\tThu, 16 May 2019 11:04:42 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Thu, 16 May 2019 11:04:26 -0700",
        "Message-Id": "<20190516180427.17270-7-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190516180427.17270-1-stephen@networkplumber.org>",
        "References": "<20190516180427.17270-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 6/7] ether: use bitops to speedup comparison",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Using bit operations like or and xor is faster than a loop\non all architectures. Really just explicit unrolling.\n\nSimilar cast to uint16 unaligned is already done in\nother functions here.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/librte_net/rte_ether.h | 17 +++++++----------\n 1 file changed, 7 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h\nindex 0fa4481d266b..799996dc7e1b 100644\n--- a/lib/librte_net/rte_ether.h\n+++ b/lib/librte_net/rte_ether.h\n@@ -79,11 +79,10 @@ struct ether_addr {\n static inline int is_same_ether_addr(const struct ether_addr *ea1,\n \t\t\t\t     const struct ether_addr *ea2)\n {\n-\tint i;\n-\tfor (i = 0; i < ETHER_ADDR_LEN; i++)\n-\t\tif (ea1->addr_bytes[i] != ea2->addr_bytes[i])\n-\t\t\treturn 0;\n-\treturn 1;\n+\tconst uint16_t *w1 = (const uint16_t *)ea1;\n+\tconst uint16_t *w2 = (const uint16_t *)ea2;\n+\n+\treturn ((w1[0] ^ w2[0]) | (w1[1] ^ w2[1]) | (w1[2] ^ w2[2])) == 0;\n }\n \n /**\n@@ -98,11 +97,9 @@ static inline int is_same_ether_addr(const struct ether_addr *ea1,\n  */\n static inline int is_zero_ether_addr(const struct ether_addr *ea)\n {\n-\tint i;\n-\tfor (i = 0; i < ETHER_ADDR_LEN; i++)\n-\t\tif (ea->addr_bytes[i] != 0x00)\n-\t\t\treturn 0;\n-\treturn 1;\n+\tconst uint16_t *w = (const uint16_t *)ea;\n+\n+\treturn (w[0] | w[1] | w[2]) == 0;\n }\n \n /**\n",
    "prefixes": [
        "v2",
        "6/7"
    ]
}