From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0F29ECAAA1 for ; Thu, 27 Oct 2022 15:31:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 88E2F60E4D; Thu, 27 Oct 2022 15:31:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 88E2F60E4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1666884707; bh=DIKDip2yuZJYL/mff8WlxhWE6jCv7FqEVZ0rAU/5j1Y=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=ZMX0+gVIV58eAsISNcyWYqE/m8vI/AARevbKJxAbKrdDZNwwtUiCiLmHZoX23bnYx f2RYEO1U77OtlRW59nG8uvkekY3NdJam+sMyC8mrBBHq0pZAJz/S+K1VZ9/R2zrhjn gOzhaDZOWQAox7n7PsmLWTJdMm6f2OkklVr0XAwhYFVwuxJgy9hfJ+JQA79zgERpNU RLo0Dkyor0Ae2qc+LHGAaeacieObkTFLn2vC3M53H+HkWBcjDwd5MLEDw/ua5caPPF lXLvEHzUdz4xG42bey2APk7Bcdl65wMdLD8NXXu99N2aujVScUO2IIghlDNI0D7Moz m8Vnfl7zQOVLw== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ieght9jMqjx7; Thu, 27 Oct 2022 15:31:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id A3D8460E41; Thu, 27 Oct 2022 15:31:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A3D8460E41 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A02951BF318 for ; Thu, 27 Oct 2022 15:31:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 7B3C640360 for ; Thu, 27 Oct 2022 15:31:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 7B3C640360 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 61D7Bbcp030j for ; Thu, 27 Oct 2022 15:31:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B4393400EA Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp2.osuosl.org (Postfix) with ESMTPS id B4393400EA for ; Thu, 27 Oct 2022 15:31:43 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="309344580" X-IronPort-AV: E=Sophos;i="5.95,218,1661842800"; d="scan'208";a="309344580" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2022 08:31:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="583593777" X-IronPort-AV: E=Sophos;i="5.95,218,1661842800"; d="scan'208";a="583593777" Received: from unknown (HELO fedora.jf.intel.com) ([10.166.232.13]) by orsmga003.jf.intel.com with ESMTP; 27 Oct 2022 08:31:42 -0700 From: Benjamin Mikailenko To: intel-wired-lan@lists.osuosl.org Date: Thu, 27 Oct 2022 11:23:59 -0400 Message-Id: <20221027152401.30801-1-benjamin.mikailenko@intel.com> X-Mailer: git-send-email 2.34.3 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666884703; x=1698420703; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Lla2u6Jcwb31d4AX9icLZ2Ond9HdwhvdRV9u7uxaBus=; b=bQ9WXbZHXceQTPe+1ZPMKNC5uZmCd6qnEMjcnPLj+rifsH2BhMKGYzkR 3gle0c7lpj2lRB6PpZJ9YQOKml7NfpVc5gEut1daUSpAfmyRDBfNbsFBa nTE9N6dT+qkSmHLDXQi2LZ/cW8VfW5WO8eCyv6cOMEul7tfgf7er4Udmk KwT4IQT6sBMk5ImNtsX/z8QD/pvwdOMBdShLHpdQu84RK6JepcjAEW2e6 rQfjgj88A0MfiQmo7ZPgcN9CTv6rFHmaLK+cQjsCw2nnUJ8pBYPfIsatB 2esnW+TkUYwI8rEeUq94+AUSnMhLY6tscAbjsG5QAutBkKuDN4pXGAOce A==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=bQ9WXbZH Subject: [Intel-wired-lan] [net-next, v3 0/2] Accumulate statistics over reset X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Benjamin Mikailenko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Resets happen with or without user interaction. For example, incidents such as TX hang or a reconfiguration of parameters will result in a reset. During reset, hardware and software statistics were set to zero. This created an issue for the user where a reset happens in the background, statistics set to zero, and the user checks statistics expecting them to be populated. Accumulate statistics over reset so the above doesn't happen. Change is divided in two patches: 1. Accumulate HW and netdev statistics over reset 2. Accumulate ring statistics over reset Benjamin Mikailenko (2): ice: Accumulate HW and Netdev statistics over reset ice: Accumulate ring statistics over reset drivers/net/ethernet/intel/ice/ice.h | 7 + drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 3 + drivers/net/ethernet/intel/ice/ice_ethtool.c | 12 +- drivers/net/ethernet/intel/ice/ice_lib.c | 263 +++++++++++++++++- drivers/net/ethernet/intel/ice/ice_main.c | 98 +++++-- drivers/net/ethernet/intel/ice/ice_repr.c | 10 +- drivers/net/ethernet/intel/ice/ice_txrx.c | 40 ++- drivers/net/ethernet/intel/ice/ice_txrx.h | 18 +- drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 2 +- drivers/net/ethernet/intel/ice/ice_xsk.c | 25 +- 10 files changed, 414 insertions(+), 64 deletions(-) -- 2.34.3 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan