From patchwork Wed Nov 9 19:53:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 119661 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 90DAFA034C; Wed, 9 Nov 2022 20:54:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D48A42D44; Wed, 9 Nov 2022 20:53:53 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 087F340151 for ; Wed, 9 Nov 2022 20:53:52 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id q1-20020a17090a750100b002139ec1e999so2938266pjk.1 for ; Wed, 09 Nov 2022 11:53:51 -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=/QhJhFhZiPiDsPwY2VTvBHBSaly3Zeo3SiVUnEcBcCg=; b=eBfKffJghX5fLdlzmGC+n6+oANJtKRJ9MCCjb5tBWXAqYxbYWA7oBOH6fNUv4LqcsD bTSIcK0SkMshXVXNmCIPiTEddflwxFnDRKtu8n51gZlOYm9cRepHIwb8ir2decRgFHpG DbRgIv23aTFOM6M2DP+dlTQPMOICGk67PBQZNete/Bx7eKXsnRh8UhvKyj4aSSXtsp0S y0bFiNDNm5iR/Dc/gcy+lkbW0ciYvuX5IpxEErfTNDRUkndKeJtZ6D41oy2pnQhfFjFW 11zREJ/8qZBSkc/bpNkKuZFykvQC866Whk6rWkziDTGbfKqhLgXxZhIDC7Cvrdlj1Txz Ksqg== 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=/QhJhFhZiPiDsPwY2VTvBHBSaly3Zeo3SiVUnEcBcCg=; b=ni3nWroG7uYjjkmiQB5mqajIPeP/Yiev0X+Mj4n38aZ83oPx7hQloMRS0CGMX37v1q LyoBk/0RpO2O6XNMxVJ/+rhiZqWNKl7G3tIEcDEaARXSkxJNGJU6K2FZA0+ULrDGPj45 0jpiSZB0PlIFNLFjuYTEG/8QxXrCi290PxzrAe7QsIEMlhPJNgoQ6ePst18mVh0x8oZG Ydd2i845IC5Gdz9Ayj7sS6BEbjpxEXZX9gTf7H/260DaqKiMD4hHO76Htx8W7dI2WI4D XuXsgHZkEoO8yCy46PMwTT5WTGd041ipC21JXOcBETtn77GBCP5PsS1EDFiljPbJQY1J 1Jqg== X-Gm-Message-State: ACrzQf0Kt6qQYGORsSkyZzMr67HcrIfo6qWstLG+NpC/ACAnP1zpWwyf KoPNCuIw7aiLjzJy79PBHzaCH3Xkn2gZSg== X-Google-Smtp-Source: AMsMyM5MmJvf2iYMuIweA1LWO4M6ElPR1e5wunk38XI2xorMbND/hKIQdikYTCk3qfD9RSmppLZBbw== X-Received: by 2002:a17:903:4d4:b0:17f:7ecc:88e3 with SMTP id jm20-20020a17090304d400b0017f7ecc88e3mr59197593plb.169.1668023630898; Wed, 09 Nov 2022 11:53:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:53:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Olivier Matz , Konstantin Ananyev , Anatoly Burakov Subject: [PATCH v2 10/14] examples: fix whitespace Date: Wed, 9 Nov 2022 11:53:27 -0800 Message-Id: <20221109195331.143473-11-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 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/cmdline/parse_obj_list.c | 2 +- examples/ip_reassembly/main.c | 2 +- examples/multi_process/symmetric_mp/main.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cmdline/parse_obj_list.c b/examples/cmdline/parse_obj_list.c index 959bcd14527e..759072d39620 100644 --- a/examples/cmdline/parse_obj_list.c +++ b/examples/cmdline/parse_obj_list.c @@ -42,7 +42,7 @@ parse_obj_list(cmdline_parse_token_hdr_t *tk, const char *buf, void *res, if (res && ressize < sizeof(struct object *)) return -1; - while(!cmdline_isendoftoken(buf[token_len])) + while (!cmdline_isendoftoken(buf[token_len])) token_len++; SLIST_FOREACH(o, tkd->list, next) { diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c index bd0b1d31decf..7e84b4944759 100644 --- a/examples/ip_reassembly/main.c +++ b/examples/ip_reassembly/main.c @@ -300,7 +300,7 @@ send_single_packet(struct rte_mbuf *m, uint16_t port) TX_LCORE_STAT_UPDATE(&qconf->tx_stat, queue, 1); txmb->m_table[txmb->head] = m; - if(++txmb->head == len) + if (++txmb->head == len) txmb->head = 0; return 0; diff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c index 1ff85875dfdf..2f4441049253 100644 --- a/examples/multi_process/symmetric_mp/main.c +++ b/examples/multi_process/symmetric_mp/main.c @@ -156,7 +156,7 @@ smp_parse_args(int argc, char **argv) /* get the port numbers from the port mask */ RTE_ETH_FOREACH_DEV(i) - if(port_mask & (1 << i)) + if (port_mask & (1 << i)) ports[num_ports++] = (uint8_t)i; ret = optind-1; @@ -470,8 +470,8 @@ main(int argc, char **argv) /* Primary instance initialized. 8< */ if (num_ports & 1) rte_exit(EXIT_FAILURE, "Application must use an even number of ports\n"); - for(i = 0; i < num_ports; i++){ - if(proc_type == RTE_PROC_PRIMARY) + for (i = 0; i < num_ports; i++) { + if (proc_type == RTE_PROC_PRIMARY) if (smp_port_init(ports[i], mp, (uint16_t)num_procs) < 0) rte_exit(EXIT_FAILURE, "Error initialising ports\n"); }