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 2026FA04EF; Mon, 25 May 2020 08:55:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D56F61D688; Mon, 25 May 2020 08:55:14 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id C95521C1C4 for ; Mon, 25 May 2020 08:55:12 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 668865C0094; Mon, 25 May 2020 02:55:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 25 May 2020 02:55:12 -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= rjdL7r1QB5IAR6DmKtySjDl3lGLHuX2QEw/KwEVs0f4=; b=mtGFoYt0bASk/PlO bWGB8AAAB3xeCOh+zUJDL20RdkBMMKkYgrkssEhl1/4APuv6fOTi7M7DZpTbhCHL i0nvCUJmdHet+7Z3EgAHGmKy6Zsd028i6sV3K3OaneE4lYIDSVW/L4a4NnZ+5Bft oBmgUwB1PJrOEbWYi6cwj6HFJxQa81djyg6cXHXJjs2XZoUtoVLiZYNA2jz67mpt 3/p2q2LQlVNc7tpFHfIbKO2mkmDYHXdRmKBK7UI5ay6fCp1+/ntyl3lmrFmKSsJZ z6Zzb6twMdmWteHmqAoYb11QwOw/AzfEb+oFeCwqilAXJanbAJSsUEkS5QijOyki 9O/+jQ== 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=rjdL7r1QB5IAR6DmKtySjDl3lGLHuX2QEw/KwEVs0 f4=; b=tb9uxwI6+YYZyM7WzpJRPEX4Ch1g5+uy7CFtYmrUZB+xQ5A5YNkm3tN8P 8wSaEduVNUFZaBGETLwBcv6iR1RkbERG2Nz7PekcXfFPsxqFiavRbFxHzjKJnSrQ VdtQf4SzusdammPzdrrD8Ce3alTk6VsDAmIZOtEoLf2KDvO7TgBvPm6qcPmDk3tQ UgIronVfgeP9uB+UohoAaGHbnCgl73s6x1OOGe9LNdFkuVT7dZSvDiCbvilZxLE5 CXmgI1voClvp40eTZxlXzndHjiy0N5C34OpxZq5x3X9Z+V2q0TdP2W1Ak7sTbMAf ynB/BYoZERnUxCvsIgJi1xsFwIRbg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudduledgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpefftefhjeetuedtveegheetledvgefhueffudekudejfeefiefg jeejudfhjedvkeenucffohhmrghinhepughpugdqshgvthhuphdrshhhnecukfhppeejje drudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 A7A4A3066557; Mon, 25 May 2020 02:55:11 -0400 (EDT) From: Thomas Monjalon To: "Sieduszewski, Piotr" Cc: "dev@dpdk.org" , "sarosh.arif@emumba.com" , "m.bilal@emumba.com" Date: Mon, 25 May 2020 08:55:08 +0200 Message-ID: <17478010.U4H6pJmV2A@thomas> In-Reply-To: References: <20200330141857.4681-1-piotr@dobra.waw.pl> <2085526.rGYoCdkRXg@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] dpdk-setup.sh: Prevent infinite loop, when end of input. 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" 25/05/2020 07:29, Sieduszewski, Piotr: > Hi > > I send answer yesterday, but now I put more examples from my scripts at work: Please send a patch v2 with more explanations in sentences. It would be appreciated if you use --in-reply-to. PS: please do not top-post, do not use HTML, and do not mark email as confidential. > as first, very simple deadlock: > > Dpd-setup.sh < /dev/null > > > > > > Deadlock without patch: > > > > for NIC in ${RTE_NIC-0000:3d:00.1} ; do > > $RTE_SDK/usertools/dpdk-setup.sh <<< "51 > > ${NIC} > > > > 62 > > " > > Done > > > > Above works only witch additional empty line: > > > > for NIC in ${RTE_NIC-0000:3d:00.1} ; do > > $RTE_SDK/usertools/dpdk-setup.sh <<< "51 > > ${NIC} > > > > 62 > > > > " > > Done > > > > > > .. or other deadlock: > > > > usertools/dpdk-setup.sh <<< '41 > > > > 62 > > ' > > > > usertools/dpdk-setup.sh <<< '41 > > > > 62 > > > > ' > > > > > > Regards > > > > Piotr > > > > > > -----Original Message----- > From: Thomas Monjalon > Sent: 2020 May 24 19:08 > To: Sieduszewski, Piotr > Cc: dev@dpdk.org; Piotr Sieduszewski ; sarosh.arif@emumba.com; m.bilal@emumba.com > Subject: Re: [dpdk-dev] [PATCH] dpdk-setup.sh: Prevent infinite loop, when end of input. > > > > 30/03/2020 16:18, Piotr Sieduszewski: > > > From: Piotr Sieduszewski > > > > > > > Signed-off-by: Piotr Sieduszewski > > > > > Please add some explanations, it may help getting reviews. > > Thanks > > > > > --------------------------------------------------------------------- > Intel Technology Poland sp. z o.o. > ul. Sowackiego 173 | 80-298 Gdask | Sd Rejonowy Gdask Pnoc | VII Wydzia Gospodarczy Krajowego Rejestru Sdowego - KRS 101882 | NIP 957-07-52-316 | Kapita zakadowy 200.000 PLN. > Ta wiadomo wraz z zacznikami jest przeznaczona dla okrelonego adresata i moe zawiera informacje poufne. W razie przypadkowego otrzymania tej wiadomoci, prosimy o powiadomienie nadawcy oraz trwae jej usunicie; jakiekolwiek przegldanie lub rozpowszechnianie jest zabronione. > This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited. > >