From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by dpdk.org (Postfix) with ESMTP id 322D35F25 for ; Wed, 21 Mar 2018 04:44:54 +0100 (CET) Received: by mail-pl0-f66.google.com with SMTP id k22-v6so2374100pls.6 for ; Tue, 20 Mar 2018 20:44:54 -0700 (PDT) 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; bh=iJWj5pcq4u4UmrXgj2nfu50OsXL2nf704h6Nw6Hw/wU=; b=efWQmyclk6QFY2dbGhxm5Yql07P8Yr01KxOnCNFlrTM9iDBdVk1CJuAXqeqr/Wk2p5 DYE3AtSbaXUOnCbI+kZlguAz8v3uooY3ElPm8ktOsiscd7bY/dEcwhYPDLPH8tFtANq4 aJ+u5go+kHbdtTgMEZzLHm11Z6M0S9ENJp7bwNCeB5kSM3zH6u/HZ76wa0BieMMZC+KR +RLSsMq3vra19MnH6EkFHETcxHN6DYkH9UYUfxORrYLQ/b+JdI7mmA50dLYaXpj5magH Fwy1rNlIO12s8y8+TLdng6TOKQRJqSmKlYJqJxbVdrHdZQQ5OFaqSGf06JOBEz+GnIz6 aLxA== 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; bh=iJWj5pcq4u4UmrXgj2nfu50OsXL2nf704h6Nw6Hw/wU=; b=NWgy7czQpxtqb22nA2UidaqddvU/RMIPppMMhTaywLazXqE47H7wZS0UfAMUFaehtd KC25YkSh8uEHHHt3dYWNVIf8iLSHm1TEra95axibGx0/ZHhOL0ijoFjHbN3Zv/m2MY/X +QMoaQgWsE97SUU+0xfWXR6QzxG0lf7iq82+YSLMsahOkqNiTHbMK6gx1LpFR8zCd8gx t9/RNVNjsT7/kHbTL9FvsP/QKEVdQ1xV771cpB4sug7aO2qcYPzXo+B0J5Oo9ZDRgJWc SP27gJq7KU/3BprL6lMUWQHdwGbYOHLlJHddk5xOdCsCg5EvbXnAhhlnO5/NGxWnomRv fDhQ== X-Gm-Message-State: AElRT7GrIGyQ7/U33XM+IQTGyVXZaDmSCn2sEJ36iWQRs0yvlGUE5sfD DMmXXXdlK/9mgS7dS94RF3Yt/nx2kGg= X-Google-Smtp-Source: AG47ELseThK5JWzoJRcSNWSAloA5p3a5cLGHEQLIudwuCnIYq0I/6AeoB9nFlNSqQb2Ua1c4N/oqhw== X-Received: by 2002:a17:902:aa89:: with SMTP id d9-v6mr19128986plr.337.1521603892956; Tue, 20 Mar 2018 20:44:52 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id x3sm4953685pgv.86.2018.03.20.20.44.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 20:44:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 20 Mar 2018 20:44:36 -0700 Message-Id: <20180321034436.4089-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.16.2 Subject: [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, 21 Mar 2018 03:44:54 -0000 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 -- 2.16.2