Message ID | 20170801191113.8754-3-f.fainelli@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <intel-wired-lan-bounces@osuosl.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=osuosl.org (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UIBbrIcb"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xMQsd51Q4z9ryr for <incoming@patchwork.ozlabs.org>; Wed, 2 Aug 2017 05:11:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9F63788CE9; Tue, 1 Aug 2017 19:11:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cqoZvwb49WuZ; Tue, 1 Aug 2017 19:11:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1668888C13; Tue, 1 Aug 2017 19:11:30 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4C0F91BFBA0 for <intel-wired-lan@lists.osuosl.org>; Tue, 1 Aug 2017 19:11:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4124588C13 for <intel-wired-lan@lists.osuosl.org>; Tue, 1 Aug 2017 19:11:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9u5WBFWOm5zw for <intel-wired-lan@lists.osuosl.org>; Tue, 1 Aug 2017 19:11:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9B58888BF5 for <intel-wired-lan@lists.osuosl.org>; Tue, 1 Aug 2017 19:11:28 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id y43so2125892wrd.0 for <intel-wired-lan@lists.osuosl.org>; Tue, 01 Aug 2017 12:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PGyU/uCCntJx4uGx4LILvaFpj0YV4DVlMl6cD01CArw=; b=UIBbrIcbd4UtE3RU9WT6wQ2YCPmt8esz7VGi8R4OvURD/YA/2zXNUMUCMLvkRaHkYk irFnUx1egO+4yWacQadmCdj+pc5SPr3MqG7/bJP4Xme2nDCvZvFTaGNhDeExTO5sX6JD LgKrxXAILIvR+RAGJbHXiLx8rfDP2ss1ubzBOkrzCbmTnSJVVmVohMMreexoc1VLWHNA Ng/8J84GpfmvQQnUjZPeOU2OqgXroXpGxX7Ze+ap2MnbkOMIpuUcWZlwk5NYopuNqhmF hM9B5KUFJYtzGQAk7SSZADMABhVqeH/PMIPtko+fKeYjqvTvE2vFv0vlOiTTHVvdluzQ dDNQ== 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:in-reply-to :references; bh=PGyU/uCCntJx4uGx4LILvaFpj0YV4DVlMl6cD01CArw=; b=GSbWqtAY2u7v0qJblC7fqn06uGPIt5l21q9atdoRDPibznYA+mQ5ORV3TiWbKE5XDY GvSI7Tpa2735qnQYbkQLx+BlZmGlNrpFrOZ16f2e+aoMAZF+M8eikUQMI/EuCCYVDOGN Fe5YSDsF1kb26wO6KgCJxoeYHgWnEpFbmg/DpcVKVUivEsalmfd7A8NrlUqRVB5YQlxb HoUGdBgN2Y9MgOQ80RMD3+RSwmF3eQrd8w+DmiCxf/8XUke6Pn5lumk7A9bUV3XvIJyD 8O6CGHk/D9S+Jh+Aty19vjeJ1Vz5Rz2R66cbd7o/m3I59Nkw6CUWUzvxUUgyYcfMYh1r o/fA== X-Gm-Message-State: AIVw110sPvklO1S5CwnIzQ3ttPPipXTFHaBF9HuJypH54N5xuscUaRe5 W1ZdZgaU+ZWAfQ== X-Received: by 10.223.182.130 with SMTP id j2mr18292667wre.254.1501614686973; Tue, 01 Aug 2017 12:11:26 -0700 (PDT) Received: from fainelli-desktop.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id v9sm2001400wmg.41.2017.08.01.12.11.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2017 12:11:26 -0700 (PDT) From: Florian Fainelli <f.fainelli@gmail.com> To: netdev@vger.kernel.org Date: Tue, 1 Aug 2017 12:11:07 -0700 Message-Id: <20170801191113.8754-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170801191113.8754-1-f.fainelli@gmail.com> References: <20170801191113.8754-1-f.fainelli@gmail.com> Cc: Florian Fainelli <f.fainelli@gmail.com>, open list <linux-kernel@vger.kernel.org>, edumazet@google.com, "moderated list:INTEL ETHERNET DRIVERS" <intel-wired-lan@lists.osuosl.org>, davem@davemloft.net Subject: [Intel-wired-lan] [PATCH net 2/7] i40e: Initialize 64-bit statistics TX ring seqcount X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development <intel-wired-lan.osuosl.org> List-Unsubscribe: <https://lists.osuosl.org/mailman/options/intel-wired-lan>, <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe> List-Archive: <http://lists.osuosl.org/pipermail/intel-wired-lan/> List-Post: <mailto:intel-wired-lan@osuosl.org> List-Help: <mailto:intel-wired-lan-request@osuosl.org?subject=help> List-Subscribe: <https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" <intel-wired-lan-bounces@osuosl.org> |
diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c index b936febc315a..2194960d5855 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c +++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c @@ -1113,6 +1113,8 @@ int i40e_setup_tx_descriptors(struct i40e_ring *tx_ring) if (!tx_ring->tx_bi) goto err; + u64_stats_init(&tx_ring->syncp); + /* round up to nearest 4K */ tx_ring->size = tx_ring->count * sizeof(struct i40e_tx_desc); /* add u32 for head writeback, align after this takes care of
On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a lockdep splat indicating this seqcount is not correctly initialized, fix that. Fixes: 980e9b118642 ("i40e: Add support for 64 bit netstats") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> --- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 2 ++ 1 file changed, 2 insertions(+)