From nobody Mon Oct 21 15:11:12 2024 X-Original-To: dev-commits-src-branches@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 4XXJfn0zRnz5ZP14; Mon, 21 Oct 2024 15:11:13 +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 4XXJfm6Vfdz4ldB; Mon, 21 Oct 2024 15:11:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729523472; 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=5ApNoJXJwNBhc86ls5yK9tUd1aoCxSwxlF3Ald+qI7U=; b=W4WllvbFXklDuOAhgcrS3Hp7apdR2Efh9Mnb1t22ncpyaqpQ6M7aPELgV7PGLs+SDh5u6f zYZYwpyRRXPvk1LCULKutRb2/sBLEeLlvLRZu0AkbzpksHbXKr4rVWn9rOQ7TaEnTNaAoD cYYd7xGXmd87oseDQS9ovwHmgdvrJnttr4hDOotXdGF+1l0BYIu+Qp1U89laokfroTLOvG xkQCgD9V8NuiwRAd2t7jap1EAlM9q6sJ/6pxiCCkU2pdJY/urKVMgJd9ajKunyhZ5u3xis RIzJIwf24zieQxfU4lCLFkMb8YNWZjlfqN5TH9Y9FP2v1s6lpdu8XJtIp7Q6Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729523472; 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=5ApNoJXJwNBhc86ls5yK9tUd1aoCxSwxlF3Ald+qI7U=; b=MogdLnS7QHt4dthQIEQw48FfvzzP0YoPgv+KXwiIZyYYCOV4sXXojW8VlccF3iy8hio4ye LeNgLtbl3Z7+z7IdsYuJEpxsatfCM3vgJmbJkgSsjFyq3N4atc+/j9eQIQfJbG6C3gREtR iISEHAC4EF6JsSa/U7DOPfroZWTcShgXbaQEieNYySyli5/S6ot0hkBWvIoVWdsqdW+dXJ TLZeyDzQ0U1CduTeXHVlqmR1WD6tzZdIDtmzqwLgsxtOuaTO6f7IXv6TVxZUHHVojqzLr9 SDZqMvjj/bWwDU54X6/t+FL5eBGM9TdPfgaMP47wBqh3E5Z5U33cs4qOmAiI6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729523472; a=rsa-sha256; cv=none; b=OaXu5Na/f+AyN70CZPoIq/D2zh1FGlpPRzcX7gBIi1NVwXOMwbKCtU4656muKzlYkIu12m GzxEgFfOe7zAe74VuQJ4P+Q5QkI3I87Cj0tro9QgCRb4xLHsvum8jVNQtuLyTYa0oGcA83 BeK1phbtu12h4grqA4DUwOyWbV7YzlxBUKBfeQBY+HfRUK6/+yog/hbeiOoKzZy1+VMgAb tBQj0QPVJHgD4rlUGtxxf9bELxqXExzIUyQFRc9l8lciTb2ws5Cx8EOv7xXFO5EVyOJg24 BjjJ7pT/ACwnb9Jg6eLnJl3mmPWQvmOcjaarW2lHqq8nLaZAvOzd57Q5u4Kr4A== 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 4XXJfm669vzbR2; Mon, 21 Oct 2024 15:11:12 +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 49LFBCZa060513; Mon, 21 Oct 2024 15:11:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LFBCkw060510; Mon, 21 Oct 2024 15:11:12 GMT (envelope-from git) Date: Mon, 21 Oct 2024 15:11:12 GMT Message-Id: <202410211511.49LFBCkw060510@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: 1dae98bc4bfd - stable/14 - igc: Add sysctls for some missing MAC stats List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/14 X-Git-Reftype: branch X-Git-Commit: 1dae98bc4bfdcdfa389e9b41098421316a26c87e Auto-Submitted: auto-generated The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=1dae98bc4bfdcdfa389e9b41098421316a26c87e commit 1dae98bc4bfdcdfa389e9b41098421316a26c87e Author: Kevin Bowling AuthorDate: 2024-10-14 13:07:41 +0000 Commit: Kevin Bowling CommitDate: 2024-10-21 15:09:51 +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 da897d636cfe..b927b9e3b260 100644 --- a/sys/dev/igc/if_igc.c +++ b/sys/dev/igc/if_igc.c @@ -2491,6 +2491,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); @@ -2731,6 +2735,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"); @@ -2767,6 +2774,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",