Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52617/?format=api
http://patches.dpdk.org/api/patches/52617/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190410174132.8349-3-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": "<20190410174132.8349-3-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20190410174132.8349-3-stephen@networkplumber.org", "date": "2019-04-10T17:41:31", "name": "[v6,2/3] examples/l3fwd: use reserved IPv4/IPv6 addresses", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "f90222ec3c02b2a77f14f8bbd4e9aed45fab11a3", "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/project/dpdk/patch/20190410174132.8349-3-stephen@networkplumber.org/mbox/", "series": [ { "id": 4249, "url": "http://patches.dpdk.org/api/series/4249/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4249", "date": "2019-04-10T17:41:29", "name": "use IPv4 addresses reserved for testing", "version": 6, "mbox": "http://patches.dpdk.org/series/4249/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52617/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52617/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 3B7A81B3A4;\n\tWed, 10 Apr 2019 19:41:48 +0200 (CEST)", "from mail-pl1-f194.google.com (mail-pl1-f194.google.com\n\t[209.85.214.194]) by dpdk.org (Postfix) with ESMTP id 1E7BE1B2AF\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 19:41:38 +0200 (CEST)", "by mail-pl1-f194.google.com with SMTP id w23so1854791ply.4\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 10:41:38 -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\tl69sm50229696pga.73.2019.04.10.10.41.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 10 Apr 2019 10:41:36 -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=EPVXjhJ083pVs32eU5ZyTvr7yCTBLlBJlHfovYTUCAo=;\n\tb=Zn0CZuPm/w5WAo7tfOlJNm8TBkWFviJc/zFDGKFFUK+1Iz10WP+ma3Q+0A0n/UXRXU\n\tRBdxr4GgGQTA7oMxwTR/E5CFl32Lc8ZS7A3w9XSWBO2RMoMHkIW+ZEaqyEcJZERDcxHm\n\ttnBhaLBL23XDqyukxIBxNWVXeZXa/n8GITvirZXDB+flIFSdODzbDnGeZFa/WEKm8YK+\n\td2LsOJfyEp23OrVOXlVj0rVVMsD35Id5AThoysXih5RirzCbtXmpS00aJm3x61m/zTMK\n\tQtVXtJLG6g/ginioU6swtDYnHjvwWWNokGbaadVm+8AvTtVNctUkrcixylPIXGNRTyaa\n\taZ6A==", "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=EPVXjhJ083pVs32eU5ZyTvr7yCTBLlBJlHfovYTUCAo=;\n\tb=HlU1ZmYnDQYg6uOgwW3RMe3tzSjcNpV/hcKHI41OuJxo75Ge04MlcLupNCAlTjB16I\n\tXDfKiknFGo2BqSQoWLB4y5hXM6+Ji14Kc5DhbacaIW2q/R7gLbNoFgYYSZ9V7io2ME2G\n\tdPaXjaOphaUF5ug52/AmgQvt7ehR8W6Y1f1AdhuXvYiSgobkl8MUatG4IfU/GCGUasEq\n\tTlEigik/06t2zRzOZI1jPAF/o75RDZBbogykwBEIdbVv/LA7kthcRNQs1rfM43l0ShHN\n\tMH3eV8vkPtoKrM2adpiSvk8L37GTVkp9h/2q3ZEJqZ7kYFbNmkxB4hIDYCzT69Xjd9ee\n\tjonA==", "X-Gm-Message-State": "APjAAAUt+hG0mv3ZUWQwQ4xIK5o/g2iBLiZ0rq6KHQ5aXX3eApl0ogkr\n\tkOq/hXMqRaDXeDs+jnNOfZaztBl6crduiA==", "X-Google-Smtp-Source": "APXvYqw8Q/UgaN95A7cSdWzhFMGEG/SzTzbtUQx/G46Pgr6vXHNh9eOWTVHDJmVjMJC87kNmk//Nlg==", "X-Received": "by 2002:a17:902:9341:: with SMTP id\n\tg1mr7322276plp.81.1554918097443; \n\tWed, 10 Apr 2019 10:41:37 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>", "Date": "Wed, 10 Apr 2019 10:41:31 -0700", "Message-Id": "<20190410174132.8349-3-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190410174132.8349-1-stephen@networkplumber.org>", "References": "<20190409182006.12944-1-stephen@networkplumber.org>\n\t<20190410174132.8349-1-stephen@networkplumber.org>", "Subject": "[dpdk-dev] [PATCH v6 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---\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, 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}, 48, 0},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, 48, 1},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0}, 48, 2},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0}, 48, 3},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0}, 48, 4},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0}, 48, 5},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0}, 48, 6},\n+\t{{32, 1, 2, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0}, 48, 7},\n };\n \n #define IPV4_L3FWD_LPM_NUM_ROUTES \\\n", "prefixes": [ "v6", "2/3" ] }{ "id": 52617, "url": "