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 065BFA04FD; Wed, 9 Nov 2022 20:54:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30EB242D37; Wed, 9 Nov 2022 20:53:48 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 2C4E642D35 for ; Wed, 9 Nov 2022 20:53:47 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id q9so17684340pfg.5 for ; Wed, 09 Nov 2022 11:53:47 -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=PkaB4fIvW2+OxN0IuStej3+QqnfvjRZBdDmmvM1PQGCRYZ77MxKCzlPpw1nym/Zs6I vxPWbV3145neLk848IRXVQFHmAfWOhLKp7F0KR6hPkyd9Ldcj4rkM1rSKjBqZoHD/Peb 3hLjrbJie58dGuoNVDzyR025Q4dxFSiz+z2qWy5yXWkQFIf/WHxjJsKsiALTCC8lhBxM qhlYY+HNDA+t3bqV+Hehzfx5DdKsvk1SQvZfi/gX8HX6t8DH9cwn1tzrCU94qghZEWhT 36F6qzF75NvoW/7aTxFhi6ITcQlTDPJN4hnEIM6zMUgP5a0iA9gRsnZcn+Bmmb4ddMuD Oyhg== 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=HfBsCMV36iK0ZR6qx+Y9ddBtc7ydTZWKdz0EVvNHcuBITu6H5mBuptSMN8CHjX8DdK RzrXIT34tetks3VRhcUinZalqGspwcOv55MCqQiVhK9piqBNmVDYfs8ej5gVpaXFXI7m bYs9EnZqqzVUQEwCy8i2SZFGwSSoOmIDWoK8+G6f9VljTfIsFJyUAAWq+KulTFNvmsrW EVn+jsnRKweAfXT7c+ZBbSyuQsidxVyMGigIrGQaoiXE1m2ARgo27bsl1MhxewRBwt+c 5EcRhpYdZhoxEmFtExmikx3KfujzwS1wK9IAU5NpXzpkFYECFRuSxa6kfPypRLw+4rds uEVQ== X-Gm-Message-State: ACrzQf0hHeC2iILibIjj/pHSJFxiuZ5Py0co2hULzD9rv/3pursXVtqV 0M+SER7RFb8f1rB/N9HLGQI9vGd9XDd8iQ== X-Google-Smtp-Source: AMsMyM6D18hrP4VQbzoM0xN/58afBmf9lYQ/FxxRG1FU8P5ch/m+p6eiQTkfNSXXwif8pJ+G/oiazw== X-Received: by 2002:a05:6a00:3698:b0:56d:3180:e88f with SMTP id dw24-20020a056a00369800b0056d3180e88fmr59606361pfb.66.1668023626005; Wed, 09 Nov 2022 11:53:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:53:45 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH v2 07/14] examples/qos_sched: fix whitespace Date: Wed, 9 Nov 2022 11:53:24 -0800 Message-Id: <20221109195331.143473-8-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 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