From patchwork Tue Nov 5 16:09:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 62485 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B539A04A2; Tue, 5 Nov 2019 17:09:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D64891C043; Tue, 5 Nov 2019 17:09:29 +0100 (CET) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 46BAE1C068 for ; Tue, 5 Nov 2019 17:09:28 +0100 (CET) Received: by mail-pf1-f195.google.com with SMTP id v19so15859234pfm.3 for ; Tue, 05 Nov 2019 08:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O6VeH72e/ndJOQ9u/3VJh1xKty7UV9n2V9VfvA/xHuk=; b=zg1gFk9ZU+QILAgUA2ixIikghPTZpe3KSPF09gyAvorPAouZ+R8ZIF23hTdw3p3kh3 cL1P0NKWkD/BYUjiE/1k7oiGFQsAhIVrdZhhQXXPob/uomuwOTQULRA4KDQnxGxiYYag EN0/Pl7E7IJsZW8wjWhkkiUDhBodvUNSG2L914iCaW7jRKCLN5aXh+V+qVmp4XwV9gm1 qoB5IukJZGZXju30Mc0R1sbTHzbab2HOZpINTf66+14k5LuCBaJ8Z22x+4rasml6Tnqu nmcJW91LI38FsLGuo/GmVAZp3I/+C/Qd6uloKa2c+iU+edeBNIKETpS2E1TDw4E1bnwf E+mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O6VeH72e/ndJOQ9u/3VJh1xKty7UV9n2V9VfvA/xHuk=; b=izk6PqOxB9kNelhmjBUhS2yyFmab5SpcGe4+TCp0noBwXZlFDjXqcsl7GG1Z++stlL MyGVHNQhWdjWGoYSwvbQQXWR8vRvBRlGZ/HlzlDmU0v6DzqThCmWlxxgGkDeSn6KVlKi jWR9OhquColGtoVTHqLE+H/nCikCJRMcbYM4AgldB224rR4Lt6oGfIuixUT4M2y5vvxP Vgp1FADCge6NxhhG89oMB0bNqZcnR+xboH7o0Vv6qzDqntncE8QZiBZfUn+GwJEhgD3w +mVSLc13VtMR1o7N3DjhYm7JHykItLho1pGH9JfZOP5xRNW9aynAe9czrSUzsicQurIL Nckg== X-Gm-Message-State: APjAAAX6JZ4gK6kELG3PcINKaXShTLhMvyEg5w5ENmDBYOQC+LQc7qNK 6+fgHAa18M5eU8mcsy2OzpUXhslo7Xks2A== X-Google-Smtp-Source: APXvYqyHCeAiKf3pK9I9HUf+NCT1ARMVPn5WIAV18WIJ1oXis9hpCkX4WoAcmROLFofFfTRyiQXPqA== X-Received: by 2002:a63:3f04:: with SMTP id m4mr37467058pga.234.1572970166718; Tue, 05 Nov 2019 08:09:26 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id o191sm24240594pfg.64.2019.11.05.08.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 08:09:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ferruh Yigit Date: Tue, 5 Nov 2019 08:09:21 -0800 Message-Id: <20191105160921.6951-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] examples/l3fwd: use correct IP reserved address range X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The original patch used incorrect subnet range for testing. Fixes: 37afe381bde4 ("examples/l3fwd: use reserved IP addresses") Reported-by: Ferruh Yigit Signed-off-by: Stephen Hemminger Reported-by: Hemant Agrawal Acked-by: Hemant Agrawal --- doc/guides/testpmd_app_ug/run_app.rst | 6 +++--- examples/l3fwd/l3fwd_lpm.c | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index 00e0c2ac5152..858cec7e0b0b 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -129,9 +129,9 @@ The command line options are: * ``--tx-ip=SRC,DST`` Set the source and destination IP address used when doing transmit only test. - The defaults address values are source 192.18.0.1 and - destination 192.18.0.2. These are special purpose addresses - reserved for benchmarking (RFC 2544). + The defaults address values are source 198.18.0.1 and + destination 198.18.0.2. These are special purpose addresses + reserved for benchmarking (RFC 5735). * ``--tx-udp=SRC[,DST]`` diff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c index a3a65f7fc814..349de2703cd1 100644 --- a/examples/l3fwd/l3fwd_lpm.c +++ b/examples/l3fwd/l3fwd_lpm.c @@ -41,16 +41,16 @@ struct ipv6_l3fwd_lpm_route { uint8_t if_out; }; -/* 192.18.0.0/16 are set aside for RFC2544 benchmarking. */ +/* 198.18.0.0/16 are set aside for RFC2544 benchmarking (RFC5735). */ static struct ipv4_l3fwd_lpm_route ipv4_l3fwd_lpm_route_array[] = { - {RTE_IPV4(192, 18, 0, 0), 24, 0}, - {RTE_IPV4(192, 18, 1, 0), 24, 1}, - {RTE_IPV4(192, 18, 2, 0), 24, 2}, - {RTE_IPV4(192, 18, 3, 0), 24, 3}, - {RTE_IPV4(192, 18, 4, 0), 24, 4}, - {RTE_IPV4(192, 18, 5, 0), 24, 5}, - {RTE_IPV4(192, 18, 6, 0), 24, 6}, - {RTE_IPV4(192, 18, 7, 0), 24, 7}, + {RTE_IPV4(198, 18, 0, 0), 24, 0}, + {RTE_IPV4(198, 18, 1, 0), 24, 1}, + {RTE_IPV4(198, 18, 2, 0), 24, 2}, + {RTE_IPV4(198, 18, 3, 0), 24, 3}, + {RTE_IPV4(198, 18, 4, 0), 24, 4}, + {RTE_IPV4(198, 18, 5, 0), 24, 5}, + {RTE_IPV4(198, 18, 6, 0), 24, 6}, + {RTE_IPV4(198, 18, 7, 0), 24, 7}, }; /* 2001:0200::/48 is IANA reserved range for IPv6 benchmarking (RFC5180) */