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 472A0A034C; Wed, 9 Nov 2022 20:16:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF72D42D50; Wed, 9 Nov 2022 20:15:17 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 2E98B42D51 for ; Wed, 9 Nov 2022 20:15:15 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so2777567pjk.2 for ; Wed, 09 Nov 2022 11:15:15 -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=xGH78huEm2Y1yp8NOt4ytbh0acrjRClJODkI7URptvY=; b=n84f4GFWdnGV74wONGyMytPogdrDHfphgTHEXwjedrennXY5Umc2mC1NFxTvCoMf2g MK4NsgOSNC6AIzTsQX0Z0ptC5pl/EWjkFTyx+wXq2OY5NkjgyyAo/RBzT9nf2Pv9t/ws njZfKPwCYjOE7iwiiI1XmGGi6kie3YX68tDMFFl3rtolQK7LS+ksv8gVfkLjKOLudO6R RiwDynvXdvcNLZ6siFQWIWkDq8Ar7tyZXD8ejfMxycGlu7CTCIDDkAl5OErWAVlotvqJ RF+nrNr/USAccH9+j64rERyba4IwQzyOPI30zXQ6ejxNv2edMIsG+iVN+I5kng3zV/40 FMCw== 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=xGH78huEm2Y1yp8NOt4ytbh0acrjRClJODkI7URptvY=; b=2cP5U8kifFXWca8+HuX+m/Qf0a0Vp5bQIaMI0mh73/DAmowp8auWgB1kfvPy8nYXxm +0scXQa76jZ2Ms/9lxwqFeyvb8k17yxCgo4kF//bmnkk6iaqqr9Hg3fSRcA9mAVrVi/r nbw57Zej0IYbryQFlJWkmE5F6TPnkQ4ir/eV/sZadQ50LxFcbxisbAxUM+Nu0bOqG0Ok +81yQinwqp1e7N/254rK/M6yEdn9P/FtfqdK4lNxgUXFA8aqKdKrlZMqKuf6zUcQDzxC TgEetDGGF9XEbjJ4OM9Bw5HMwZrPPFzan81Gu6i6t/cSRmSd0dJQS/rhVBmZSQQQPleh k2EQ== X-Gm-Message-State: ANoB5pnjNTQfCbXf1NwdTlk/tIZmCyKT8ZyztGKKZgcERCIWwYymaRH+ pWt2jqwmglJlFsO1OqGCtAhEgwFXIBYGbA== X-Google-Smtp-Source: AA0mqf61ypu98ai/fWOfdnnKo3t34NZ7XPP/1IcOUVNKJ7nxIrdsrYWfwci9RR9z3RJYRtT31clf0g== X-Received: by 2002:a17:90a:6448:b0:217:24f3:cefd with SMTP id y8-20020a17090a644800b0021724f3cefdmr29397882pjm.200.1668021314198; Wed, 09 Nov 2022 11:15:14 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id gn16-20020a17090ac79000b002130c269b6fsm1586698pjb.1.2022.11.09.11.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:15:12 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Simei Su , Wenjun Wu Subject: [PATCH 12/14] net/e1000: fix whitespace Date: Wed, 9 Nov 2022 11:14:43 -0800 Message-Id: <20221109191445.140320-13-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221109191445.140320-1-stephen@networkplumber.org> References: <20221109191445.140320-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..5c35b8349063 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