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 10F41A034C; Wed, 9 Nov 2022 20:54:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01F4F42D28; Wed, 9 Nov 2022 20:53:50 +0100 (CET) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id A658442D3B for ; Wed, 9 Nov 2022 20:53:48 +0100 (CET) Received: by mail-pj1-f42.google.com with SMTP id gw22so17701690pjb.3 for ; Wed, 09 Nov 2022 11:53:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fat4VHQS9w/vcwAC17NvSroEuvXWz2GMEehRoOVj/wM=; b=8DJrglIB/DLIp2X8WCIEO1JsRVM8+H2iMYlPT2gc5QcpJ9I2E4rPfiHD8FjLAPK5vv 6kCAf4rqX1BJKOOE4rZFg5RG2VvY7dHvZA6VmSlKParur18LKjPK+23LyqfWDwcOngYW zuf3PKMZTpibMSvL5ZoVCOj37tIiVX4qdSvHNSJoUoM/1GlU9bF3N5IkQvVoRLsbyx1E TlN84Ozie8yurP9TRKnTkh2zrFZM0sL/KPjl4KTKZsF2lHAAb4qeocQLVXYbkj80TVrv 7tlffwdUKBwG5Sfv2dzu9X4z2n9X1Nu4SBQH9KG0w+tEe9bYVZ0qz2z1FdK76YuIstzy 8Luw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Fat4VHQS9w/vcwAC17NvSroEuvXWz2GMEehRoOVj/wM=; b=14DngoZqSpPBH0FPFUTtOg/dc1WAMXITUvOgPZejrd2atWtl0T2Fma0ytejEbFMUxa 6DctI7ScbiZeRKaQr29oMbz/cyiHN/6R25aYxnS/eVi0HuuthYYqQ9ZjZtF283btNxYx zsKFVZTaNlsBIgyHLnoOVWrPZTK7mNm79xxoz104qdBnR6Zu5eCaV5H5w9NMk597Xuma 7zz5nHIfny/I5JMPU2bKH//E9mmWmzGiomr0GDCGq+Is9GkZQumvCmvM23sfMSfM+w8w YCCavw5v8PXla2BQ/9fZvXxZMTYdh6BbBYpBkkza5LN9ih+YfiGWX5lSgl2BaTtTuZSf yUoA== X-Gm-Message-State: ACrzQf2FDxqgXgth0B3g4H6hyUcnGEbLDBSIJAO1ntibMS7rR6MW0iF6 mNrZbc4h4NgjaJW8lTsPwafCmVdbHPRkng== X-Google-Smtp-Source: AMsMyM6xyoWyAng4ZlEG76AReCi0hEQzYfvhSg6G0xBBfdpddUwiQITF4bJxwDMmrKI85BFVyzn6Rw== X-Received: by 2002:a17:902:db0e:b0:186:9b38:ad26 with SMTP id m14-20020a170902db0e00b001869b38ad26mr64031127plx.43.1668023627550; Wed, 09 Nov 2022 11:53:47 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id u14-20020a170902e5ce00b0017f778d4543sm9628875plf.241.2022.11.09.11.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:53:46 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maxime Coquelin , Chenbo Xia Subject: [PATCH v2 08/14] examples/vhost: fix whitespace Date: Wed, 9 Nov 2022 11:53:25 -0800 Message-Id: <20221109195331.143473-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221109195331.143473-1-stephen@networkplumber.org> References: <20221109191445.140320-1-stephen@networkplumber.org> <20221109195331.143473-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add space after keywords. Signed-off-by: Stephen Hemminger --- examples/vhost/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) } } - 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 = 1; - while(vdev->ready != DEVICE_SAFE_REMOVE) { + while (vdev->ready != DEVICE_SAFE_REMOVE) rte_pause(); - } for (i = 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[] = { 27, '[', '2', 'J', '\0' }; const char top_left[] = { 27, '[', '1', ';', '1', 'H','\0' }; - while(1) { + while (1) { sleep(enable_stats); /* Clear screen and move to top left */ -- 2.35.1