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 BFC21A04EF; Mon, 25 May 2020 12:06:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C67E1D8E7; Mon, 25 May 2020 12:06:33 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id C1B941D640 for ; Mon, 25 May 2020 07:29:09 +0200 (CEST) IronPort-SDR: iV5DzxfsrZA0FFMPbhjEB3QPHJKvqBAnYv9AcjaKZamz6mV/JJdKSFvrFEGCT4Et6N83gtCvgS ECMGv32rH8wQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2020 22:29:08 -0700 IronPort-SDR: YyBWwlvMf6PtGJhVfGWdfwpkezwz9+iUW1rzY+I7iK1RSn6x4Pr6ddT2EhesoUuhe5Sb6xyEya Mc0UrcaPe87A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,432,1583222400"; d="scan'208,217";a="301320346" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 24 May 2020 22:29:08 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 24 May 2020 22:29:08 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 24 May 2020 22:29:07 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.176) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 24 May 2020 22:29:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OU9nyaR8dgkSBJ2fPk9J5mHxDZnh95OaqayVPComCI4Y0q/oRke/BbEtldnSjol/mw7eeATYhuo6vvReuJk/futhM2N7eAXTSJnWOjic+KrWK7BjuIAq/pDuzt5g+hhgKE43ac6+UUfDlTMf7+unJGd9ZXgLJjhvgWhuIbhIuGBZ0IKmc5fuIp+WkXrsQZktaoYlveMAmUNoVeTRulAvNezlvH8eGqSbuv7r5WQAsyhy7+5sb/2brOA6yu7CriRxQH/m8R7OuNk3Ib5WZXnvcU0gHTPkITO80tQ6uJPeMqwZXucAjJNl/4JCnisCOluyhkcyZuZwBTVoxMf9+MyLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ojL45RJvwqemSOY5I/RN9PLI1h0h0PkaSSWpsu0qeWM=; b=Akamni7ra5AGvoaXbI7Lygo55CX8Ph9O7ppHa09x2p8O43ykteZZR008yR9cpilHKEWL+EM0+H4GgwIccKxAiUdHpO7noto/VB+N0XyoiSST+jA3nv5c8dEUBsKqqqGcmauYxJEr2S/CexGjPIJR38lGanEL6CCvDhJQC+q/k8n6DB/N6yofB1iuC5TdJk5VgmJHvmZpHc94HQ69Zji74yIIpo7DVZQgbyPFp65Ww3odWBD3hiShpoqt70RSm58XuttYnuP/mnceVQfhFN6QdsJrkFrLDFHcd/OOjvZwfaRqC+XEawavttI/AMgJM0t8zTUi/OzdrZVY5ct/aL9WcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ojL45RJvwqemSOY5I/RN9PLI1h0h0PkaSSWpsu0qeWM=; b=Z4Sg/JVIZPAqY7xJADoG1U6JmdgrsWfJI8cXGXxYn9tqfMqj57G4xkgWLht7nSm2/eQxGuinogLlBGZ4c+6gP5WspCzw+QjeQiYt8zBcXdJtUEJsgor/sH/nKjbDa1a7toFQ8cCB4oOOLAp+0yupC605jtU+B04mk7vXoUniOkg= Received: from DM6PR11MB3306.namprd11.prod.outlook.com (2603:10b6:5:5c::18) by DM6PR11MB3081.namprd11.prod.outlook.com (2603:10b6:5:6a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Mon, 25 May 2020 05:29:05 +0000 Received: from DM6PR11MB3306.namprd11.prod.outlook.com ([fe80::61bf:1caf:2b00:efe0]) by DM6PR11MB3306.namprd11.prod.outlook.com ([fe80::61bf:1caf:2b00:efe0%7]) with mapi id 15.20.3021.029; Mon, 25 May 2020 05:29:05 +0000 From: "Sieduszewski, Piotr" To: Thomas Monjalon CC: "dev@dpdk.org" , "sarosh.arif@emumba.com" , "m.bilal@emumba.com" Thread-Topic: [dpdk-dev] [PATCH] dpdk-setup.sh: Prevent infinite loop, when end of input. Thread-Index: AQHWBp5CzXDRaxjYtUCUlf9ribld3qi3zmwAgADKOzA= Date: Mon, 25 May 2020 05:29:05 +0000 Message-ID: References: <20200330141857.4681-1-piotr@dobra.waw.pl> <2085526.rGYoCdkRXg@thomas> In-Reply-To: <2085526.rGYoCdkRXg@thomas> Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; x-originating-ip: [134.191.221.111] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4135105e-edfa-43ed-7ecc-08d8006c8ade x-ms-traffictypediagnostic: DM6PR11MB3081: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0414DF926F x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aNQDnF+0tYsSDvPqO67fmWwUL8Oqs4QIicO7+7I082nrAknlF3LkJ9IsTbGzEdhefNxetTo83skr0TO338WrcJpY0qkDRlzT1cecFubKnkA0qRgaJI6jSBovvkFFosXPwiZwEZd+Wnz4RDXbNPrMo1LUJPMRlQRrS1E0kuQIozi2EiT+b3WLlHcStn0vKn1GLfI7rRFT/BxKBmf/3CFIeeHZ9QQINsSP299NxmQqWzSDCWzlvm/n3ty/rFMKbmtAGSVqFfXMOuKSP4GeJurhM0VpLflE8rGPLj0VZP2IYxGSYOEZXg/y8tNqsc9L9W9i x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3306.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(346002)(366004)(376002)(39860400002)(136003)(396003)(76116006)(66946007)(66446008)(64756008)(66556008)(66476007)(33656002)(5660300002)(9686003)(4326008)(71200400001)(6916009)(8676002)(55016002)(6506007)(53546011)(52536014)(7696005)(54906003)(478600001)(316002)(86362001)(26005)(9326002)(186003)(2906002)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 5+eTf9UnvZdYDTLQ0R4ldmDKQIxNP5AWI2rTuBDFIxp1TVxOL84LPHf2B2pX7nEckXl8UgqMUHKMOyLryqv6jC6n9SRFx/zJOGIaPq3NewZPzOT6eU01SO6KIRHBDhBRcyp6/Ouamt6G5VulUjeOV6NSky2jGGwKQStvLV3D3IAz6ZuVqk1dPlpb6dyczpXBmz6mtxtsHy2lSB1njUcB43i3wHs7APPAqipBhiD7NStzxD6PjJ0Le+tkQsTmmVN4O4FZzTVlM3Bp8rPEhVSQQK6W1s6694t5H8ZOfVunqCQ7mvSRbFtOo/OlicywOWbf3jFbYbcK6R3PDRgWXc+BTT28F/mjDXgvn6LoSv4rYji+3OMa+TqBNlmdcPcZ+OlHr2ml9cEmTRFBT9jfSzOmGGCF7v6+6Si4uvsB88v0bPUYOnpR+5AZqH0/vSnUaTNTG/vC/Sg/aJdQ3eewYZ4uhJTUK6DBka9ZLp9pnDz9pZs1x73iG7mJlV7cRS69HdNs x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4135105e-edfa-43ed-7ecc-08d8006c8ade X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2020 05:29:05.8002 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VoxTArnq7AHkOD2Nm+GTf6lcBBXegCop+/vLBmJC2+uPl+ToG0MTvTejha8GPHKUkpjYbNPwiEJcT5ha32v+934YwMxktqSrJB2+1ryL3tE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3081 X-OriginatorOrg: intel.com X-Mailman-Approved-At: Mon, 25 May 2020 12:06:31 +0200 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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" Hi I send answer yesterday, but now I put more examples from my scripts at wor= k: 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@emum= ba.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 Gos= podarczy Krajowego Rejestru Sdowego - KRS 101882 | NIP 957-07-52-316 | Kapi= ta zakadowy 200.000 PLN. Ta wiadomo wraz z zacznikami jest przeznaczona dla okrelonego adresata i mo= e zawiera informacje poufne. W razie przypadkowego otrzymania tej wiadomoci= , prosimy o powiadomienie nadawcy oraz trwae jej usunicie; jakiekolwiek prz= egldanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). If you are not the intended recipient= , please contact the sender and delete all copies; any review or distributi= on by others is strictly prohibited. =20