From patchwork Wed Nov 9 23:24:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 119678 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 46BE0A0093; Thu, 10 Nov 2022 00:25:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 720E142D41; Thu, 10 Nov 2022 00:25:08 +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 2BF2A42D39 for ; Thu, 10 Nov 2022 00:25:07 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id p21so109516plr.7 for ; Wed, 09 Nov 2022 15:25:07 -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=S/o94p73cwAR5sIZd8IiIvjGDzem9jaSRHJKzoibCYsbedZ4rGRZpJssQT3YME8MTI u3iL9CMJRaChSzyj5OcIzcFYxdR7YwadQ93gOBafnflZ4cXkhcBixzNE7ERmQoajy94l rY99yktR5VgFT/v3fklVmnnCB4y3NsOmnmZn66hxFXj1ezDMTW1GI9T5OZzqy2mKwsG0 iiulRfIiJQWRHl6wwnR7DSnL5bkJWfMjCVGmkrimVy789L3F/CTphfq7C/unpbjEDdaE 8j5cbSmbHohRQekoNFVIn1d+m+rt3palTacCbOnx4lSGZl75M36mVKbScNulWwd5+GdX ut6Q== 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=vXLKb1bqmHXM22V3kg8CuBx1c2Og0KhTv8W+IS7DubflypNpeZchCNnMySF58xTPtH YJUt8bcjK3CqJVWZlhqIZiJ0/X5VduOyklVmQJA1dGJdnLE5ZxgKhmQICd7GGb1St20w H6BPdy8kpYZQ/pmGpfXshLLSGFdcQwAomA9Vka/z6Et53cBCc2qfnTeSxyuPQ1LssH4L VvRZAIcvu0iQ/4Sf3mpRNQQZPq9cdNomB8Hr3ZwAhjiP6u6pvLmcY0X/wfLhEf24Qme2 Wc5Fo6njJaDKxxyHATnSaB304R2EAC1GyfPWOZQXcuUxvgmQ5R3woU7GcbzN8Yixpy8Q Ag1w== X-Gm-Message-State: ACrzQf3qDxVygWmyygkgIRlFMzOGuKJpnIuP2bbWlnxXjqthPbulY+L0 3XspMfP2Vr3IAmYxNWH+t9ouJvB4peNoPw== X-Google-Smtp-Source: AMsMyM6WxN5H4pAp21zg70g+LIjrkMTuxDeBh2ITkF/fAZCzhktCdRSHuEEhoBckJAzFSFLgD0YDYA== X-Received: by 2002:a17:902:ef4d:b0:181:98d1:69c0 with SMTP id e13-20020a170902ef4d00b0018198d169c0mr64465773plx.45.1668036306091; Wed, 09 Nov 2022 15:25:06 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 15:25:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , David Hunt Subject: [PATCH v3 09/14] l3fwd: fix whitespace Date: Wed, 9 Nov 2022 15:24:46 -0800 Message-Id: <20221109232451.265059-10-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 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;