From nobody Wed Oct 02 19:53:17 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 4XJlq15NJcz5Y1Rq; Wed, 02 Oct 2024 19:53:17 +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 4XJlq14pHwz4Xm8; Wed, 2 Oct 2024 19:53:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898797; 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=qLvi/ICzF+SIaG1X+j+gNN5xaEr6eIWpbwC/sclZkgQ=; b=VJVQjVLJdU4CYY1GiO4Pj5YOZIbXHb7I5zqzFfi6uDIgQ2C8bYe3aC2wAqeA868LTTsvrs phRe01HBpP9RV07GW20bxPKy7DXdfn/oSO+y3EzPfnHy26UDn+dTBzMYoOT9z796/orXYx tBqM9sHxz/aqt7ciVcE0ijsXHX9ZjGkB9XEttseyYTfpb7VVXIWBIGA4e0y2Bxqr+lSfYy 2MxEVddGmlBRszzuHCq91/651RHuiDebYzByTpBbqZY86DROdR+BEk4UM9dyP46FUjYUkH NWOR72G9ajGgU41myyNrO65IrsyC+3H+/Xxsbp4hwoorps1r9oc4b5EzUiPJSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727898797; 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=qLvi/ICzF+SIaG1X+j+gNN5xaEr6eIWpbwC/sclZkgQ=; b=jvBKpZC+EZKa6Or4c/Tvh+E+w7vRR55PSe6X+t25zA5soijRmj9Hye5S/TbMV3f3XY85aQ 8BKkqKb1ARaqpTH3FgAkRmLsgFm1CswMpEX8saFNuFXJSdUpdawXasGFBjq7F2rKA1JBLB wINpA/LIJVkl07vwCbkg08VrzPlQ2CVPgNAvuH5xMrcSnd6Fd9QGYZRLTGI36WTQ+HcDol p8xs+SEBMRgOzl8V/HuQKKZMPAwA1RF+VQHmerdOjpdGthGZ9UXIzbYboCxm4ZPW1VlDv7 YQ316ieYJx2Nc7DtIctIVVYR6jLMuof0mrPwC3N7QDfyrdexSF5IWdxUlqwFbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727898797; a=rsa-sha256; cv=none; b=XZK4aQWcnjrQpKVCKMFL/zK3RtYrYR9Wl67wO5cJmiPjPNVAeqP+k4lKCaK7Vshd0g0Oon QUX4vvc+msCazDOS5T36/Q2dufTGMvSYTCKOh7wqwS9r6YRxDU1xx2v5pO9qrxionATW2L aPXJZ2linbb2A/j7URbaqCRa21ctULcrZO8Ww83QDi3SrG6TS7EU8vv4V1v+mkKJjOKTTH vsEzvnQkhB85o8ogS3XSCnvBe7275cSZgFrtwNyYF7Hskl/zuAExSpKAew7kVQ8sKowBYp ufFZrp/Cu2EwfkYzDuJmCszn0UiCheMbDCFt3MQISjMF61gXBYfx19qK/cXFzQ== 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 4XJlq145g4zKcD; Wed, 2 Oct 2024 19:53:17 +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 492JrHnO060486; Wed, 2 Oct 2024 19:53:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492JrHao060483; Wed, 2 Oct 2024 19:53:17 GMT (envelope-from git) Date: Wed, 2 Oct 2024 19:53:17 GMT Message-Id: <202410021953.492JrHao060483@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: 2726df27627b - stable/14 - e1000: 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: 2726df27627b4674246db5e56cb3ec98f797b587 Auto-Submitted: auto-generated The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=2726df27627b4674246db5e56cb3ec98f797b587 commit 2726df27627b4674246db5e56cb3ec98f797b587 Author: Kevin Bowling AuthorDate: 2024-09-24 09:39:33 +0000 Commit: Kevin Bowling CommitDate: 2024-10-02 19:51:43 +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 e2d8535143ef..5fb46c9f6dce 100644 --- a/sys/dev/e1000/if_em.c +++ b/sys/dev/e1000/if_em.c @@ -4304,6 +4304,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); @@ -4520,6 +4524,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"); @@ -4560,6 +4567,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",