get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55899,
    "url": "https://patches.dpdk.org/api/patches/55899/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190702165017.3802-5-stephen@networkplumber.org/",
    "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": "<20190702165017.3802-5-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190702165017.3802-5-stephen@networkplumber.org",
    "date": "2019-07-02T16:50:13",
    "name": "[v6,4/8] net/ether: use bitops to speedup comparison",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3a623087517713e32761872c2027bce939269b88",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190702165017.3802-5-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 5289,
            "url": "https://patches.dpdk.org/api/series/5289/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5289",
            "date": "2019-07-02T16:50:09",
            "name": "net/ether: enhancements and optimizations",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/5289/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/55899/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/55899/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 619221B9D0;\n\tTue,  2 Jul 2019 18:50:38 +0200 (CEST)",
            "from mail-pg1-f196.google.com (mail-pg1-f196.google.com\n\t[209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 4A4691B9B9\n\tfor <dev@dpdk.org>; Tue,  2 Jul 2019 18:50:31 +0200 (CEST)",
            "by mail-pg1-f196.google.com with SMTP id w10so7960792pgj.7\n\tfor <dev@dpdk.org>; Tue, 02 Jul 2019 09:50:31 -0700 (PDT)",
            "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\th62sm14340230pgc.54.2019.07.02.09.50.29\n\t(version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);\n\tTue, 02 Jul 2019 09:50:29 -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=8fFcBaPZKjQQPsKQQeFeSAG72mshjjR9mGZfTCJM/8s=;\n\tb=UTnZLWi+Pk9TmMj6cTXH9dUugLhUesc+BFjdMiEAMulvGD+bgyoAzdrtI20u83fPHw\n\tzUmSkgf4Sl2ybaHh0qYMpkUcN0qOYTe+3WUFPsSo6rDMcjv5KO31YH8QCOmd8UTHJ32t\n\thq2Vp7/FHGK8715x1VpFbH6FSS0yqbe9A3+QnnxHZRKlSReYos6+nmZ7oAUBSGC2DX3n\n\tWI2JWO7ORmVAk43SLTcQrfY0t5YKvjKCUsNmzAA9TVZTzMN2abWERWwcP0ZJiwflA2rE\n\tV3YabIwt5M0YL36LCVXXMMGgzisWI/UXqwIEeSfLE851Yip2T925IDMTb7KvCJJio2si\n\tqSLA==",
        "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=8fFcBaPZKjQQPsKQQeFeSAG72mshjjR9mGZfTCJM/8s=;\n\tb=WoiInsVp/qflBI4TWWHh3NTR92Pg8vFSnQYWbdc0tg+xWvzBXReO8nlMLxkdOuvWki\n\t2H/quOi5IXfYancKaSLtIjSC9XLEF1nI9dknnA5y1gxlc7bmxCzGObYGHmVL3j7iLS4R\n\tGFqa8d3HzJ/Ea9YKBT+7PBNlgeotLzpMGPJo1HR2z8eUSm8i/psXvzU/VCDfhSg3X6u3\n\t7ZUgNz2bWsPA/RmfOKIG8dYcOl9UBrqDzNHvAxN2OyS0ewCm6w2JfOWYUdjfwIyQaaBc\n\tmUEB49fx0RQ7iSIXqxByHetVYosoaDfJQElaMxXEGCVHl/xkjanxm2+LQRndDE3MlMDJ\n\t8d/Q==",
        "X-Gm-Message-State": "APjAAAVBwyU+wwtBSq1o1FirSYVdg4TGpohTVj7/dCuMLqhswQuFDC8Q\n\tshVS3u2rWidbUQm2Jt/NLwr3zxM8",
        "X-Google-Smtp-Source": "APXvYqy1Z6YZLrsbNdb3w3c+f13YGUa41H3g09zpC2AUykBBXoWZEhuxln58uzpXdZMJQhcySWqp2A==",
        "X-Received": "by 2002:a17:90a:2305:: with SMTP id\n\tf5mr7011508pje.128.1562086230209; \n\tTue, 02 Jul 2019 09:50:30 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n\tAndrew Rybchenko <arybchenko@solarflare.com>",
        "Date": "Tue,  2 Jul 2019 09:50:13 -0700",
        "Message-Id": "<20190702165017.3802-5-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190702165017.3802-1-stephen@networkplumber.org>",
        "References": "<20190516180427.17270-1-stephen@networkplumber.org>\n\t<20190702165017.3802-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v6 4/8] net/ether: use bitops to speedup\n\tcomparison",
        "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>\nReviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>\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 8edc7e217b25..feb35a33c94b 100644\n--- a/lib/librte_net/rte_ether.h\n+++ b/lib/librte_net/rte_ether.h\n@@ -81,11 +81,10 @@ struct rte_ether_addr {\n static inline int rte_is_same_ether_addr(const struct rte_ether_addr *ea1,\n \t\t\t\t     const struct rte_ether_addr *ea2)\n {\n-\tint i;\n-\tfor (i = 0; i < RTE_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 unaligned_uint16_t *w1 = (const uint16_t *)ea1;\n+\tconst unaligned_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@@ -100,11 +99,9 @@ static inline int rte_is_same_ether_addr(const struct rte_ether_addr *ea1,\n  */\n static inline int rte_is_zero_ether_addr(const struct rte_ether_addr *ea)\n {\n-\tint i;\n-\tfor (i = 0; i < RTE_ETHER_ADDR_LEN; i++)\n-\t\tif (ea->addr_bytes[i] != 0x00)\n-\t\t\treturn 0;\n-\treturn 1;\n+\tconst unaligned_uint16_t *w = (const uint16_t *)ea;\n+\n+\treturn (w[0] | w[1] | w[2]) == 0;\n }\n \n /**\n",
    "prefixes": [
        "v6",
        "4/8"
    ]
}