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 3AB18A0093; Thu, 10 Nov 2022 00:25:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 777FB42D39; Thu, 10 Nov 2022 00:25:07 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id C22D242D27 for ; Thu, 10 Nov 2022 00:25:05 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id g62so152878pfb.10 for ; Wed, 09 Nov 2022 15:25:05 -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=n+eViEPl5jNtgaYm6WPYKEMC1UrvqM99EJQSO1o+y89ary3DUBKamMVAQtPO9Y7LXt lRclCn3Lpk40D36N4QB6TeneDaDdl7f8utohNUVCIBrYOnxnLuIqpWiZX+QyA5AOgNX5 ol9KlW/3XlCV37vTJAGCzcrtEglNMIkYCS4Z8DF7OGnwFYcB30GAWKZmABpe7S2yed9G BjmxVJd2I5RiqB1lcOF4nNeOVANvFGhp0uGLk3D/RoKh8ezjwTjoLXrs1sNRFTJA9oU2 ExQO9TVD0Y6L+qLi+urRPEPJQj5Yr/F+ye09DtQRAia5Zmkbmc2J88uQFytO0N6v7yk/ yosw== 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=pO394AZian2yyo2mdMNtCPNQ7gCduPyv5SDlg57FmfQP4cS2VDJzQ5RYY9iN6tZTAo YG2ycaoufDuKEWPGyh+dl6bQ+hgw0sf7qmWE4b4IWC69VsQicyiqygpgla/av1I4E8GR rriqVES7ogFpoVDt057ZEp/YU+S1VuxySHWrNMHWKrFrMnPX2+ih/j/0te1XWHJP+gFU hj3CF3kn9vJWn5nWQWm5tfvMONRE9SOOUkHB7Uq8zbRTecrsQtsQKPVX1yqn5DK1RpGI 1en8s84ZaP1Ahn09TeNmt36lzZdZWIfW+w90sXQl9h5mgrfUd3Xg1ad9eRSrG/FWnErh mZ0Q== X-Gm-Message-State: ACrzQf2FjXjKUXiCyJEEyFlzQi9vXG5BIqwKWFb1Vw0F54SFXCb06u+E KKor1leHAxjaB/0daXE7dNaAtTarW6XLig== X-Google-Smtp-Source: AMsMyM6b7kuLE2TsaYj8pN9hQkiQKz66/PZZ/VHqQYkKCqyIEY0QRh5YGPKNtf4a7V7amjI7Rs7AlA== X-Received: by 2002:a63:305:0:b0:470:15cd:d428 with SMTP id 5-20020a630305000000b0047015cdd428mr1130549pgd.213.1668036304702; Wed, 09 Nov 2022 15:25:04 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id y28-20020aa79e1c000000b0056e15b7138esm8798645pfq.157.2022.11.09.15.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 15:25:04 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maxime Coquelin , Chenbo Xia Subject: [PATCH v3 08/14] examples/vhost: fix whitespace Date: Wed, 9 Nov 2022 15:24:45 -0800 Message-Id: <20221109232451.265059-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221109232451.265059-1-stephen@networkplumber.org> References: <20221109191445.140320-1-stephen@networkplumber.org> <20221109232451.265059-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