get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52134,
    "url": "https://patches.dpdk.org/api/patches/52134/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190402203907.28679-3-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": "<20190402203907.28679-3-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190402203907.28679-3-stephen@networkplumber.org",
    "date": "2019-04-02T20:39:06",
    "name": "[v4,2/3] examples/l3fwd: use reserved IPv4/IPv6 addresses",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f90222ec3c02b2a77f14f8bbd4e9aed45fab11a3",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190402203907.28679-3-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 4071,
            "url": "https://patches.dpdk.org/api/series/4071/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4071",
            "date": "2019-04-02T20:39:04",
            "name": "use RFC addresses in test applications",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/4071/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/52134/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/52134/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 9C6AC1B184;\n\tTue,  2 Apr 2019 22:39:19 +0200 (CEST)",
            "from mail-pl1-f196.google.com (mail-pl1-f196.google.com\n\t[209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 4397B1B13A\n\tfor <dev@dpdk.org>; Tue,  2 Apr 2019 22:39:14 +0200 (CEST)",
            "by mail-pl1-f196.google.com with SMTP id b65so6837811plb.6\n\tfor <dev@dpdk.org>; Tue, 02 Apr 2019 13:39:14 -0700 (PDT)",
            "from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com.\n\t[204.195.22.127]) by smtp.gmail.com with ESMTPSA id\n\tt64sm34191748pfa.86.2019.04.02.13.39.11\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 02 Apr 2019 13:39:11 -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\tbh=ADwu+sB8FOuB6j+XjwKBgAnbwkO3j2SRWaMKmPAxYk8=;\n\tb=us+/zHwKeq2aPHafEUVA8cEazy3rYDRZFgkZz5WMwfDFP0IQzBuZFj9f3qbf22vfz5\n\tM4WYW6NzawhFsiwN0ypReyZAFptnD2qvz3kqS7tNKaVBcDYxTPRh/c1+g4cMzLqsB3ja\n\tqxHxuuk3KKv7DYt+2eUkElxIbv+XtC5Bo9hcn89ZZbb0adUFM6RJ4pEbClSR9d+wc8He\n\tXn0eOQ5HjdrsM1uWiHyQhoRVYzjKNqFO0MAxwJvkmyZFSeR+ScJMW6Exg/O90P/cqoeX\n\t6SSxlNKzSRWdhj0kKPnMz/XSY7j6GQo2mwvkSGM8A6EIpgHQDVdWDWNNlmfPK9KyaVjx\n\thw4g==",
        "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=ADwu+sB8FOuB6j+XjwKBgAnbwkO3j2SRWaMKmPAxYk8=;\n\tb=BCkYoA3AgpgIZ7rox20nJyo1hNH0vMKvD0KGCQ7T3Is7gHl7+iZNDLaBrbyIBLiOUk\n\tPaCbat1f+8Oz1IPsxIG7nRQeogwqgyq8Z7dUJqhxRXnALeWhrYWS9AC2mLzFFou9yzgw\n\tKskh5wHbHMbiFJNjK2Fki7iqHMWAza/KJK1rLJLBJlwYlyArAPBJg+cV1KwPfDcKpQK0\n\tWtwSrM8ZWWSMuwuwbZUj3JjEwNZH0BDHGZ4h7wRyLrKc8zunlO/UCAtEssfpYZYH+9Pl\n\tsPWPGZ08SQsvJxumosQiWDuIkElQPvJtmHXQCp50T6labOnqzxEXPtCB6IF1W4h/Z2k5\n\tb7ag==",
        "X-Gm-Message-State": "APjAAAU7/PRSXfCIO7qsRLWKP3mvMb8fMN2cy46l0rQzFkvoRFHcLVZR\n\tDTatJmh0EEA70qqBPDTeP1L+IgFnPLfcaA==",
        "X-Google-Smtp-Source": "APXvYqyYUFYjyy8dUq9H2zSroqrq6fRREVIkJ6M73N6YvZhiuAYx8BQTNaSYCLON3Hugc0PnsEIQLA==",
        "X-Received": "by 2002:a17:902:e109:: with SMTP id\n\tcc9mr19960830plb.148.1554237553048; \n\tTue, 02 Apr 2019 13:39:13 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Tue,  2 Apr 2019 13:39:06 -0700",
        "Message-Id": "<20190402203907.28679-3-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190402203907.28679-1-stephen@networkplumber.org>",
        "References": "<20180618213557.15209-2-stephen@networkplumber.org>\n\t<20190402203907.28679-1-stephen@networkplumber.org>",
        "Subject": "[dpdk-dev] [PATCH v4 2/3] examples/l3fwd: use reserved IPv4/IPv6\n\taddresses",
        "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": "The l3fwd 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\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\nv4 - fix IPv6 /48 entries\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 b1dc195ad8cb..3191fc4c2639 100644\n--- a/examples/l3fwd/l3fwd_lpm.c\n+++ b/examples/l3fwd/l3fwd_lpm.c\n@@ -39,26 +39,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 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, 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