From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 180B0A00BE; Sun, 26 Apr 2020 23:19:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC18A1C1C9; Sun, 26 Apr 2020 23:19:35 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by dpdk.org (Postfix) with ESMTP id 2C55A1C1C7 for ; Sun, 26 Apr 2020 23:19:34 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id BA6AA50E; Sun, 26 Apr 2020 17:19:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 26 Apr 2020 17:19:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= +SHut/XaeP3dYsQNNKgJDjW1Ot3DZQER1faZahZjp+I=; b=o/YgnY2jxfugDJ1U mmCxCcysx9ZRx2AgZ/CXrqVo2VBv89H8A3riOyS/Yxg6v9ezgFVjFvPN91I7vCtd rOAXC57ONxAdxzN3LkztyL+bM8soRMC2Lg9+71kxs1CrbR0QVChHlvHSfmt44w4S CiwTpctWeQbEEhej4IIDYxKvmcG7F1o5XtI3yWFc/5Gv7Px6ttxChF6vsqF98muB C/ayZh1fA7qsvn1I+n7lKY2kY7KGcG2PbMaN+6OrwGt8ONBQEQ2yAOVtJo20FBFq RIkgcYqjMElGeagq9F0rk7QWNyDcG7jFP16Po3B7ZEwc36gWtguj6pqZBnXTglqw uGh7rg== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=+SHut/XaeP3dYsQNNKgJDjW1Ot3DZQER1faZahZjp +I=; b=tO/MbJqc6Gdb72jD3QJLntTqCg1r6hoiDk6nlaC3OzzsxX5y6xOQ1Q2jr X09EMqRyAeYFG1pmVK4DjhYhBMl/fZYNNngmIDW8iGem6MU+JT6Ed5XYl517P4Jm iR4mCJ509bP1XYg3IN9AQExWVyETOcYVbQyfiA69riQtBQvkx2sLJghL7dyk06qK Z9ReWAxt98BM6VZgqdqh8SVoSBtiv68zHrqcW3pXsKsk5v+o0s6vZrkCkhZjvU65 v+c2aRgRgepFIce9q7JQGOI3quuFzhgIHWQvaIrw7jdoyLvF4A6zOdSMsDl7FBTh SHQgWBkgeWYZyXj336GxbCYj1IoUA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrheejgdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id CC5CB3280060; Sun, 26 Apr 2020 17:19:29 -0400 (EDT) From: Thomas Monjalon To: Vamsi Attunuru Cc: dev@dpdk.org, jerinjacobk@gmail.com, bruce.richardson@intel.com, david.marchand@redhat.com, grive@u256.net, jerinj@marvell.com, pbhagavatula@marvell.com, aostruszka@marvell.com Date: Sun, 26 Apr 2020 23:19:28 +0200 Message-ID: <4727111.097qLLJo0e@thomas> In-Reply-To: <20200405035243.8726-1-vattunuru@marvell.com> References: <20200403033013.4842-1-vattunuru@marvell.com> <20200405035243.8726-1-vattunuru@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] [v2 1/1] examples/l2fwd: add cmdline option for forwarding port info 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" 05/04/2020 05:52, vattunuru@marvell.com: > From: Vamsi Attunuru > > Current l2fwd application configures adjacent ports as destination > ports for forwarding the traffic which is a kind of static mapping > that can not be altered by the command line options. > > Patch adds a config option to pass the forwarding port pair mapping > as a command line parameter which allows the user to pass required > forwarding port mapping. > > If no config argument is specified, destination port map is not > changed and traffic gets forwarded with existing mapping. > > When port pair mapping is passed in config option, destination port map > is configured and traffic gets forwarded accordingly. > > Ex: ./l2fwd -c 0xff -- -p 0x3f --config="(0,3)(1,4)(2,5)" The option name "--config" is vague. Could we call it "--portmap", or something similar?