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 3BBE3A0093; Thu, 10 Nov 2022 00:26:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDC0842D54; Thu, 10 Nov 2022 00:25:12 +0100 (CET) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id 003B242D50 for ; Thu, 10 Nov 2022 00:25:10 +0100 (CET) Received: by mail-pg1-f175.google.com with SMTP id r18so50680pgr.12 for ; Wed, 09 Nov 2022 15:25:10 -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=WWiooLfbtswlNemQYSlxEd+r0cBU/l7e2a1Q8UDr748=; b=NG7WLTXFrLr/jFIY+dkZiSnFIF/Ss/f7t9NeozZ3hnz0ITgtGC/Y3EHsMZDe7/cm+a eawg8z1XB7JZwnJRiqALRKS/HSaBjLMdzZw4TJD8y7Tb42C8v6aCrtPlHCmD/BQbggga bqp66v7d0/KfflnDYHW5q+jIqNLERyHxW9SPaHkGrrWt663Aw2xRd3q7dxKXdDXonkHU imMXgFnOuRsj2Ahw1fhyJBiAJ0Q+URX6NveCku/j8ygPq+l4jWvficxhWUvUtL+eo9Eq k8YHCnY81CohAVbes6HTFXWaJlganAeyOZpSIrl6CmboIzBHVfw42BFdmM34x2VNhRT6 RXpA== 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=WWiooLfbtswlNemQYSlxEd+r0cBU/l7e2a1Q8UDr748=; b=gr7v1jEbRwlnj/LsY5ru03f3+QIkyKLZb9w31+49SOBEDZQ4TUwmZIYEQfVo8gZhP4 fGGsnvzqddHH+b/Cppo1SPCI7wHmkOEIoLmWDek5OyvduiPPpQeFrezBDa75tcG4atse uvvEo/fi6tvJBWB0xzWVhwI4SYK3WRUZa+LKH0pb5yLyOeJkxmgzG6Vbc77iks6aIVqd 0t9Lzizp+/udSfoODNsyT8/sxZ/1o7vegocRjDNsI5CJaplJ6Bq4Yb36+NUxtDjpPqDu SUbwih1VMdRPN+MoboinTcoz5sJbsO6IYpiquiilh7k3Z7wO9I11NbmylsVGJBlVagFu +69g== X-Gm-Message-State: ANoB5plrip+sZSlWHX1tA03I9jD8v02pBY0rHBmXglN5yZ35X2O6Rq5I D1SwFq74YuNEVsIB7oUzRvjiBsKuMo37sg== X-Google-Smtp-Source: AA0mqf56zvCvW3yKpAJxuZOVx0VfYEOrPaSvrangRGvGcCil622vbJpeWoBvAgvXAFtznlNsNPzFHQ== X-Received: by 2002:a63:f353:0:b0:470:814c:f4ee with SMTP id t19-20020a63f353000000b00470814cf4eemr12531760pgj.8.1668036309945; Wed, 09 Nov 2022 15:25:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 15:25:09 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Simei Su , Wenjun Wu Subject: [PATCH v3 12/14] net/e1000: fix whitespace Date: Wed, 9 Nov 2022 15:24:49 -0800 Message-Id: <20221109232451.265059-13-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. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/em_ethdev.c | 4 ++-- drivers/net/e1000/igb_ethdev.c | 8 ++++---- drivers/net/e1000/igb_pf.c | 2 +- drivers/net/e1000/igb_rxtx.c | 2 +- 4 files changed, 8 insertions(+), 8 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; } diff --git a/drivers/net/e1000/igb_pf.c b/drivers/net/e1000/igb_pf.c index c7588ea57eaa..b1f74eb841d2 100644 --- a/drivers/net/e1000/igb_pf.c +++ b/drivers/net/e1000/igb_pf.c @@ -78,7 +78,7 @@ void igb_pf_host_init(struct rte_eth_dev *eth_dev) if (hw->mac.type == e1000_i350) nb_queue = 1; - else if(hw->mac.type == e1000_82576) + else if (hw->mac.type == e1000_82576) /* per datasheet, it should be 2, but 1 seems correct */ nb_queue = 1; else diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index f32dee46df82..f5677da6b931 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -2276,7 +2276,7 @@ igb_dev_mq_rx_configure(struct rte_eth_dev *dev) /* 011b Def_Q ignore, according to VT_CTL.DEF_PL */ mrqc |= 0x3 << E1000_MRQC_DEF_Q_SHIFT; E1000_WRITE_REG(hw, E1000_MRQC, mrqc); - } else if(RTE_ETH_DEV_SRIOV(dev).active == 0) { + } else if (RTE_ETH_DEV_SRIOV(dev).active == 0) { /* * SRIOV inactive scheme */ -- 2.35.1