From nobody Wed Oct 02 19:54:50 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 4XJlrp2V5Pz5Y1BR; Wed, 02 Oct 2024 19:54:50 +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 4XJlrp1y9cz4Z1x; Wed, 2 Oct 2024 19:54:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898890; 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=e+2yUzSZgO15uSDfX3JJBPbPYTEAMsfv3uP0bip2Gy0=; b=oMsqs5V2UnJ+TezWsMjvzxYyJDviXwRFNLoK3NeHuhKZTLhdZd6DKVa55tywgm8LiWM6EF jMCA/QQCmK8xDP03RzovpHMig9XQAMMpFdz5dCtaRqwAioNDZ2RM/uKk4Mr9gqUfhbUMYQ QR9R78pJdfKDwdJsinjBCrxGxbS43x/TrrW3b0FjVOUsFs/AyqVst8EUmt3VW7MclBQFzC Ztzav/qIU4eUnd/YYZGz9jbq9hbLWqecNodgY0ytWWqJsAKGxFg0E6oGs+Fw1b/O3sU/24 lM6ED4ZntetE3vlUKBT9t8OfrqSJg+/hTmK5nzbx3zkldJY4NfHhNPMSKz2ysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898890; 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=e+2yUzSZgO15uSDfX3JJBPbPYTEAMsfv3uP0bip2Gy0=; b=yeMgwYXiDG2bVy+v5QA4UJlAUyUtWRuSAhCMSOwKjo6s/eCYDL3yLgLDMAvkD46crC+2kq NaQEYoYAFSLbZBZwac7XS324uq5ppPXdnX22lq/yYmJRtfH587eaI9wR7ph/IiTq97Owdz Y2t/rcqHBF659CU2xrO70GQQoP+YY6pMpxa4plNjRBuPA1ksIJmNKDwKGDfr6WW8w0He1u s+F+pToSkDU9RolE7e1LZLmEkOmj0oY4MXpfGRiOJZqQhpRDwSJ2tPz7j0ygunUp1YEHCj E+IZ5saR5m8kYCQ9OaWSZsIxARL78G+Cvme36vcv8fTWtvoaslLBRR6t7FP+UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727898890; a=rsa-sha256; cv=none; b=WN8O3cbYRZYxi5BY9YAeffiTv8QFiEqgbF4lXKORqMg+Hfi3AC5TANvAb61k7vcnxE/9Lf P6mEZp8bh2vRySe22q+HPitYI93wTX+kkNWQeI4s1ArmpvjYFctkWKQ5JFglyiLMDVDkzQ I72MSCxFANoYHnGGhAYX4qKYSyi62JnjDgKsq7XzN/9JzvoPzbQyHKVa/pXkNlPMSFkzyZ do4bfXSyOXm96mZ5S7VaoRGn5F3U0ys61kOIWa8y24EnQjvKU4tvADXN2nab+aut3q4H2J cySe7kuakhPcNGCtSQGTmLcgK9i5X+X5/U8ngjTC0FPFeRMP/OdrrH8orazH6A== 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 4XJlrp1PWJzJnj; Wed, 2 Oct 2024 19:54:50 +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 492Jsow2061142; Wed, 2 Oct 2024 19:54:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492Jso4D061139; Wed, 2 Oct 2024 19:54:50 GMT (envelope-from git) Date: Wed, 2 Oct 2024 19:54:50 GMT Message-Id: <202410021954.492Jso4D061139@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: e86189c62b22 - stable/13 - e1000: 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: e86189c62b22e7ec2bde6ea2cdbc4e356307cbc2 Auto-Submitted: auto-generated The branch stable/13 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=e86189c62b22e7ec2bde6ea2cdbc4e356307cbc2 commit e86189c62b22e7ec2bde6ea2cdbc4e356307cbc2 Author: Kevin Bowling AuthorDate: 2024-09-24 09:39:33 +0000 Commit: Kevin Bowling CommitDate: 2024-10-02 19:54:34 +0000 e1000: Add sysctls for some missing MAC stats Sponsored by: Blue Box Systems (cherry picked from commit aa7d086ad94642fa40375db9976177fc9e54a2cf) --- sys/dev/e1000/if_em.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c index bf612d465ef0..97b298d2ec6f 100644 --- a/sys/dev/e1000/if_em.c +++ b/sys/dev/e1000/if_em.c @@ -4306,6 +4306,10 @@ em_update_stats_counters(struct e1000_softc *sc) sc->stats.roc += E1000_READ_REG(&sc->hw, E1000_ROC); sc->stats.rjc += E1000_READ_REG(&sc->hw, E1000_RJC); + sc->stats.mgprc += E1000_READ_REG(&sc->hw, E1000_MGTPRC); + sc->stats.mgpdc += E1000_READ_REG(&sc->hw, E1000_MGTPDC); + sc->stats.mgptc += E1000_READ_REG(&sc->hw, E1000_MGTPTC); + sc->stats.tor += E1000_READ_REG(&sc->hw, E1000_TORH); sc->stats.tot += E1000_READ_REG(&sc->hw, E1000_TOTH); @@ -4522,6 +4526,9 @@ em_add_hw_stats(struct e1000_softc *sc) SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "missed_packets", CTLFLAG_RD, &sc->stats.mpc, "Missed Packets"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "recv_length_errors", + CTLFLAG_RD, &sc->stats.rlec, + "Receive Length Errors"); SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "recv_no_buff", CTLFLAG_RD, &sc->stats.rnbc, "Receive No Buffers"); @@ -4562,6 +4569,18 @@ em_add_hw_stats(struct e1000_softc *sc) SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "xoff_txd", CTLFLAG_RD, &sc->stats.xofftxc, "XOFF Transmitted"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "unsupported_fc_recvd", + CTLFLAG_RD, &sc->stats.fcruc, + "Unsupported Flow Control Received"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "mgmt_pkts_recvd", + CTLFLAG_RD, &sc->stats.mgprc, + "Management Packets Received"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "mgmt_pkts_drop", + CTLFLAG_RD, &sc->stats.mgpdc, + "Management Packets Dropped"); + SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "mgmt_pkts_txd", + CTLFLAG_RD, &sc->stats.mgptc, + "Management Packets Transmitted"); /* Packet Reception Stats */ SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "total_pkts_recvd",