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 633D1A0093; Thu, 10 Nov 2022 00:25:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9861142D35; Thu, 10 Nov 2022 00:25:06 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id 4038F42D2F for ; Thu, 10 Nov 2022 00:25:04 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id p12so122738plq.4 for ; Wed, 09 Nov 2022 15:25:04 -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=wLjwMcQ+6jQ30MfWWaa/DgHNusXeisAmQFqUqHTuZzo=; b=uFwNfkowd9OUy8BHcoDxeyS3pRM0H8wNuNfaKbt9FlajlmXEhqBQmOxhYL0v8RI9NS GA931H6OpHwMGIUUQyD550UBYIH5Lhe0HeilZxp2YWnUa5s9nAOUPvcNMVgMcKiawgUG oLhrkz8dhEYAKelrr4qrWWGNjONCCmpIDhhEdlJ90Zl7hZhXYARQNolLif4vRnLXqwxk Ny5s3sRRI4N2yP5L9Wjfax+UhZ/e1twmVMdLjo8QXyLunnBjNOA/eD2wRl/selM2qOIz SW/vQtcdsryMAMGTSBE8bBfADRdw77qBOY5rDEgxREUb2U9DA2PBgn2kEo1dxmUYC/2b Pmpg== 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=wLjwMcQ+6jQ30MfWWaa/DgHNusXeisAmQFqUqHTuZzo=; b=TlDrU91DCTVVAyxBYFda7g6Tsqp24aNchFL0aAJ7cGEtQD8/v/AN5kb04I3cQ/rNls 39UzpumYBvLUEUstlkJLBuR358sKcVnowoOTKbPi/V0k2F9pu7OPdPr0hAJ55of6SVEh weA9TERLWuCYp/BlZ58XgbTTU+N2ydjyt2M8cWUdrVxxE0LaN6WZlVRja8+UBm8+H/zi anlQnsYtrhRIVdC1yEkDn5Vrp5ns87PnNGimOvv2zdxFzaN4ulZm6Skv8vWkc3/SDMRG x92MVNGYNr2GmP8xG+BVdPY8Z1pu6N/uK5CAcxtou+h9r78QiYz6+OfwnldAYIg5PZah lBxQ== X-Gm-Message-State: ACrzQf1o+LG0Y+kjw/EDtCKeXxkTTgGG1ve7bgVMzH8hrXJzQt92obz2 a263v0z+JjlEtxIUtT6FLml7tOpTLif3vw== X-Google-Smtp-Source: AMsMyM4Gk65IdVgsbkZdm6urSV6A/J4XjOSmGmNbZ83XuStFDt5oJqh9XqmNHa6ZoqlN5w/o5skZMw== X-Received: by 2002:a17:902:aa44:b0:186:7a6b:7bbd with SMTP id c4-20020a170902aa4400b001867a6b7bbdmr63765725plr.78.1668036303393; Wed, 09 Nov 2022 15:25:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 15:25:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v3 07/14] examples/qos_sched: fix whitespace Date: Wed, 9 Nov 2022 15:24:44 -0800 Message-Id: <20221109232451.265059-8-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. Acked-by: Cristian Dumitrescu 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