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 B4339A04FD; Thu, 10 Nov 2022 02:48:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A0BB1400EF; Thu, 10 Nov 2022 02:48:18 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 21F7F400D4 for ; Thu, 10 Nov 2022 02:48:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668044897; x=1699580897; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=7DLAwXBHJAvOkFAnc6WUQcNlU9+yE2ZeKhAyuh+HoqU=; b=fhGLP6U9H1mm95m6mi2AbKvOdhIjKS3P25RCsp+YrmaPC0dnKECIPqqK sRfnqSSPqnXTEgwSrSdD2GQ9smTIQv74l8NxrlUFC5GV+zwjCJwGeVisJ uouRXpnrDtnk8CsERnSKZb1/LHslQtMIcL7IMr0cszot8ZSJf3DPeVBoj ZVDu2rmEywa9fcVyqbpzaFaD1lIBOLAFWV41FC6L2Qle9SAXIMXwNBO6t 4AQTsMv7Mh+VrxZ78xCQLH1yi23blJwLoCrizvdz6HMD6Wq2tHvhLfizS vE1bOQ9qGEAhoZVbkPKv45eRdh90WSyQJc4CQB9KUzUzo1sqMeb0u1Cyz Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10526"; a="311178198" X-IronPort-AV: E=Sophos;i="5.96,152,1665471600"; d="scan'208";a="311178198" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2022 17:48:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10526"; a="762098288" X-IronPort-AV: E=Sophos;i="5.96,152,1665471600"; d="scan'208";a="762098288" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga004.jf.intel.com with ESMTP; 09 Nov 2022 17:48:07 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 9 Nov 2022 17:48:06 -0800 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.2375.31 via Frontend Transport; Wed, 9 Nov 2022 17:48:06 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) 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.2375.31; Wed, 9 Nov 2022 17:48:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqQPdAEQKrRsZ9HsUJOpNNjP44o8Mzq05tRCEAl0f57XHXgokSdVDxKQqL9N5/lIndh+cMt07h787H1nwvqV53klwiVV0v8m6UstDM1cP83Tsgyzkpn9LqAjLmkuT1rmtyDly5KoWn/9Eh7SkGtBL3VBgVQzW5/zLXYQt11QEkOjBtMRulgIVTQl6sR4GN221AF0fES0jLj3vxJclAaXT7iwiGGq4i3Oxe37No4Ha28hfBbXiFdjbjvYRA3G3xQZg3h7IxEJX7pwGhkKswZ5Um3FSZI9DzccF2Clx113/FN2j3hvNe6qCO2Xbrv4gQJS31Bhv59c3lX/nrNO862P3A== 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=48I7yAlZqTq26+YFleA2xGhqLvBVfCwedElDKJ4G3h4=; b=DSG1XfKocbfA2UbxFSWg/HAwA1UQvCWVX1QeS38gv10H1m4wLJ4v0NQpnvYirNqcKK/teCJEXG68ItulgLXUF8TB7DQCdibEPW2XIwXbZ719k2VXzkc27AujMjBg3H9BHQYSudOq+dqncT6JC0tWmznB+NZcD5TK2laWyV7bWVfjywiJntpBSAJmYro5HK0rIz4pYlLwFHciBtfhTcrB5MKxSvsB5N9BUCIN8LspmE8hW3ZITsUabeunw7mQt0F4smj2cL4uUELUtH5XiOXEp5b/hCfcyJlWxw81zBzI+wKwcwYyoGc0wjosAddAt58PIdVPyAOEwPX7tkfz3s+5vg== 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 SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by SJ1PR11MB6108.namprd11.prod.outlook.com (2603:10b6:a03:489::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27; Thu, 10 Nov 2022 01:48:05 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::3c6a:7a7c:129d:aecb]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::3c6a:7a7c:129d:aecb%4]) with mapi id 15.20.5791.026; Thu, 10 Nov 2022 01:48:05 +0000 From: "Xia, Chenbo" To: Stephen Hemminger , "dev@dpdk.org" CC: Maxime Coquelin Subject: RE: [PATCH v3 08/14] examples/vhost: fix whitespace Thread-Topic: [PATCH v3 08/14] examples/vhost: fix whitespace Thread-Index: AQHY9JKKsZp3CCLPYUO1nxPrB9lLLK43Y6Zg Date: Thu, 10 Nov 2022 01:48:05 +0000 Message-ID: References: <20221109191445.140320-1-stephen@networkplumber.org> <20221109232451.265059-1-stephen@networkplumber.org> <20221109232451.265059-9-stephen@networkplumber.org> In-Reply-To: <20221109232451.265059-9-stephen@networkplumber.org> Accept-Language: en-US, zh-CN 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: SN6PR11MB3504:EE_|SJ1PR11MB6108:EE_ x-ms-office365-filtering-correlation-id: 70610f68-0b47-4410-940d-08dac2bd9c2d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JJ/22K2PXjCS6hPpPJ4CKR0HG357nxpiGwhSW5RUz13tKyVfVbM1ecnkEycXRqfBZ2wR56frkyyF4MfhoRtJpcGofqDxi5PiEjBOnxfXoTnyz0EgGNtidC2dOkDaxXLJ1Cma0vH3AtI33qUDE4VLUbKBKFTDccuw8jycKtryfM0G5oozIHvnJoiBWf+fLw6VWyqtlyoRWZ4pi1dpsqxekXQtF8m7Tmt4UlMr9sS9NNU9Goc46GVMbp3geDZoRswrqMMfJOsod6NsnYeTLXBvYa8BqOEfBrHVFz7bnMDcSMCJk18XTTjfqblTEa3TMwcuHjMCDZOu2GdqI+YpE1V40Fa62dhHh3ItxVUHcG/waUc3K/cVHaDeTBd9arF3memyx/BGNJbKec6w1BfOsIECm69cyu9aAGDcpaNZxJ+0srA+1K8FyoaKUUNae9aF0gWMPfQin6J+bsQ6X+i0b1wURHrMRHX/88P587Mi5uIqAm5eRIqKts/VwbnBvLgZ46sGBXfLGOCpmQhgkrinr1iCTwiDxStd6S14XYuOgO/mNYW5iKk53xA692h54j9sq2+CO7+PfxdJWHBoimz4VXiHy185ud2WRJ6sMqPHH3ggZIHPi0GSPcdi5drDH+hst3irfL56kArO2Egxurr5kVrnZoOF0i2sCL+FtTBDM6AtJbV3FwNUhO0+eUoJAnCdD6hCZrTq7uo/wlANtqu3aZJIKG5ENVAEqXAd6VauQWpbSLqtRTaClIyn1RI1+E7B/1ZVWBoQl8I/9qMEGQ60ko6m2w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(39860400002)(366004)(346002)(376002)(396003)(451199015)(83380400001)(2906002)(55016003)(64756008)(66946007)(33656002)(66446008)(8676002)(76116006)(4326008)(66556008)(41300700001)(66476007)(52536014)(86362001)(38070700005)(82960400001)(122000001)(38100700002)(316002)(110136005)(9686003)(26005)(5660300002)(8936002)(186003)(7696005)(6506007)(53546011)(71200400001)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LrraCiww9X8UEalGxE9NH5BmKBzHWQm/zvi8geW7muPZBXGkI9u5Al7zXuHX?= =?us-ascii?Q?usLajX8UihP2VOjxEDhpjvNtOPCqW7AKkpeMoUhJWOX6rnTuO/xoi5E24Ki+?= =?us-ascii?Q?e4QpFtPBCFiaHYefOTSi6NPD7ZAkhq5phGh+QITmstbFaeKCEi5GOWpAAxS7?= =?us-ascii?Q?7fRYhxhyMAl0uVdpKw1STrXauwwwMswEEwQcHYo3wGZxZ+v8xMN5s2XQ7T0P?= =?us-ascii?Q?fHbSRRrpGVDzHltCNpQ2TWyMLP/5wPA0848APSy8CimIvqO03iupe+jqE7yB?= =?us-ascii?Q?v6upmGLqEDFD/L5+HV9ZvDdyX4wNH9CJFwaG2rfge0qNns3HWgfi6fXpfQjo?= =?us-ascii?Q?GS8ZZODr+VB40il04MwxwBOcgdtUrD3tZe/KAhmVSuEzCz4HgLkY09sGbqUL?= =?us-ascii?Q?4PMZgP43abbxdu96tPXsvoLMsVCWj0I74nGHXrJ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pms+23x5uhxOHpVrQ2xzhnd3JgQAGQdvpmUU89yIuOzNnW?= =?us-ascii?Q?PjtzqAf9gEDrjjgabgTHJr/w15DFauXB1/J/U9TvQplTM9c4hgND3ElS6zm6?= =?us-ascii?Q?jIdq/ZD8pyxy2hpJ8AawmXH1AqHrlyhMCpfDfj1jeozacAhH3MebrAiYJ0nj?= =?us-ascii?Q?IrRZYdG6vuTyfZY2HogBf+9aJeT5UUU+msOsgY+Xa2nawGhnVlLeINzE9GYR?= =?us-ascii?Q?N7WznBFFq9cbezogqgGY2xBW88FcWj/Lm1xu/Yq3?= 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: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70610f68-0b47-4410-940d-08dac2bd9c2d X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2022 01:48:05.0561 (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: tBgBKSVDrXhiSZs7vS8zBW1pj0Y+6qnyaF3757Fovtwj2xEK/2ayTpRof8vV4MT+QuLDoS2I2WsUE8/pZig/tQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR11MB6108 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: Thursday, November 10, 2022 7:25 AM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Maxime Coquelin > ; Xia, Chenbo > Subject: [PATCH v3 08/14] examples/vhost: fix whitespace >=20 > Add space after keywords. >=20 > Signed-off-by: Stephen Hemminger > --- > examples/vhost/main.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >=20 > diff --git a/examples/vhost/main.c b/examples/vhost/main.c > index 42e53a0f9a4f..9fee966916e9 100644 > --- a/examples/vhost/main.c > +++ b/examples/vhost/main.c > @@ -1491,7 +1491,7 @@ switch_worker(void *arg __rte_unused) > } > } >=20 > - while(1) { > + while (1) { > drain_mbuf_table(tx_q); > drain_vhost_table(); > /* > @@ -1583,9 +1583,8 @@ destroy_device(int vid) > return; > /*set the remove flag. */ > vdev->remove =3D 1; > - while(vdev->ready !=3D DEVICE_SAFE_REMOVE) { > + while (vdev->ready !=3D DEVICE_SAFE_REMOVE) > rte_pause(); > - } >=20 > for (i =3D 0; i < RTE_MAX_LCORE; i++) > rte_free(vhost_txbuff[i * RTE_MAX_VHOST_DEVICE + vid]); > @@ -1816,7 +1815,7 @@ print_stats(__rte_unused void *arg) > const char clr[] =3D { 27, '[', '2', 'J', '\0' }; > const char top_left[] =3D { 27, '[', '1', ';', '1', 'H','\0' }; >=20 > - while(1) { > + while (1) { > sleep(enable_stats); >=20 > /* Clear screen and move to top left */ > -- > 2.35.1 Reviewed-by: Chenbo Xia