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 74383A034C; Wed, 9 Nov 2022 20:54:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5FF742D3E; Wed, 9 Nov 2022 20:53:51 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id 5C6E642D3D for ; Wed, 9 Nov 2022 20:53:50 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id e129so17113023pgc.9 for ; Wed, 09 Nov 2022 11:53:50 -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=nhhXnLkYkG4mHGRUf5HbpuwBHEi398crtA4UbeAB6VE=; b=YVq+CYqolePEFk7SDFI56kiQlBRRF1auEhgTUuafPiMLHtUv+2w1Fqrj1p8EtUlHlt vRsF/9RskxJn8SyIhbSFa4fecDUQu25Alh4NMKuZ6LrqX3m4yYjk4nRBr2ibMDkRSaIk zTfoRWPtW4XddqnXIKqF7bxEHk69v1h5ASEucBefiP9x3lpjlqkg3w0d3u/F3UV1qd8c nTFeruAnhdNUQ+x1aaUy+bKVuJ53EerBmWdeTHak4Q8V/R85o8Gf/ZjNC3GUf180QXCR dmmDt2Yxy0Nk0b/FlG7lE4u3TaaENd3+pJiX/KniSW9ze/wjlJz5dKuxZdCBwzt2cvqO sXwQ== 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=nhhXnLkYkG4mHGRUf5HbpuwBHEi398crtA4UbeAB6VE=; b=CBI5Xq6pdOMLY91oGdlmoolA40r8ESK6MjacpPQ379XgU+vJ1e0tbNge2RRGXnqI9L i1RJ5Wl+thvGWX4+oWFzI8RbhKmEIjDivKIl35VVSFSacxhQf06jnnIm+TAskVB93HlH ZW/7yrvba2LFUURO13buMXmL9unMFwebok7C/XsJoVXcbhjrTOWp3cmx2KEbim08ei0T VfQNt9FFBi1Sgmi7REYdWa9/R5/TIIg48kMmJZpLERNXHXxBg6gb/xoNq14gk0Om5l+U N1phEXRNCyzwHGxsAOc3hMckFaTHGlUMIhGWElqBWtrhY+ohpS+LlbhECccDiqc/7d3Q +wFw== X-Gm-Message-State: ACrzQf1Ge0jtLC1Eg/tMne1ijdoyYI+XGCwiu1FVWTHs1h6p1CIeUwI2 WPXB0ukqIA5p6K/7CPloP0C2tCMkClLgOA== X-Google-Smtp-Source: AMsMyM7Oq9v7DWvO52ODbkspekQxuNhFT9TgqRzYa82J5ILP4O9Lsx+zsJd+5VNso9xh9DfpsNZ+EQ== X-Received: by 2002:a63:151e:0:b0:46f:5f3:c7f6 with SMTP id v30-20020a63151e000000b0046f05f3c7f6mr1226327pgl.330.1668023629194; Wed, 09 Nov 2022 11:53:49 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:53:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , David Hunt Subject: [PATCH v2 09/14] l3fwd: fix whitespace Date: Wed, 9 Nov 2022 11:53:26 -0800 Message-Id: <20221109195331.143473-10-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/l3fwd-power/main.c | 7 ++++--- examples/l3fwd/main.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index fd3ade330f82..7bd5d8cb2281 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -1787,11 +1787,12 @@ parse_config(const char *q_arg) while ((p = strchr(p0,'(')) != NULL) { ++p; - if((p0 = strchr(p,')')) == NULL) + p0 = strchr(p, ')'); + if (p0 == NULL) return -1; size = p0 - p; - if(size >= sizeof(s)) + if (size >= sizeof(s)) return -1; snprintf(s, sizeof(s), "%.*s", size, p); @@ -2946,7 +2947,7 @@ main(int argc, char **argv) fflush(stdout); /* init RX queues */ - for(queue = 0; queue < qconf->n_rx_queue; ++queue) { + for (queue = 0; queue < qconf->n_rx_queue; ++queue) { struct rte_eth_rxconf rxq_conf; portid = qconf->rx_queue_list[queue].port_id; diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 5198ff30dd00..2b8575137d50 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -516,11 +516,12 @@ parse_config(const char *q_arg) while ((p = strchr(p0,'(')) != NULL) { ++p; - if((p0 = strchr(p,')')) == NULL) + p0 = strchr(p, ')'); + if (p0 == NULL) return -1; size = p0 - p; - if(size >= sizeof(s)) + if (size >= sizeof(s)) return -1; snprintf(s, sizeof(s), "%.*s", size, p); @@ -1366,7 +1367,7 @@ l3fwd_poll_resource_setup(void) printf("\nInitializing rx queues on lcore %u ... ", lcore_id ); fflush(stdout); /* init RX queues */ - for(queue = 0; queue < qconf->n_rx_queue; ++queue) { + for (queue = 0; queue < qconf->n_rx_queue; ++queue) { struct rte_eth_rxconf rxq_conf; portid = qconf->rx_queue_list[queue].port_id; -- 2.35.1