From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0074.outbound.protection.outlook.com [104.47.41.74]) by dpdk.org (Postfix) with ESMTP id A48AD1B2E8 for ; Thu, 18 Jan 2018 14:55:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=r1RzfqVG1PsLot+UdYCWkOyo5/F8u0+Xlzduty6jVEs=; b=A1qUM89O/m+NlredQdVZxuelGwaS+MJ0pa59onKwHhn/IBQ90REXQeFPn81nf1slNjZAqI+rx/ILteyFC17V3F/4p4Ujq3V+jqZywH5nRPoIDhdp9iALQJ/tBEgDK1e/yu9MET2S52SqMbGr04FVY2SkZoDf2u0OPP4h4ijtrlw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 13:55:42 +0000 Date: Thu, 18 Jan 2018 19:25:12 +0530 From: Jerin Jacob To: Yongseok Koh Cc: wenzhuo.lu@intel.com, jingjing.wu@intel.com, dev@dpdk.org Message-ID: <20180118135510.GA18814@jerin> References: <20171215211125.39177-1-yskoh@mellanox.com> <20180117181846.3565-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180117181846.3565-1-yskoh@mellanox.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: PN1PR01CA0110.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::26) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc35ffa4-9140-4afa-0ac6-08d55e7b2b70 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534125)(4602075)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:Dp3jbNPgAwelpAtMFrFEZir00wTkTcpJ2h42I58tvtb1LknIxPDB3FZC/smej7ljFJH89cVPYvetq8e1hLVRmNRDdX3pTB2PuTKfYzu32Fvg8MPQw6vDRVv+VkzJIzBNxWSU225e/aOJmtfP/TlLuyJeGsrAAwQhXapJAB1A3TaGzaYSwoBVUGMvxX+uXx6YG0gOi3pqvoqJejKvTVhQ48Nu6TQgHCDI9o/9ME8tFBytFsblGt7dQwggScAd7ELJ; 25:h54V5efynGf/WsWqMdcHLehYnhx4IwGR0zDIrsQ2HRs2LSXJiEfpI7cCX18eWbSLwP+ku4PKdFABtApnHE1rIaPpMJKCwsE8QoB9Zp1xyuznoBGr35ZvQGuhjo4hOL6OGGpoOdPzeCnR43kdUSWXVY5wX61wIbj8dkZ8n/53n9gRrP1iQ9aE50Ybs9Ot5HLfNvAm0Yum/sZZSY1c23P+YGiK+Dy00Y7gBgdbdBed0QpIvXbyPjd2NV0iGkbnOsiLwWvKEP4AZhmazDJXt6Sn1PpBGxGHHHn44H37gQUSkZzUpsNjCdJgToEvvDrrY08ZHWKsxo0aWuqaUHddXHCoxw==; 31:m8bETydbXcwhyYjXIsRV8M7/sZnziHjTaWkQXWUYsLVgwhCnRYPHgtS1jtDVsuNU0JeOsXEr8QEgqXh3bfi0jLEJINJafPDSVsmbejubavDrWlvC/DOkrSxr5I30ryUTzYY9azOdpBVBDP+kPiClNsAonG90kxyjsV9DtroVyKPMhLKgKvWh0mghyYVL2BS7lArgEILDj9njlc46S7InVFEh56VhXamUxGBncGPrn/0= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:XR0JfPsRidD4BsxT6RgI8+W767HDEmCSiXG2xF4dD6mEomOI94Y6ruEf6i1XlfHGNTG3pAq0jjPo3wcewLL1De1a8qo3eWZhn5ACTkCdds3QTYqoaf9AVAYHCvfjgirc1qHIWpaw4bpvwBK+30EBSPgwlLW8/CoAVa02+c5kSXtT1ge1/mthavR/zUylIluVv3bh3X6TgOJYYam0rMnZdu9d7K5YdxDhxB0whTwIxwmZbh6CYOpZo84zuvrr/0TtsyK1jd7yCZ/+IL4Nwt0Bt6exDjK4k4oTSHDAkaQlztj/wqgrtgAYOOTRKw4dOnI97P7nlr35GIRn+uiz0csEXotlpEjx6h4hlOwM/rnlKGpok4X/RmWOXCHxNSA/4JQwimctYPl9AcoDqT1e1w8it/RHnhcXFKtuQkWvZn4HpVzYGJO6agYs1x9NDXkk+MmM39UFixxWmonDOMdcS2Y6STL1bJ+njnFG4F/S/KADk6UNoLS9GOngQ9UWlaRpyuZtt4NP8zYu0x7ITeSyTSQ6HutGjYWXb1FWlbb1toJrwNEBFlBQi2X9TY/U+6K3J0rUgXSAfENl8yP+IULmQph5xLuEZxop3QmZsD7xHsaMIsM=; 4:QxjuEBpZUG6aaLaUKMjDq11y742F9TX0u9Nal1M3oFtb7vlht2v47uDNH2XLV/pqdZNa2EOiwr2sF/w0oZIRiJzadah/kf0CPsScW+aZitfcQhW2vJs8/5DLVRERs6nh+1etdd4kAkN8zfN3Y7+UkxqLxY6WR0Cv4/mzLaV0DuBPHJU7rBDmo27MPZqGOq4sRptJLe0hN2DDBNJmVGKOlzyoIiTfelnQTvyoqKT3hmxKrxgIYhVQI56DvgVJlAV1PGQxpM6tHW74Wa8bpd6n3Do5X+drC4d7pXSi/1MEjHvnDtVRHZqYu2VNBOQFyl4/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(93006095)(3231023)(2400062)(944501161)(10201501046)(6041268)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR07MB2526; X-Forefront-PRVS: 05568D1FF7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(39860400002)(39380400002)(396003)(189003)(13464003)(199004)(7736002)(53936002)(8936002)(478600001)(81156014)(25786009)(5660300001)(6246003)(42882006)(6916009)(33656002)(8676002)(97736004)(76176011)(81166006)(58126008)(2906002)(55236004)(26005)(59450400001)(2950100002)(33716001)(316002)(50466002)(55016002)(9686003)(6666003)(386003)(52116002)(6496006)(16586007)(33896004)(16526018)(106356001)(4326008)(68736007)(23726003)(3846002)(1076002)(6116002)(83506002)(305945005)(72206003)(47776003)(66066001)(229853002)(105586002)(18370500001)(20673002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2526; 23:exQDoSjONzs39mckLibv5xMzrvjFpdLaMKSMEi0/Z?= =?us-ascii?Q?DPaW4PlyvoyomF4YCNxunLwlsPGq/L2iIgQrPJ0+ukC207e9/NhpzttDr/az?= =?us-ascii?Q?71xUI2AxDz2mlIGl6PYfh3Svgujb7GBUp9cLyhCdeQ2xy0g9t21bDpG+Jdoy?= =?us-ascii?Q?Q3tKwjdSn1Icx9dGwjl32Oiws3d3qLk35F0WcLmpzzClaa0FxpCJgfpwYbLj?= =?us-ascii?Q?2fGYboG6aYNiQxdOEByaMsAnyw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GMSQz4NE+DQ4thzUIWKi023TFsRmXWRNCvwe+6DQnK8JF2T97loLl6V2ngjUUlsk6qjNVaNqG/1b/70FBc9dVcbIHH33hgajyTRoLCfWmC1d7zmlAXNRDf3diKxwt/G7NFKI+Wwunxm1L6nxBR0HYZN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 13:55:42.4919 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc35ffa4-9140-4afa-0ac6-08d55e7b2b70 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: make txonly mode generate multiple flows 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: Thu, 18 Jan 2018 13:55:47 -0000 -----Original Message----- > Date: Wed, 17 Jan 2018 10:18:46 -0800 > From: Yongseok Koh > To: wenzhuo.lu@intel.com, jingjing.wu@intel.com > CC: dev@dpdk.org, Yongseok Koh > Subject: [dpdk-dev] [PATCH v2] app/testpmd: make txonly mode generate > multiple flows > X-Mailer: git-send-email 2.11.0 > > Testpmd can generate multiple flows without taking much cost and this could > be a simple traffic generator for developer's quick tests. IP destination > address is varied. Useful feature. > > Signed-off-by: Yongseok Koh > --- > > v2: > * Add detailed explanation in a comment. > > app/test-pmd/txonly.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c > index 1f08b6ed3..253cf2385 100644 > --- a/app/test-pmd/txonly.c > +++ b/app/test-pmd/txonly.c > @@ -44,7 +44,7 @@ > #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) > +#define IP_DST_ADDR ((192U << 24) | (168 << 16)) > > #define IP_DEFTTL 64 /* from RFC 1340. */ > #define IP_VERSION 0x40 > @@ -52,6 +52,7 @@ > #define IP_VHL_DEF (IP_VERSION | IP_HDRLEN) > > static struct ipv4_hdr pkt_ip_hdr; /**< IP header of transmitted packets. */ > +static __thread uint8_t ip_var; /**< IP address variation */ Use RTE_DECLARE_PER_LCORE instead of __thread