From patchwork Wed Nov 9 19:14:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 119644 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9412A034C; Wed, 9 Nov 2022 20:15:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2578542D3B; Wed, 9 Nov 2022 20:15:09 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id BFFDD42D28 for ; Wed, 9 Nov 2022 20:15:07 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id c2so17968376plz.11 for ; Wed, 09 Nov 2022 11:15:07 -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=e6XyBO8PZnvq4w8/QLE7qPDDvughbU7CtcnvRjyy2UU=; b=AbrzZNUwn+sLPfdSQ+FMJrXHbYRpv0gYxfoPzIHdTliRVOqA9e/2FJu3XPXxQ2lj4y KdIIDfcuRcy1weAZvcXbApN8IzpcGLSIyzW3dg+p0dTm+/g6B4zzwKzH4UrMSyCUnOeO OmFj6CAGff7vnJTbkrLYqUY2QzZ+qrShzkZd4xfsPzSR5v2DhOIS2sL6rJ1bzCnJJ2Wl WEh2p76sH+9lsyIAyzOBi820YKyUGORrIvHEDEXIfffPKnmTNJSB+7EtcIfGbr3C7pJ8 UsVqjZE5G867Njwgn1R6kaUaE+1BaLkRgqIoJIWteyA7urNQwhp41oBszLBEWfobM2a4 4BFw== 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=e6XyBO8PZnvq4w8/QLE7qPDDvughbU7CtcnvRjyy2UU=; b=orEn22TP8q4nmFs5bbYrgRVKQsI7NcHJg5EQjIvuwyKAa0Sa0lgoMTrDSRc9nHvFnH UyYO20jZsBGmZA3Rw5sDkXD8IJ/R/5lmY8HR1rCxrZNJqcLmFzmmtgOE51+jSkRTm86V fe3VgEL42t0J9O07p47OMq/e97+FvcMXJu9TUW0fyijva8e2NxMHS9KqpIVxUneAOEIY kJAUoRLH9qTUJb7VV89q8MuenWuhtXbpIs1Afn5R6Px7bzv713D0wyFjYlfKR56xVPG5 K/u88xVKBqT0IjzJE3Uxy7fJnkEUnJZkl2Cq8fotAiGngZHDbcl/6kD6ho/sLs17Q14m tW4A== X-Gm-Message-State: ACrzQf0jVIBgKhV03S7h4/fswsr6jTjEyoobBCswG6NY0KXiJvqJWdOd 6gv7v8P/SUYVkxni4hTf9jtJ6LVBku4J/g== X-Google-Smtp-Source: AMsMyM741dN5JA/S0pL5oW2DGGlt2thtT9lYmadJVbvhE0PpsJHj4M8tPmZXKIwZHhNSYAKgOXG1og== X-Received: by 2002:a17:902:d707:b0:187:2364:1dc1 with SMTP id w7-20020a170902d70700b0018723641dc1mr51794649ply.77.1668021306685; Wed, 09 Nov 2022 11:15:06 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id gn16-20020a17090ac79000b002130c269b6fsm1586698pjb.1.2022.11.09.11.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:15:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maxime Coquelin , Chenbo Xia Subject: [PATCH 08/14] examples/vhost: fix whitespace Date: Wed, 9 Nov 2022 11:14:39 -0800 Message-Id: <20221109191445.140320-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221109191445.140320-1-stephen@networkplumber.org> References: <20221109191445.140320-1-stephen@networkplumber.org> MIME-Version: 1.0 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 42e53a0f9a4f..cabc8682346c 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,7 +1583,7 @@ 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(); } @@ -1816,7 +1816,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 */