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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 5578AEB64D7 for ; Wed, 28 Jun 2023 09:51:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E0FCE82B21; Wed, 28 Jun 2023 09:51:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E0FCE82B21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1687945877; bh=nwNqwHJDo0lt14sHN/4HPbFreEzdP1tx7MAsjVm6bqc=; h=Date:To:References:From:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=hvzEv969RIEPMQmmPE1H5qMVLt1ayEk1MUb2h3nQvF1g9i3FtQSX6Jk5KDSjFJr+Y 2zwIJMHTOy/xSlog9p74qps3+ucNV+tM7GNljSNjNNaNLjq+hDRVofytkY7R/ckVDM nytp/dRRlsQzv6L5eI6QSRnmKECVeXNszerWSKXS7SbhgZgZleK8wsM3Z06MLG/CVL gTHx7Z8HnYnP3WI/66kT0iuHSaZVEExdqApoEX2mSXQRfcOG3aFf6VvuPt2YsbyycR Tq8bw0V7cZ7sdrRsfBX8rUXigAAunn89E6OkhM2d280katCKKkNuge88/Khc4if1Rc p5eZxrdH+lsjw== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aaraCBUFpfQE; Wed, 28 Jun 2023 09:51:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id DE64D82233; Wed, 28 Jun 2023 09:51:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org DE64D82233 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E1D461BF408 for ; Wed, 28 Jun 2023 09:51:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C6D9782F76 for ; Wed, 28 Jun 2023 09:51:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C6D9782F76 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SLCeG7hrE7hj for ; Wed, 28 Jun 2023 09:51:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D2EFE82D12 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by smtp1.osuosl.org (Postfix) with ESMTPS id D2EFE82D12 for ; Wed, 28 Jun 2023 09:51:13 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6600,9927,10754"; a="448185450" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="448185450" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 02:49:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10754"; a="890978421" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="890978421" Received: from naamamex-mobl.ger.corp.intel.com (HELO [10.13.12.65]) ([10.13.12.65]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 02:49:43 -0700 Message-ID: Date: Wed, 28 Jun 2023 12:49:32 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 To: Muhammad Husaini Zulkifli , intel-wired-lan@osuosl.org References: <20230614024225.13652-1-muhammad.husaini.zulkifli@intel.com> Content-Language: en-US From: "naamax.meir" In-Reply-To: <20230614024225.13652-1-muhammad.husaini.zulkifli@intel.com> 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=1687945873; x=1719481873; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=E9BE0uzLBawtxNmNKvBCtU1Nd9E4FftovV7X64/Xo/c=; b=Ds3cxTAC4qc6Ht/fZFxXfbAP+eV5G6x3034p6QkaJBFAp+tPWXvLOv0O HnL8I7LfiOZpvIBFIZeTHc8fv59DKvTMITNdZj2u9AVAY8Rke7TPoK439 CmsIO6ZHCDohOWLD6CnUsIp2i+TE5hmfMTlV9F62snj7m6zr8jXzUo/dM yQu5cNWA6D8MQHGzYZByTxKDf+/23eii/CK+uHdU0YwqOCkLGmG36NQ2k BP67xSiIRs/CUAB44I4VWf6t5bwe6T1b7HR5fsLATvPt5GsBMHINP1t3+ /5f37xSC3cIlJXHE6LR17HoBX/IY83RcPPTQfD+vM6voS1JKBn2PRouBm w==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Ds3cxTAC Subject: Re: [Intel-wired-lan] [PATCH iwl-net-next v4] igc: Add TransmissionOverrun counter 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: vladimir.oltean@nxp.com, anthony.l.nguyen@intel.com, tee.min.tan@linux.intel.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On 6/14/2023 05:42, Muhammad Husaini Zulkifli wrote: > Add TransmissionOverrun as per defined by IEEE 802.1Q Bridges. > TransmissionOverrun counter shall be incremented if the implementation > detects that a frame from a given queue is still being transmitted by > the MAC when that gate-close event for that queue occurs. > > This counter is utilised by the Certification conformance test to > inform the user application whether any packets are currently being > transmitted on a particular queue during a gate-close event. > > Intel Discrete I225/I226 have a mechanism to not transmit a packets if > the gate open time is insufficient for the packet transmission by setting > the Strict_End bit. Thus, it is expected for this counter to be always > zero at this moment. > > Inspired from enetc_taprio_stats() and enetc_taprio_queue_stats(), now > driver also report the tx_overruns counter per traffic class. > > User can get this counter by using below command: > 1) tc -s qdisc show dev root > 2) tc -s class show dev > > Test Result (Before): > class mq :1 root > Sent 1289 bytes 20 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > class mq :2 root > Sent 124 bytes 2 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > class mq :3 root > Sent 46028 bytes 86 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > class mq :4 root > Sent 2596 bytes 14 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > > Test Result (After): > class taprio 100:1 root > Sent 8491 bytes 38 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > Transmit overruns: 0 > class taprio 100:2 root > Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > Transmit overruns: 0 > class taprio 100:3 root > Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > Transmit overruns: 0 > class taprio 100:4 root > Sent 994 bytes 11 pkt (dropped 0, overlimits 0 requeues 1) > backlog 0b 0p requeues 1 > Transmit overruns: 0 > > Signed-off-by: Muhammad Husaini Zulkifli > --- > V3 -> V4: Rework Vladimir's and Anthony's comments to remove the constant > counter from the driver's ring data structure and ethtool statistic > implementation. > V2 -> V3: Included new infra xstats to report back the counter to qdisc > V1 -> V2: Change per-queue stats. Driver still remains adding the > statistic independently. > --- > drivers/net/ethernet/intel/igc/igc_main.c | 26 +++++++++++++++++++++++ > 1 file changed, 26 insertions(+) Tested-by: Naama Meir _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan