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 33ECDA034C; Wed, 9 Nov 2022 20:15:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2829542D30; Wed, 9 Nov 2022 20:15:07 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id D83C442D26 for ; Wed, 9 Nov 2022 20:15:05 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id j12so17987221plj.5 for ; Wed, 09 Nov 2022 11:15: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=HsB70apY/1oE5usD8NnWNkKMyEbL/zNnBg6TNaVHUxw=; b=Kc+yiwWxVy0JmSaajG8bIi8EluhHssQxdaXKRmRSKRMrbZ+HC50rX6T2SH+YNtdV+3 EAHCKeMQd/YSuMvKMoHpxiCafDQoXVAmgNKNg3QR9w+/yNpgpml60BidohUEd17sjtW6 yz+v0XyXnYYuGD2Pc8m/G94Tbt7GZtiPEzFup2WakdRdQIu+G9XybM673g0ifNRiZHGD pDE3nJoFJsBhmyHI9nJlqq66i1gia4hKGJSzMAwfCtqTRbh+BKYh7ejDREppMehl0yX+ dmWOVTXFnFVr5b8JcS/gZPipDnAcCDqfcVnvBuFgZACpAs/u/0D+yowPAttlck5X1glr I6pQ== 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=HsB70apY/1oE5usD8NnWNkKMyEbL/zNnBg6TNaVHUxw=; b=myFZoy2hzaTZiCVlnQItoV98ZKKCRAfPNdrVewIoOdhDptZbNhZz2/+ySsaktgDqSV yClCl6rfxHKoUHFM55NDyi/BpDwBN+IeUFWzFQlZmnQNLRBdmf7ocdwyvpgPf2Wlrxj1 dP5UMzaOrtBvO5UoxqSNrRK/Ad7yAHTZT0ocA2JAwOPWfuMnp1Aqik1nrzXztG904o/P 3pDBTB3l6w1I+orefrhcqIw9swOV+AZtLzccgEPVK/MZbmqy6D1882BYQ4I1KNo4FHG/ qu3/OLd3SGnaHI3EApwloBE2/Naf5mSdWRKqjEUcP04Vjhg+Au2tB5BeXZurFxA2l97b kwGQ== X-Gm-Message-State: ACrzQf0JDkID/T1qKbeAVpFN8H1P0To3pWMMr8OjB4DHBtyOzGtKIIng YRjXJC8BjpYs96JppGXxSu3Gkh5rtI0kiw== X-Google-Smtp-Source: AMsMyM7Z5gAymEadWGqeR8hdSgzgKhaK0iUSjyYcvxu7znrlgodY0yLV4fLNrK1/qLDUJyoq2u9jYg== X-Received: by 2002:a17:90b:4f8f:b0:20d:be54:f34f with SMTP id qe15-20020a17090b4f8f00b0020dbe54f34fmr81725291pjb.245.1668021304647; Wed, 09 Nov 2022 11:15:04 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:15:03 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 07/14] examples/qos_sched: fix whitespace Date: Wed, 9 Nov 2022 11:14:38 -0800 Message-Id: <20221109191445.140320-8-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 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/qos_sched/app_thread.c | 6 +++--- examples/qos_sched/args.c | 2 +- examples/qos_sched/init.c | 2 +- examples/qos_sched/main.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/qos_sched/app_thread.c b/examples/qos_sched/app_thread.c index dbc878b55394..a49356fecf5f 100644 --- a/examples/qos_sched/app_thread.c +++ b/examples/qos_sched/app_thread.c @@ -79,7 +79,7 @@ app_rx_thread(struct thread_conf **confs) if (likely(nb_rx != 0)) { APP_STATS_ADD(conf->stat.nb_rx, nb_rx); - for(i = 0; i < nb_rx; i++) { + for (i = 0; i < nb_rx; i++) { get_pkt_sched(rx_mbufs[i], &subport, &pipe, &traffic_class, &queue, &color); rte_sched_port_pkt_write(conf->sched_port, @@ -91,7 +91,7 @@ app_rx_thread(struct thread_conf **confs) if (unlikely(rte_ring_sp_enqueue_bulk(conf->rx_ring, (void **)rx_mbufs, nb_rx, NULL) == 0)) { - for(i = 0; i < nb_rx; i++) { + for (i = 0; i < nb_rx; i++) { rte_pktmbuf_free(rx_mbufs[i]); APP_STATS_ADD(conf->stat.nb_drop, 1); @@ -137,7 +137,7 @@ app_send_packets(struct thread_conf *qconf, struct rte_mbuf **mbufs, uint32_t nb uint32_t i, len; len = qconf->n_mbufs; - for(i = 0; i < nb_pkt; i++) { + for (i = 0; i < nb_pkt; i++) { qconf->m_table[len] = mbufs[i]; len++; /* enough pkts to be sent */ diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c index b2959499ae9a..b752eb221f7c 100644 --- a/examples/qos_sched/args.c +++ b/examples/qos_sched/args.c @@ -451,7 +451,7 @@ app_parse_args(int argc, char **argv) /* sanity check for cores assignment */ nb_lcores = app_cpu_core_count(); - for(i = 0; i < nb_pfc; i++) { + for (i = 0; i < nb_pfc; i++) { if (qos_conf[i].rx_core >= nb_lcores) { RTE_LOG(ERR, APP, "pfc %u: invalid RX lcore index %u\n", i + 1, qos_conf[i].rx_core); diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 0709aec10c31..41b46b296298 100644 --- a/examples/qos_sched/init.c +++ b/examples/qos_sched/init.c @@ -323,7 +323,7 @@ int app_init(void) rte_exit(EXIT_FAILURE, "Invalid configuration profile\n"); /* Initialize each active flow */ - for(i = 0; i < nb_pfc; i++) { + for (i = 0; i < nb_pfc; i++) { uint32_t socket = rte_lcore_to_socket_id(qos_conf[i].rx_core); struct rte_ring *ring; diff --git a/examples/qos_sched/main.c b/examples/qos_sched/main.c index dc6a17a6464a..7b757df0eb02 100644 --- a/examples/qos_sched/main.c +++ b/examples/qos_sched/main.c @@ -152,7 +152,7 @@ app_stat(void) static struct rte_eth_stats tx_stats[MAX_DATA_STREAMS]; /* print statistics */ - for(i = 0; i < nb_pfc; i++) { + for (i = 0; i < nb_pfc; i++) { struct flow_conf *flow = &qos_conf[i]; rte_eth_stats_get(flow->rx_port, &stats); @@ -212,7 +212,7 @@ main(int argc, char **argv) } else { /* print statistics every second */ - while(1) { + while (1) { sleep(1); app_stat(); } -- 2.35.1