From nobody Mon Oct 21 15:24:52 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XXJyY23hFz5ZQ66; Mon, 21 Oct 2024 15:24:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXJyY0rVGz4pSw; Mon, 21 Oct 2024 15:24:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729524293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bnmTLeSixU9QyWQbPkpSioJXrBJsP9uB8fU9WSw8mtE=; b=aJB9GSKqvg6qqFSdXQ/2j28wsYlxxBU01Go4RemBjrKuq8BjeASYJULxuczXh06xjyyxrX Hu4Elccw+vHjkzlTPFJtkIP5wjLNZelkpc0fA1zoykIYLZmBAkrNHLtXFhvfLyTwDBh/RR QoitACuW4M9AN6jt35ikHCU6n7vBn9r8wg8Vl0NBhMTMGhxK+5uNJdcnHD3Tol+3fLBSfA WL8evgfsg8flyWjElylZG9fbvT5Pknun37vATBfZDJK65ao6krbciOwq+zigcjKKEgUS8V Lzlk2nzJjX1o47K+gIjfAJA7F+vraHGq2zJqzAPhbQMDUWbVK8bTsz16d15JpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729524293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bnmTLeSixU9QyWQbPkpSioJXrBJsP9uB8fU9WSw8mtE=; b=eY1V0L7txvB9Mrrk9b1iL/b+mEpx2vwEoZaa9Y9g5Rtoqvx3BQ5K3PAmgSrjz+t0YnL6NL Jp73iHBspcadJZaU8Fp4Y/LFPaOT5/9jdU3InW0RPCBrbHerg0toE3m/7EBuIwC1HKOHtR B1qJJ06OhekEnV9QGP+yyKqRJE1PQraxcN6Csvd62T6YXry90yXLxAub8o8KVc02zXy3Ur vVjrHS/fgQ5ebygzl/7oRSihPPWmZ5UYRL5X4NTzkDl2XUwfNjVydecyTgj7sbtOOY18Y7 Z3H5smwdRUPaGJRkr8KQrOQmYRwzImBGD6CIo1HnYFNWk6MpoukVafWQlew4uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729524293; a=rsa-sha256; cv=none; b=DhqBkZiVRBEKOCtLeyqb1lrJvElYqIMOUYo/zlzqRV85MXXXN7ibhZLUwuJDrh8w24ATb6 ChLImHDbkhnSyfTMmscg0Wh0JbkMqaeEhFikVpYO+nSBFNuSPtXRIKf9e18hxUsRBLW15f PrWxym+Jo5/a0toDBjWRRV/lEmIWRCJWkaYdSDTSPDmYVuGXFrd4qNch3g7AaCSjEkYU2b UsbfuCvhegPtx66tbVgycFILsWoIfjQp1s08doR+F2d4oGdpMHVI7KI/YUypAoCdVH/QkK RvqbwI9SYTOki+0zBW/WTPl6C2v3CiV1jzJJzgc5LBo1PaSx3kahnD7dIkr4qw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XXJyY0S3jzbSS; Mon, 21 Oct 2024 15:24:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49LFOqOZ083988; Mon, 21 Oct 2024 15:24:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LFOqwU083985; Mon, 21 Oct 2024 15:24:52 GMT (envelope-from git) Date: Mon, 21 Oct 2024 15:24:52 GMT Message-Id: <202410211524.49LFOqwU083985@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: 05e687d5916a - stable/13 - igc: Add sysctls for some missing MAC stats List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 05e687d5916a83c1ba73edd0858e1939a21e1df7 Auto-Submitted: auto-generated The branch stable/13 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=05e687d5916a83c1ba73edd0858e1939a21e1df7 commit 05e687d5916a83c1ba73edd0858e1939a21e1df7 Author: Kevin Bowling AuthorDate: 2024-10-14 13:07:41 +0000 Commit: Kevin Bowling CommitDate: 2024-10-21 15:12:09 +0000 igc: Add sysctls for some missing MAC stats Sponsored by: BBOX.io (cherry picked from commit 09526a771afc411e641a3d04c905824fe8afc627) --- sys/dev/igc/if_igc.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c index d73b3a9aa510..50f26e1d6541 100644 --- a/sys/dev/igc/if_igc.c +++ b/sys/dev/igc/if_igc.c @@ -2492,6 +2492,10 @@ igc_update_stats_counters(struct igc_adapter *adapter) adapter->stats.roc += IGC_READ_REG(&adapter->hw, IGC_ROC); adapter->stats.rjc += IGC_READ_REG(&adapter->hw, IGC_RJC); + adapter->stats.mgprc += IGC_READ_REG(&adapter->hw, IGC_MGTPRC); + adapter->stats.mgpdc += IGC_READ_REG(&adapter->hw, IGC_MGTPDC); + adapter->stats.mgptc += IGC_READ_REG(&adapter->hw, IGC_MGTPTC); + adapter->stats.tor += IGC_READ_REG(&adapter->hw, IGC_TORH); adapter->stats.tot += IGC_READ_REG(&adapter->hw, IGC_TOTH); @@ -2732,6 +2736,9 @@ igc_add_hw_stats(struct igc_adapter *adapter) SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "missed_packets", CTLFLAG_RD, &adapter->stats.mpc, "Missed Packets"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "recv_length_errors", + CTLFLAG_RD, &adapter->stats.rlec, + "Receive Length Errors"); SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "recv_no_buff", CTLFLAG_RD, &adapter->stats.rnbc, "Receive No Buffers"); @@ -2768,6 +2775,18 @@ igc_add_hw_stats(struct igc_adapter *adapter) SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "xoff_txd", CTLFLAG_RD, &adapter->stats.xofftxc, "XOFF Transmitted"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "unsupported_fc_recvd", + CTLFLAG_RD, &adapter->stats.fcruc, + "Unsupported Flow Control Received"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "mgmt_pkts_recvd", + CTLFLAG_RD, &adapter->stats.mgprc, + "Management Packets Received"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "mgmt_pkts_drop", + CTLFLAG_RD, &adapter->stats.mgpdc, + "Management Packets Dropped"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "mgmt_pkts_txd", + CTLFLAG_RD, &adapter->stats.mgptc, + "Management Packets Transmitted"); /* Packet Reception Stats */ SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "total_pkts_recvd",