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 481A0A04AC; Tue, 1 Sep 2020 15:30:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D93291C0AC; Tue, 1 Sep 2020 15:30:56 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id B74A31C07D for ; Tue, 1 Sep 2020 15:30:54 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1AEB25C02CA; Tue, 1 Sep 2020 09:30:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 01 Sep 2020 09:30:54 -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=fm2; bh= zsdp7X80kwsPA0ycOMwLyCBOhaO16y2KHtoNVt1QfPs=; b=S86R/vlnJycgRUNf Js6P7aprDmqpDfR9Nw8rhD+rtYPWlE1bIUkKdHX878z5z+eqyvBXxxCYPfZ1koLm jTdvRo2XkUgD+GXamqy0dhLEIxlLU/XdcRMfsv0jnTU+dJPJObWIP6Styoulw+dy 28RWpSTV6CrBxteN/pgvBzus3TvRfmTIvIL/20CVjBDBbxKTg17rRu3VaitfjU7k riRY2Wb7qhZvKbEoCz6abfq8kigJJyOvfCwyz/T41x7BI6vkdPCO8lE0EEinMZPa banHUOMTchTBpL7xllgRUiW4glOhJX1ty9vyrHymNOKR2La6zur0CoD47CYQ1mLu QHAbqw== 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=fm3; bh=zsdp7X80kwsPA0ycOMwLyCBOhaO16y2KHtoNVt1Qf Ps=; b=oavYzfOfiY5rUFY0VvZGv5iBcdmYcveA+S8F5YIjtKe8UqoVRb5tGye6e HalAm268fvLV4yjgI0JezsPLuZoOP5Xl0xWp4D3eYuifFsZ3TOBfHXOYXxNKBe28 1sFpg8UtsZ2lE0+B1ttV0gYEjMg30cxZzbcPsAaf98dQSrIsx9USUufLNcfqSCxc VEh1wJpCFI2B+9LrJVmpwU5yo5+y2yQR0FWZxiB/Fp37TGgI+odmGKLCNo5+HwQm KBn8JUVMD6nTFKjotmI0wy9xBgJkQAv6QTodSXzle1vKzLl2wOEEGjmnDrvqO9SX SAUdAtTB9R/NEAzu5NwTzp79Ki4Zg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudefjedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goufhushhpvggtthffohhmrghinhculdegledmnecujfgurhephffvufffkfgjfhgggfgt sehtqhertddttdejnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhoh hmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepgfektddvkeel gfeivdfhveeltdeggedtgfevteeifedtgedvheejtdefudeileffnecuffhomhgrihhnpe hgohhoghhlvgdrtghomhenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmoh hnjhgrlhhonhdrnhgvth 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 97D4D328005A; Tue, 1 Sep 2020 09:30:52 -0400 (EDT) From: Thomas Monjalon To: Sarosh Arif , Stephen Hemminger Cc: dev@dpdk.org Date: Tue, 01 Sep 2020 15:30:50 +0200 Message-ID: <2173565.OSGeAx7z5R@thomas> In-Reply-To: <20200818100959.00fa004e@hermes.lan> References: <20200818100959.00fa004e@hermes.lan> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [RFC] usertools: Replace dpdk-setup with a python curses based script 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" 18/08/2020 19:09, Stephen Hemminger: > On Tue, 18 Aug 2020 17:39:19 +0500 > Sarosh Arif wrote: >=20 > > dpdk-setup has been used for a long time in order to compile and > > configure dpdk along with running some basic applications. dpdk-setup > > uses the make build system to compile which is now deprecated. In addit= ion > > to this it has been discussed on the mailing list a few times that > > dpdk-setup UI is quite old and it needs improvement along with > > addition of some other facilities. This had created a need for python > > curses based script that would provide similar functionality as > > dpdk-setup but with more options and better UI. The idea is almost simi= lar > > to kernel's make menuconfig. The reason to select python curses is that= it > > comes as a standard library with python. The script will use the meson = build > > system for compilation. > >=20 > > Here is a link containing suggested UI: > > https://drive.google.com/file/d/18ngGpO_e-8FYNKjkKqS1IKQSrDDcXSO6/view?= usp=3Dsharing > >=20 > > The following options will be present in the Menu and Sub-Menu: > >=20 > > Compile > > Compile with gcc > > Compile with icc > > Compile with clang > > Compile examples > > Cross compile > > arm64_armada_linux_gcc > > arm64_armv8_linux_gcc > > arm64_bluefield_linux_gcc > > arm64_dpaa_linux_gcc > > arm64_emag_linux_gcc > > arm64_n1sdp_linux_gcc > > arm64_octeontx2_linux_gcc > > arm64_stingray_linux_gcc > > arm64_thunderx2_linux_gcc > > Arm64_thunderx_linux_gcc > > Ppc64le-power8-linux-gcc > > cross-mingw > > Hugepages > > Setup hugepage for non-NUMA > > Setup hugepages for NUMA > > Remove hugepage mappings > > Insert module > > Setup VFIO permissions > > VFIO > > KNI > > IBG UIO > > Remove module > > VFIO > > KNI > > IBG UIO > > Bind and Unbind devices > > Bind device to IGB UIO > > Bind device to VFIO > > Unbind devices from IGB UIO or VFIO driver > > Display > > Hugepages info > > Current device settings > > Run Applications > > Test application =E2=86=92 prompt user to enter flags and possibly = build > > directory name. Also give a default options for flags > > Testpmd application =E2=86=92 prompt user to enter flags and possib= ly > > build directory name. Also give a default options for flags > >=20 > > In addition to this, the user will have the facility to provide any > > additional flags for compilation if he/she wishes to. >=20 > I would prefer a set of scripts that each do one thing. > Having a GUI is a lot of overhead to support. Me too, I prefer simple scripts. And I prefer even more documenting simple tasks. We can extract the lines for hugepages settings in a standalone script. Perhaps doing the same for VFIO setup. Not sure about the rest.