From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5086841E8E; Tue, 14 Mar 2023 08:06:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43B5D40F16; Tue, 14 Mar 2023 08:06:23 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 1BAAD41144 for ; Tue, 14 Mar 2023 08:06:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678777581; x=1710313581; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=fVh0ALLKEzelIxi+VGpnLLBw7ew38Y3rUB8n1/eE/7s=; b=OS0D5MxLc6pbhweVX3TZ44KiccrA2+x7t2ywyOjJkXn9RE8JJn9G2jTM XyZ7kKC2Ii/RGZXW3CX347SzGfCadNnLwITBU4iPeeCKCi0xeodIDw2vX YeDc3boBOSnkU6MfzxjQGDR8tx7Ie6aK/hU2r1sTvnoslnXcgBgAYTSfF tr+PPTlRoVytfVYuoi76p7LqqRY2Gip8MxaPr6zzQh6qupuT3Kkc0J4QC x6TwLxuYz+H9kh5VMu9NOOGPCYNtV0AgLRJWgml6pl2QpfgH/cg4N7YJs B8mH2U879Y8PdaPRIXyAYrreMMYVUuewxwAJrK2pc+fQT46v5Ws3Ta7ub w==; X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="334829470" X-IronPort-AV: E=Sophos;i="5.98,259,1673942400"; d="scan'208";a="334829470" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 00:06:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="681310381" X-IronPort-AV: E=Sophos;i="5.98,259,1673942400"; d="scan'208";a="681310381" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga007.fm.intel.com with ESMTP; 14 Mar 2023 00:06:20 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 14 Mar 2023 00:06:19 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 14 Mar 2023 00:06:19 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 14 Mar 2023 00:06:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RpfcuSQ/P9/hhwuIcH7KPzFVwP5kTDHeBeZ7Nl8z1SRNGAPl5DWATApzfB1CpMx+K0/yoj/CzmOXYNY5szRYI1FVbPEg0VIMSKcvxyZrXNEkKo3HZa9SdUYhb/Bocl4VrRrqrne1HqPl89KMKgCr35/3yl8KwgS0uZlwHO6cPkyItJ3oPDjBgNy8dcCm3t+Bim3rrm3SVgY43By5c3ZD1a798yjw8db1URCfgZGSEgYAt/hHYBY2tB1p+eODNcYLaaVtCpJTDaTcwzsZYilsB7lEtck83+4/Z8mrCiWv/B0xvry2vXa0Mt1mYzQrz6rxWroQjpUNtB6B6+s2DiVRfQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fVh0ALLKEzelIxi+VGpnLLBw7ew38Y3rUB8n1/eE/7s=; b=hdnU7w4gVwmuQON2xBFpphx++HA0uKVIIaIgQvXBVai4dMvQ+cl3XKlj8/UJJS96wtnAlxSfn6kJ/j5SdsBJ6A3bIAp3AhuYQjgGnF1RHULO0WopSijzN31bEvCy33FV+f6viM6aGKs33kwbkSz4Hnt3uiLNI8jh4QaT7aZtl9r5Lsx9wgMd+iamematckEYfga4RMwj2gHqM4m6pRYrcrO2LswWGIamWbnO5YEh0327Wx6D6gkuv2RbjBL6rB8ZNlC+99CjcqhsYDrJQ0Jv4iObV6mkxXcZw6xpUMkn5qE9qojgxvwpnNBCm0QOfpOzYhXNU8j22GxTEtksZ9NG+A== 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 Received: from PH7PR11MB6006.namprd11.prod.outlook.com (2603:10b6:510:1e1::13) by BL1PR11MB5956.namprd11.prod.outlook.com (2603:10b6:208:387::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Tue, 14 Mar 2023 07:06:17 +0000 Received: from PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::141a:93ca:1ab:1faa]) by PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::141a:93ca:1ab:1faa%5]) with mapi id 15.20.6178.025; Tue, 14 Mar 2023 07:06:17 +0000 From: "Ling, WeiX" To: Stephen Hemminger , "dev@dpdk.org" Subject: RE: [RFT v2] test-pmd: go back to using cmdline_interact Thread-Topic: [RFT v2] test-pmd: go back to using cmdline_interact Thread-Index: AQHZVfQ+OqkEC7P0PU2PLS+hg7K30a752ulg Date: Tue, 14 Mar 2023 07:06:17 +0000 Message-ID: References: <20230313171905.67720-1-stephen@networkplumber.org> <20230313213831.80071-1-stephen@networkplumber.org> In-Reply-To: <20230313213831.80071-1-stephen@networkplumber.org> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB6006:EE_|BL1PR11MB5956:EE_ x-ms-office365-filtering-correlation-id: afad1ff0-fda1-4995-d6a8-08db245a9b75 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: v+uyC6tisLLaAnp3PRJPvHxSifJp2sSy+HjH2C7k7gYGEK+6rfh8NJeLKZJlm7Y0Zn4IRADYsxgDDfIr+qwlgL2yjtj4+RavAh603UUov4tv5iUC7T5Vpxf+NWoCMqi1ggrzIbHH2YrxtaurTYYW4vz/1Gqdm+kV0XMl67ro6GnoId2KDHbJ7+JDQw+e0UmA6OBp3E+fnH7uq637G2CiOkE1goYbaGU+KhmONXM4w/CrvFYc8xb3+wkYEA8bYuVoMBY7cbTh9XHj+KluhyULYcAjLVQha+KGbMvDv/2lhDhAjxQQ96bvr9EJjl79E4k2UCIVR0+gDsB5z3yE0KRWZ8hFk11VezjbgIETffE4zMbGojThaVflF/9VU1wBDqBXxRkVdNiQheRVuHv8iX2b0WPHaDkQrAZU7zbwSEfg4Jzp6pVaWh7J9YWCf/5bxSjEPRU98FFPcbl7z7fPBo4hMTeJkoSi7Lpa9ylj0il+zTzsUVAxhlmQ9fQRupjGAmuxKBVvfSUXKO/XTRse5LCZcqvxXgvu5wLvxsZ/eH55sqvgNAt48a5sdAYceg8Id2tfJSPx/Aixl34TXYScXoElEg+Ly24K872mIkqyBW60/apt2lWuv5Tge9EMsKZ2A+MkSvzQouZSNhtLv81JoWF0INJ1RbSxjsKF0sDScrJXsAQfYMKw2aeqbmq6v+134J/uc+RKv85GYRT6RRhgnSY9lw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6006.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(396003)(39860400002)(346002)(376002)(136003)(366004)(451199018)(38070700005)(86362001)(33656002)(122000001)(82960400001)(38100700002)(55016003)(8676002)(110136005)(66946007)(76116006)(66446008)(66476007)(66556008)(64756008)(8936002)(41300700001)(478600001)(316002)(2906002)(4744005)(5660300002)(83380400001)(7696005)(71200400001)(6506007)(26005)(53546011)(186003)(9686003)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?o5dSeaxvpWfhw+cuUlMbEGMVjWbEZsQY8233/tbyLlWE0yjUiv0QoFVjCn+H?= =?us-ascii?Q?BIo95mOwnf0kMRxSeioe0oi5Y47XcypQ8/CPyz4hRlOQWFefxwhkQJFzG2nf?= =?us-ascii?Q?xD/HJuy7ZLrpz4qUXoYzpwzOZU4zFgBXJeDRbtJGsTfqBtgNfabu9EQwy7ao?= =?us-ascii?Q?yhWPwh6lVIL+obhyvapYL29b89HMChXkjvY8GKPk/cnduhhOglUJulfGIuff?= =?us-ascii?Q?QJfPK/uag+VKWzXa+sn6EPR0bnzcy4gJ5ziAiZosoovXMgAkYy5SualnRSOj?= =?us-ascii?Q?MXhHC/YCVGXZhsQTOxp6ECp3C4MDgE4ulP1r6pywUvvnJ3zwR1up3Peu6FCX?= =?us-ascii?Q?yAgCFeKdWqZBJM7CqMt6pgFNuKEA5udn7IAEbmieYFHdBQI13v46ReXbeOsF?= =?us-ascii?Q?YorCQO66tN4aM7Fg4q+QMrp2GTJZ6YdVpcj5b2nfhEAEzpIaz+AgmnpA6G3j?= =?us-ascii?Q?kg7OP9aCwt+I6R6tEdoUfS7M4ZFmjfaG/u6BF0PK3iMw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vWIH4CRUlF/Snb7KTdy2jO8dufGneBubC+HFmIOjk9pMsF8ao/7?= =?us-ascii?Q?7KKfKmIwvf9/kSYpLGHlM6LH/3dNav/70YNYI+JdNeqQmtFQIWKFzzVFGArr?= =?us-ascii?Q?GdnQHV6bQCxOyJ4SEh2OaVhJlAXu4YPTP/GuDiubdDxCvcUx2YjkPetPdWjV?= =?us-ascii?Q?A8BVBzj4WA9uS+BxugyhmC5lgnU6JHdO1kabyxZe?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB6006.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: afad1ff0-fda1-4995-d6a8-08db245a9b75 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2023 07:06:17.6592 (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: Nexb6ul7Bx42rv92N8Ao69qQci5RG0YO6ZiqtPUrI6SekS1WacbyU0+3hBWNsjys7+auX97HSVw+xKUxsF/vWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5956 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Stephen Hemminger > Sent: Tuesday, March 14, 2023 5:39 AM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [RFT v2] test-pmd: go back to using cmdline_interact >=20 > The cmdline library poll function is broken on Windows and was never test= ed, > don't use it. >=20 > Instead, use sigaction() to cancel read character on Unix OS's and a new > helper to cancel I/O on Windows. >=20 > Signed-off-by: Stephen Hemminger > --- Tested-by: Wei Ling