From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id F22BC4293D;
	Fri, 14 Apr 2023 09:23:11 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id C9503410F6;
	Fri, 14 Apr 2023 09:23:11 +0200 (CEST)
Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com
 [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id 94F33400D5
 for <dev@dpdk.org>; Fri, 14 Apr 2023 09:23:10 +0200 (CEST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 136173200681;
 Fri, 14 Apr 2023 03:23:09 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Fri, 14 Apr 2023 03:23:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1681456988; x=1681543388; bh=xOpqMaKrSkTp7/BuewvtSu1reR4qghVSdjR
 HHrSsMVs=; b=WYcADWFqnFa/HKGxcnlO5YcZwAgjcI4MknZNHbIjoCHcTJjjRay
 /lILYoThb4/1de/bupTH4/b2FoNvxdA+dqruYHkTRqLKI6ASZXBRZqVK016JfLNl
 ne9qxyO0EYH67YM7cFrvDP/+OwbArLS3fr5dzRJeThaejSzpkhctEOIS4yETNzJS
 jtfvO9YZhaHcOLymhDxanhd3uBTQusWaWA799v9UeOVNOmBB5TnJ3uaOG6ovjM0a
 rRiyH65aXcedDczymi2IKqEGwv9E2HXObAHFNies5sm8u5UD/52hcrKHRHEHRyeY
 RYn3GwwS/Q/eQqLVEsbUTDq80pZzuKGf4uA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1681456988; x=1681543388; bh=xOpqMaKrSkTp7/BuewvtSu1reR4qghVSdjR
 HHrSsMVs=; b=T4yP5Vvp3qKUOu8JeXNelQrL62mZXRoEeed2DLJpPD/AMI6ahbk
 yFlvpGQIKaN8elxOGbyB5/U+n54IEgMrRBphW9PjibiVdIVbr3kF9nhawbVenZKE
 pefPxOPmmF1+2iZrkwSVTFE6gytjnXo4vjXhLiFpgc54ff5Sr5wNSjtSgnnqEYGf
 bMQxgsqT0gVxElFSmu+zPK+V3wF7fC2BT4QZSN2bayekSpCBAgZRYL2IWDzyoLEy
 RwfOygxVON8ZQiqSD4ONXHtvP3NPVYnr0kTcMHFr1fR/qQjlAjDyHIh6S8RLIwzo
 /Paj3HnuObXxMLnoWum005hR12UZQrABXTA==
X-ME-Sender: <xms:XP84ZJ9uyq0XG4Ae_JYu-gOPl66o39eha5Y4-u0RC57bKv1EzPxWrQ>
 <xme:XP84ZNsPHgMjBBJFbr9H8V14ZEy1Te4HrGXFafCyb7SagzB3nx9pL2dEcPJi2x9db
 AGesH3hlvV8pVM9_g>
X-ME-Received: <xmr:XP84ZHDaT9XxETuhE-HXkCrFkdFx5opiDqz4gMVb5nt52MP8ROF8_srFUzyD19TQ7EUzWG_7YtGd_ElXk28TU_oPdA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekledguddvudcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhho
 mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne
 cuggftrfgrthhtvghrnheptdejieeifeehtdffgfdvleetueeffeehueejgfeuteeftddt
 ieekgfekudehtdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth
X-ME-Proxy: <xmx:XP84ZNcNZFUBo_tCSEJeyXbMuX4aPYDna3aQEQM6nSvgRrvfScEJ1w>
 <xmx:XP84ZOPSgLDW920WgCfb6E_30cTtdDsYB5kwDu2mqYVWqni1q1_cVg>
 <xmx:XP84ZPlYfKg7j5KUhrGJjagczvAeqGyomdHCz1JZOxv1ciNqkIodcw>
 <xmx:XP84ZHY5MPhTQEpdIprczbHhDvDlY7hy7-EB-2UIIMs19qXEItz6SQ>
Feedback-ID: i47234305:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 14 Apr 2023 03:23:07 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Robin Jarry <rjarry@redhat.com>
Cc: dev@dpdk.org, Olivier Matz <olivier.matz@6wind.com>,
 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Subject: Re: [PATCH] usertools: add tool to generate balanced rss traffic flows
Date: Fri, 14 Apr 2023 09:23:06 +0200
Message-ID: <21838707.EfDdHjke4D@thomas>
In-Reply-To: <20230413203010.638406-1-rjarry@redhat.com>
References: <20230413203010.638406-1-rjarry@redhat.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

13/04/2023 22:30, Robin Jarry:
> From: 6WIND <grumly@6wind.com>

I don't remember drinking a beer with grumly.
Maybe it is not his real name?

> usage: dpdk-rss-flows.py [-h] [-s SPORT_RANGE] [-d DPORT_RANGE] [-r]
>                          [-k RSS_KEY] [-t RETA_SIZE] [-j]
>                          RX_QUEUES SRC DST
> 
> Craft IP{v6}/{TCP/UDP} traffic flows that will evenly spread over a
> given number of RX queues according to the RSS algorithm.
> 
> positional arguments:
>   RX_QUEUES             The number of RX queues to fill.
>   SRC                   The source IP network/address.
>   DST                   The destination IP network/address.
> 
> options:
>   -h, --help            show this help message and exit
>   -s SPORT_RANGE, --sport-range SPORT_RANGE
>                         The layer 4 (TCP/UDP) source port range. Can
>                         be a single fixed value or a range
>                         <start>-<end>.
>   -d DPORT_RANGE, --dport-range DPORT_RANGE
>                         The layer 4 (TCP/UDP) destination port range.
>                         Can be a single fixed value or a range
>                         <start>-<end>.
>   -r, --check-reverse-traffic
>                         The reversed traffic (source <-> dest) should
>                         also be evenly balanced in the queues.
>   -k RSS_KEY, --rss-key RSS_KEY
>                         The random key byte-stream used to compute the
>                         RSS hash. This option supports either a
>                         supported driver name or the hex value of the
>                         key (default: intel).
>   -t RETA_SIZE, --reta-size RETA_SIZE
>                         Size of the redirection table or "RETA"
>                         (default: 128).
>   -j, --json            Output in parseable JSON format.

How do you parse the JSON format?
Is there a tool able to use this table and generate the traffic?