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 44EEDA034C; Wed, 9 Nov 2022 20:54:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 694A542D2B; Wed, 9 Nov 2022 20:53:57 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id CC81142D2B for ; Wed, 9 Nov 2022 20:53:55 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so2865752pjk.2 for ; Wed, 09 Nov 2022 11:53:54 -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=w13p084c5lz/vaTZSOY0WcFhVOYDiiLi9ewfAO1+SS4=; b=e2XEV4cylodxTFYILs1BwR7dFEfIX2ZRW8OFxaqARmsGIgvhNvyndXMzn/Fghgvntl Mh1DpUZkKQ8mc2rAY+DCrDM0LJZUgc+Bs9j2D04BYIhM8XSz19ddgpGb8Ao6DtUFhq3B VXm/AvrC94krofuAcY7XZ+0KQrUBmn9kSZpIzSwfhPrPslXQxd1uVbMw01eIv4ERlxlX B/sHOl41rYKPjsmES6gx6bga+h0yoHM+7ED4MeTR/81OrFs29g5PiR7e9cVR+hGIRU/Q LqxaQqjn92o/mAQzcqeWpKFYaex//1PTN7NT+I4qOytaDHKifFYMEQbwWOPteWo3bxqm ew4g== 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=w13p084c5lz/vaTZSOY0WcFhVOYDiiLi9ewfAO1+SS4=; b=m9KkKMoJA7cosOtK2M4jOHDFFqS1VOsJRq7O/t8xtyP21c1+0kdyQEGFjzrKJxXzBm asv0C+p03bKDHkuG6SB8GO+l289JLfd8+/oj2PaHB08ArlaDEqKh8XzVpBm0Exw31DV1 zpECg57myvSvjgzYE5+kQLt+c3mwgmzJimPLJPL/Dz0LoZGDFskxdgzUoKqQtMr7yQcM WT4vyRM341mQWWEouW4luH3vr7kfHrWQMEFOJwJCB6lN9FGI/PryZih6ib1lCWiInT38 gPPGhT9W72BinuTwBxRM8ek/W+Qe1F3qKFj9uwBYMATgN34PQFhRu7XFyruX/ylxY/4N ONow== X-Gm-Message-State: ACrzQf0U32oTWTpHI5mMjXkQA3yylEMBqMlhTbOs+v+oLfqmkDI0Sob7 Gu44rw2Xihr+RcFxDb9UZv7QKpGdiFbkCw== X-Google-Smtp-Source: AMsMyM6H0WBjkapHjmnt7v9hEYxjo9NEgfCkjybR6WB6Mp3TkAalmLtik8sJgPMEO5t9Jo6/8ccxFg== X-Received: by 2002:a17:902:b595:b0:187:34f6:7820 with SMTP id a21-20020a170902b59500b0018734f67820mr46904422pls.152.1668023633866; Wed, 09 Nov 2022 11:53:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:53:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Simei Su , Wenjun Wu Subject: [PATCH v2 12/14] net/e1000: fix whitespace Date: Wed, 9 Nov 2022 11:53:29 -0800 Message-Id: <20221109195331.143473-13-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 --- drivers/net/e1000/em_ethdev.c | 4 ++-- drivers/net/e1000/igb_ethdev.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 8ee9be12ad19..146e74cfc76e 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -872,8 +872,8 @@ eth_em_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats) E1000_DEV_PRIVATE_TO_STATS(dev->data->dev_private); int pause_frames; - if(hw->phy.media_type == e1000_media_type_copper || - (E1000_READ_REG(hw, E1000_STATUS) & E1000_STATUS_LU)) { + if (hw->phy.media_type == e1000_media_type_copper || + (E1000_READ_REG(hw, E1000_STATUS) & E1000_STATUS_LU)) { stats->symerrs += E1000_READ_REG(hw,E1000_SYMERRS); stats->sec += E1000_READ_REG(hw, E1000_SEC); } diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 8858f975f8cc..67e82d708964 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1683,7 +1683,7 @@ igb_read_stats_registers(struct e1000_hw *hw, struct e1000_hw_stats *stats) uint64_t old_rpthc = stats->rpthc; uint64_t old_hgptc = stats->hgptc; - if(hw->phy.media_type == e1000_media_type_copper || + if (hw->phy.media_type == e1000_media_type_copper || (E1000_READ_REG(hw, E1000_STATUS) & E1000_STATUS_LU)) { stats->symerrs += E1000_READ_REG(hw,E1000_SYMERRS); @@ -3500,10 +3500,10 @@ static void igbvf_set_vfta_all(struct rte_eth_dev *dev, bool on) for (i = 0; i < IGB_VFTA_SIZE; i++){ vfta = shadow_vfta->vfta[i]; - if(vfta){ + if (vfta) { mask = 1; for (j = 0; j < 32; j++){ - if(vfta & mask) + if (vfta & mask) igbvf_set_vfta(hw, (uint16_t)((i<<5)+j), on); mask<<=1; @@ -3528,7 +3528,7 @@ igbvf_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) /*vind is not used in VF driver, set to 0, check ixgbe_set_vfta_vf*/ ret = igbvf_set_vfta(hw, vlan_id, !!on); - if(ret){ + if (ret) { PMD_INIT_LOG(ERR, "Unable to set VF vlan"); return ret; } -- 2.35.1