Show a patch.

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

{
    "id": 41236,
    "url": "http://patches.dpdk.org/api/patches/41236/?format=api",
    "web_url": "http://patches.dpdk.org/patch/41236/",
    "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"
    },
    "msgid": "<20180618213557.15209-3-stephen@networkplumber.org>",
    "date": "2018-06-18T21:35:56",
    "name": "[v3,2/3] examples/l3fwd: use reserved IPv4/IPv6 addresses",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e8afe6cff6abd16f593025ae8ed739d7068d4939",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/patch/41236/mbox/",
    "series": [
        {
            "id": 157,
            "url": "http://patches.dpdk.org/api/series/157/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=157",
            "date": "2018-06-18T21:35:54",
            "name": "use RFC addresses for testing",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/157/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41236/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41236/checks/",
    "tags": {},
    "headers": {
        "X-Mailer": "git-send-email 2.17.1",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "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\tbh=sqy0tZXrPh0RsZiVNskwIYihTDxgsS7NQctgkjqrIx4=;\n\tb=wJVy32CL1MJaZneGlSqq05Sheo4iJceCOV4U5BLH3asxjxw/DIksDp15WB70NahcZQ\n\t46igB/nXwRPOLq0b0lUgredCMUkR1/bIKu5NU/DLi2ah2P7Yo0zoPPdnAVvLjSSdc7hk\n\tbaaCzoORrWVvcIjt7/QOPFHtT5tv6KdAQnoLkZeQ8L21it74wYLR3OM7+/WzADiWannp\n\t4OrL9eVhhQUdBPAN0mstjyh3PqJx8WhKTa8lmDvHqc+C4dz+wmNMYqmFCLTjoBO504jo\n\tbGfo8UI2f05TR1dazRs+rE+OdzRfb08iX50Ekv1v/A31yXpcfYyJXyF+n+VZXYsR6AGy\n\tpGcA==",
        "X-Mailman-Version": "2.1.15",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Gm-Message-State": "APt69E1he0evtYDyHedRzb76HB2x7VZz0Q/kfRQkaaZLnojElFJ6We67\n\tnr9brYNe57E0gDABi7dk8G3st93WC+o=",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<20180618213557.15209-1-stephen@networkplumber.org>",
        "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;\n\tbh=sqy0tZXrPh0RsZiVNskwIYihTDxgsS7NQctgkjqrIx4=;\n\tb=nn7qcTw8BO7biEi9L3whWlJ8yRutraJ/ZHKOQO70QI1pp9jF41ahC5utlddeV4cb7u\n\tAMYTQ7fTl7smzuUFRASkCSQbbXHckzVnc0AS34BoRxQ0zQ1hHwnv4sZ7PDj/F+OdzkpP\n\toxFHzgCBgjVkj44FkPDwFfAa9FJRG6QTaoS+xBWvEhdF9nfedDv9iKK8v+nPQspHQXlG\n\tvVIROLqt+oAQVkMRPBlfzYhYEwjfwDndExgLzMI1qwafQZL5UoTgF/nQA5QvKSIMpKSG\n\tlb3Q+u+04jEgd472pW8JQhp1udr3J0oK3+Drrb22eAngEKF37hIO7KE695kwoT1hX3t4\n\tz06A==",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6FF23378E;\n\tMon, 18 Jun 2018 23:36:06 +0200 (CEST)",
            "from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 907E93195\n\tfor <dev@dpdk.org>; Mon, 18 Jun 2018 23:36:03 +0200 (CEST)",
            "by mail-pf0-f196.google.com with SMTP id z24-v6so8816012pfe.7\n\tfor <dev@dpdk.org>; Mon, 18 Jun 2018 14:36:03 -0700 (PDT)",
            "from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107])\n\tby smtp.gmail.com with ESMTPSA id\n\tn70-v6sm34246969pfh.140.2018.06.18.14.36.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Jun 2018 14:36:01 -0700 (PDT)"
        ],
        "Date": "Mon, 18 Jun 2018 14:35:56 -0700",
        "X-Received": "by 2002:a62:f615:: with SMTP id\n\tx21-v6mr15151648pfh.43.1529357762239; \n\tMon, 18 Jun 2018 14:36:02 -0700 (PDT)",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v3 2/3] examples/l3fwd: use reserved IPv4/IPv6\n\taddresses",
        "In-Reply-To": "<20180618213557.15209-1-stephen@networkplumber.org>",
        "Message-Id": "<20180618213557.15209-3-stephen@networkplumber.org>",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "X-Original-To": "patchwork@dpdk.org",
        "X-Google-Smtp-Source": "ADUXVKIMq9DfBhS+fYd3HkmIY/66v2FPdhurHSX5Gx/76qcnCEALKo2Xqr++r7Jc4izN8l7n42difQ=="
    },
    "content": "The example should use the IPv4 addresses defined in RFC5735 and\nthe IPv6 addresses defined in RFC5180 for the L3 forwarding example\nLongest Prefix Match table.\n\nFixes: 268888b5b020 (\"examples/l3fwd: modularize\")\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n examples/l3fwd/l3fwd_lpm.c | 34 ++++++++++++++++++----------------\n 1 file changed, 18 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c\nindex a747126a2404..3724f79c1924 100644\n--- a/examples/l3fwd/l3fwd_lpm.c\n+++ b/examples/l3fwd/l3fwd_lpm.c\n@@ -40,26 +40,28 @@ struct ipv6_l3fwd_lpm_route {\n \tuint8_t  if_out;\n };\n \n+/* 192.18.0.0/16 are set aside for RFC2544 benchmarking. */\n static struct ipv4_l3fwd_lpm_route ipv4_l3fwd_lpm_route_array[] = {\n-\t{IPv4(1, 1, 1, 0), 24, 0},\n-\t{IPv4(2, 1, 1, 0), 24, 1},\n-\t{IPv4(3, 1, 1, 0), 24, 2},\n-\t{IPv4(4, 1, 1, 0), 24, 3},\n-\t{IPv4(5, 1, 1, 0), 24, 4},\n-\t{IPv4(6, 1, 1, 0), 24, 5},\n-\t{IPv4(7, 1, 1, 0), 24, 6},\n-\t{IPv4(8, 1, 1, 0), 24, 7},\n+\t{IPv4(192, 18, 0, 0), 24, 0},\n+\t{IPv4(192, 18, 1, 0), 24, 1},\n+\t{IPv4(192, 18, 2, 0), 24, 2},\n+\t{IPv4(192, 18, 3, 0), 24, 3},\n+\t{IPv4(192, 18, 4, 0), 24, 4},\n+\t{IPv4(192, 18, 5, 0), 24, 5},\n+\t{IPv4(192, 18, 6, 0), 24, 6},\n+\t{IPv4(192, 18, 7, 0), 24, 7},\n };\n \n+/* 2001:0200::/48 is IANA reserved address range for IPv6 benchmarking (RFC5180) */\n static struct ipv6_l3fwd_lpm_route ipv6_l3fwd_lpm_route_array[] = {\n-\t{{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 0},\n-\t{{2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 1},\n-\t{{3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 2},\n-\t{{4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 3},\n-\t{{5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 4},\n-\t{{6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 5},\n-\t{{7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 6},\n-\t{{8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, 48, 7},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0}, 64, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0}, 48, 0},\n };\n \n #define IPV4_L3FWD_LPM_NUM_ROUTES \\\n",
    "prefixes": [
        "v3",
        "2/3"
    ]
}