From patchwork Fri Nov 23 23:16:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 151924 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2752840ljp; Fri, 23 Nov 2018 15:18:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/VqzAtkgC5+FqId+c3BtevTqef8/QN5tl/7JLKeBXdg9BrUcV4TRRv8PybnmuGSRPE9qvbe X-Received: by 2002:a17:902:be0c:: with SMTP id r12mr5082168pls.299.1543015129442; Fri, 23 Nov 2018 15:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543015129; cv=none; d=google.com; s=arc-20160816; b=YQBv+g8CCAVTyvethtB4hqc+aKEChXQfZryJRLKx8GiQSCanqfLHfxvVbltBaGNPKQ OE6Oxvb6LeZ1PAGWp0ciGZ3u9BY4/+c67LEJ+M0vUdi6eV3Pdl2pJE+wySpWVobw/R0+ QOBdmw/YmdD5S4Ov/bGDPb7G7RcCrtWglJV5lpbXmED2bmbXysIQT3jQaaHYWpy1uitN XMykP+3is1I9uYEWaSCs+JFgImDAbArWHsB5PDljRGILvPLjSE8FD35HxpQoc86p2ueN Ey68RZYNtdDJihs442e/eujKQy+wWdwUW8nrHsD+mB1rBiyt0T1G4UqoIAn25gJX/Uvw ZxCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=svjLgL3xrshn12IteLGvPgu4comj2dW2YTfwcxf7oCI=; b=DxMSJaPWkzcZ5vDaRsP9pvNxE1soaVKV4wVi6Vt9VxR3tq7RamHh0sSzRqgUIZsyNr wyYqyojbIOjVC8Rox5mcHvWMnESzDkNmQa0WMT8gAgDEGNmTbJSyVYiuDo+BxuaNpEX2 DAtBjHIB0TptAnuyiKi2xBRMg8ZxCFfvaynIAoXQoxbgvDc+U8jg+5zmBoBd5iIq5zeb a1RIgGo7iF+Ehk8w/tOfszOBRpmPNgC1HbRd1jedNcwXGJFUEzvOdnHS+CchtIvjTxOk wNeeba0VPvvz5QBWoNU60vWrIQPkl5ogsY6HCt+OwD5uLq7iT9GR3GEkhE3Jtg7uLHXa 9vXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TNM/bMw0"; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o61si10618610pld.246.2018.11.23.15.18.48; Fri, 23 Nov 2018 15:18:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="TNM/bMw0"; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727655AbeKXKE4 (ORCPT + 11 others); Sat, 24 Nov 2018 05:04:56 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45118 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727642AbeKXKE4 (ORCPT ); Sat, 24 Nov 2018 05:04:56 -0500 Received: by mail-lj1-f196.google.com with SMTP id s5-v6so11826820ljd.12 for ; Fri, 23 Nov 2018 15:18:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=svjLgL3xrshn12IteLGvPgu4comj2dW2YTfwcxf7oCI=; b=TNM/bMw0DA05LbMALkP0b634w2y80MRCNUDI2x3YY1hRa2RZALBJNmETLhv+pzFv6f DuKC7tb9uVrIGbxE6XYktpXN7lws6Fvj5ezJBL650690GbempbilUR7E+R6oLgXEMgfU y220c+faMvkL7CN5Xb5ByDAmi1EgrVg8yH4p8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=svjLgL3xrshn12IteLGvPgu4comj2dW2YTfwcxf7oCI=; b=Nfv8uaEH6TDIGxce58NCLdpCTGSSgzo7AD+pssoa9nAp4aR2wajr7bflKVbTpsJ4gQ Koxn2+PRfmzBtPV3MUpiojZQ5QcnIYkGXTFM7n+bas3iaA0HG0CjvJVSmf9KoWjFFhaT zYVfjqae8Y6sTp2iLakw0voXm3NMw3kxwQZubZz6nW7jYrZvHKj8ot0+8l+OAC4nqkod fMthgG+RN+kNnFyolQU7nh+FowI7ABerV6T2im0TbT1L+AWDNqXpM9mL967YlguFIgu7 WZCyIVeDjp1yxgE2t8PhOwEIP/gOyL5xdnP+B/Kxh0W7r2kASLI+iFuJFPlHgqOIPkyh 6Tog== X-Gm-Message-State: AA+aEWYjc7SNZJabKnhCX2PvTNyY4nwGSJiTCMiFZ7035j4Kw3Fnfgnl n1Whr0boraqF+AB58ZlbUDDJAtF9wjUeKQ== X-Received: by 2002:a2e:9e03:: with SMTP id e3-v6mr11143922ljk.4.1543015123301; Fri, 23 Nov 2018 15:18:43 -0800 (PST) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id p77-v6sm9219499lja.0.2018.11.23.15.18.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 15:18:41 -0800 (PST) From: Linus Walleij To: netdev@vger.kernel.org, "David S . Miller" Cc: Hans Ulli Kroll , Andreas Fiedler , Linus Walleij Subject: [PATCH] net: gemini: Fix copy/paste error Date: Sat, 24 Nov 2018 00:16:34 +0100 Message-Id: <20181123231634.5659-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Andreas Fiedler The TX stats should be started with the tx_stats_syncp, there seems to be a copy/paste error in the driver. Signed-off-by: Andreas Fiedler Signed-off-by: Linus Walleij --- drivers/net/ethernet/cortina/gemini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.1 diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c index ceec467f590d..949103db8a8a 100644 --- a/drivers/net/ethernet/cortina/gemini.c +++ b/drivers/net/ethernet/cortina/gemini.c @@ -660,7 +660,7 @@ static void gmac_clean_txq(struct net_device *netdev, struct gmac_txq *txq, u64_stats_update_begin(&port->tx_stats_syncp); port->tx_frag_stats[nfrags]++; - u64_stats_update_end(&port->ir_stats_syncp); + u64_stats_update_end(&port->tx_stats_syncp); } }