From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 785CC1C77E for ; Wed, 4 Apr 2018 17:38:00 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C3D6721B68; Wed, 4 Apr 2018 11:37:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 04 Apr 2018 11:37:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=Ag6jtyiPrRUhqXXTUGkRzIr+zj 179eIbCu93y2wD9CQ=; b=Ewm02XncBR6p2+sS+XFntGWKBODPUgvOvMs4G3CiT6 E36Y8+u1injaKbY5BgQku3Wamob01iaW92uVWqXsDt1AIDyw3k6q4A79gjdUUIfP nW/GU0oHBYlRbmVkPkF7Q72SZajz2Y7xrJeH3kGyv4190MPZ0kIFm/Jfk1V5Q8YK E= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Ag6jty iPrRUhqXXTUGkRzIr+zj179eIbCu93y2wD9CQ=; b=KvvsSoXukv3kiBJ1dBQNiF UQphlHon33Uh6DKF0OXIKuRPyGzwV0Y9O+MriNDeKdcOLC2ijRl3vPylXTFO6OVY iQoyllfN6xZTy35MI9fCtmS7tNvqXD74HMXJmjITCFVdYWFWEmBhioSnRizNS1Pg w6K88Yw6nEwcryud5kxDr+GXnlL9BaPe+8tRIXj8Ec5sTcPtLnPBeXB2Imtkehmm ftHymfruIgjrTgNM6WIt1X/ESFTFx93Wrn41d4NWEJeIx/d8gD3FF5OTKIA67QwA 2qIy2fVog7XkEboyJXYUfe2RmJoKk9lDeA6FsiTDAU/Uif5vWQ79hXLBlV6Sxg7w == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 07280E471F; Wed, 4 Apr 2018 11:37:58 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: Stephen Hemminger , Wenzhuo Lu , Jingjing Wu , pablo.de.lara.guarch@intel.com Date: Wed, 04 Apr 2018 17:37:58 +0200 Message-ID: <2854179.edOHD48eUJ@xps> In-Reply-To: <20180321034436.4089-1-stephen@networkplumber.org> References: <20180321034436.4089-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [RFC] testpmd: use RFC2544 reserved IP addresses 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: , X-List-Received-Date: Wed, 04 Apr 2018 15:38:00 -0000 +Cc maintainers 21/03/2018 04:44, Stephen Hemminger: > Change the transmit only side of testpmd to use the IP addresses > that are marked as reserved for benchmarking by RFC2544 192.18.0.0/27; > rather than the commonly used subnet 192.168.0.0/24 which is likely > to used for administrative interface. > > Signed-off-by: Stephen Hemminger > --- > app/test-pmd/txonly.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c > index 1f08b6ed37a2..22785bdcbe44 100644 > --- a/app/test-pmd/txonly.c > +++ b/app/test-pmd/txonly.c > @@ -43,8 +43,9 @@ > #define UDP_SRC_PORT 1024 > #define UDP_DST_PORT 1024 > > -#define IP_SRC_ADDR ((192U << 24) | (168 << 16) | (0 << 8) | 1) > -#define IP_DST_ADDR ((192U << 24) | (168 << 16) | (0 << 8) | 2) > +/* RFC 2544 reserved IP addresses for benchmarking */ > +#define IP_SRC_ADDR ((192U << 24) | (18 << 16) | (0 << 8) | 1) > +#define IP_DST_ADDR ((192U << 24) | (18 << 16) | (0 << 8) | 2) > > #define IP_DEFTTL 64 /* from RFC 1340. */ > #define IP_VERSION 0x40 >