From nobody Mon Oct 14 13:08:22 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 4XRyGH15bmz5YXpj; Mon, 14 Oct 2024 13:08:23 +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 4XRyGH0Zd9z483c; Mon, 14 Oct 2024 13:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728911303; 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=EePlnJPOAnUduAQK2uNoGr+J/hEdfDfH+7J5oAdkkIE=; b=mAp/ijS4eUBmluLTOcLKwSmMRrMQ8U5stEND88IAZaNrXMfj57qx5EKqVZmDD85Nynj2Hd oJQHW+To6BfBDoug7y/9Ju2ibQ3Sdkjw2OA7ShwHfKzh9/dMNIln3oIqUIKVLo3xwTlReM JqBMZrbv5liysvp+PQYHTH7cVMXFCasJ1B2d+/4XU7AWJeGlrCSfmNC9LJFaPUOQ4RfwrC +2p47KBlfYKxbycXszA5SWU7fnygTcT0yhw2rSFYtQkYiIxwnw7MDNCRAv4cZRutBH04ew TEeItQJZCSUzBAIwvCx0cBZLnraVctHNWpklGRPRHjC7A6Sk8t6spUBA/+JvQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728911303; 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=EePlnJPOAnUduAQK2uNoGr+J/hEdfDfH+7J5oAdkkIE=; b=VDFDJdlm9ysn8c2AWlOu4mYr1HcxHM3zs4dipDEwpicbI5xBGHPAs9FcVz9b4yrwFWTjQG rEKmSctEAzF6Zld9q+8/N69qe4nRYmqjrYyx7vvY9R7+0ZHulQM9vAf/7yuV2AORlY6VHb +tWoreRTUBxiwpH+guCtpEtp8QupJlrN/1KF1alZ6gk/tUxu+Gk5TqOtCsWMQAHVzvJUSe CqzwYidho7+F4B1Tb27j327vhFD21g0V0Yh8ceRfP/aTkD8Tt8raSN6/p2PbxRiGX427co +uidOSOwNiD/v0VpyyzsfRov7MtYgu/tinVB2JzWUutFfYvMBYXKVnxFYybH4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728911303; a=rsa-sha256; cv=none; b=BrlRRNQDmRaGNQiBAaXDhe3ChaAWLuKaONpT1+L6PO76l5HZcVpWjZUvP+WfCy/rzl9JUO Ag82W2t37Zs49gRnnJ+BglaWejqtc9H81L/HgXyOkj1dy/M3fhnSj2vDZik66p3SVOecae IWQ0RjlgH079HPIeN9MvDjluq3kD2zbIK1PiNDuJ9UpNdX/UWvGN8sCc1jjSveqPiyym6B c7bqXuJzzo8hCFNKQGr4lhNb46BQ9obBoV2VnqtylctQHzd0AdOW6+mw+g89/fvjJRRUSD CxYzE1oGxay+uLjfNg7oM4KrvajcgBin5MWOGdU8e+hCFeOISXgs+FZeJH9xQw== 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 4XRyGH05wyzdwG; Mon, 14 Oct 2024 13:08:23 +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 49ED8MZ3041275; Mon, 14 Oct 2024 13:08:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49ED8Mv3041272; Mon, 14 Oct 2024 13:08:22 GMT (envelope-from git) Date: Mon, 14 Oct 2024 13:08:22 GMT Message-Id: <202410141308.49ED8Mv3041272@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 09526a771afc - main - 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/main X-Git-Reftype: branch X-Git-Commit: 09526a771afc411e641a3d04c905824fe8afc627 Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=09526a771afc411e641a3d04c905824fe8afc627 commit 09526a771afc411e641a3d04c905824fe8afc627 Author: Kevin Bowling AuthorDate: 2024-10-14 13:07:41 +0000 Commit: Kevin Bowling CommitDate: 2024-10-14 13:07:41 +0000 igc: Add sysctls for some missing MAC stats MFC after: 1 week Sponsored by: BBOX.io --- 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",