From nobody Tue Sep 24 10:04:21 2024 X-Original-To: dev-commits-src-main@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 4XCb795xCPz5XbcX; Tue, 24 Sep 2024 10:04:21 +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 4XCb795NF6z4xJH; Tue, 24 Sep 2024 10:04:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727172261; 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=N/Az2+hEVY9dm7EqGNecfi5Qs5v2VX2UW+jgma/07Yo=; b=oIxcDMADq3u48dGyTuXGrl7Kr01yJRXPA5FRvHY6toZ5vBmuMmI3Dq9jUAGSa9cArIpUiS k7kxFvnw99qQBTR89vdRsP3o+ywoet7OYbEOGQN6d1rBL+uw7j99hVuAAm7AC5rN4SdRgW PrtStT20DXoNh9Qh4wVsR6V9Ivpf5TOluL0IClCxrrVa9dh2pQHUrXzkOnyhsyrD42bfaR WtJ97TyYNWFzwUsXrEMtR2FP8TEL8rjW253z3ZiNeIdhnxYexzCzsCjCvwdY7f8T2Bwmp1 s8JIbBGM3upYXBOaeOyS2iSsduiqC3DytDzeGQABkQwRXHxtXzWu32Wj0FdKYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727172261; a=rsa-sha256; cv=none; b=XXwhuE1qxvZHJlFOsNlKEitSA5I7Dzb4KApdRQ6B3a0FrCRCxZB5WuLjfKp3rLTa0J6AOD nfLqV4yoa4YLckK8avYuA/2RJAlA3wBY/3eGH5ZuegOj/97Iaa4PwT1daDkKeO3/GTr8LF 7WvNJNDa+D9mWafmn4Br8aPEj+Rg2ZcZ6oAVIgJdLP6RpTQzfOqXL2k6vNo1W2Ni+erJ53 r0vY2a0FNpl2BmLQuLo54o1fUFPFl8jyB+r0DxxVmZsebN0S932lRRylK90PBgBP+tULZ1 LvOATxLJcB6cM3jdGn1F1T6xtTdpw87wZeAuD+35DLhjWYyDWddyqTBV1fBHlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727172261; 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=N/Az2+hEVY9dm7EqGNecfi5Qs5v2VX2UW+jgma/07Yo=; b=X0SbZIsyXON8E3V3/ztZmz0KG9GgWM+ofjGruOx/M1zwxoi/xPjzTt9gqJ/QNnBeTRBHrx 3i79SHeCfId9EsV+Utg6ULUQHtsOPsULkK2YDWzaIXgIz+E7VdtAXN1S+kUo6DWMfY3JPR sGlgY2YxXA1lxCBtp0keCCR6Huf0L+PT4TFpS8zk/iw2aw/1th5xhux0OnI32PQ3D5+qm4 p4Fklnkxcq0h0szLYTY40uB+YHrma/UCHDU4LuOWMz9474y7BCxOQN+ARplBRJxln0bfg2 A4v5nhvIsKgWtLzmkpp7qmuUVIjCjOJYt/LIL9mbly+olrxwX5QcZlYtG4Z1iA== 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 4XCb7949pyzPVR; Tue, 24 Sep 2024 10:04:21 +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 48OA4LdG058837; Tue, 24 Sep 2024 10:04:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48OA4Laa058834; Tue, 24 Sep 2024 10:04:21 GMT (envelope-from git) Date: Tue, 24 Sep 2024 10:04:21 GMT Message-Id: <202409241004.48OA4Laa058834@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: aa7d086ad946 - main - e1000: Add sysctls for some missing MAC stats List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: aa7d086ad94642fa40375db9976177fc9e54a2cf Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=aa7d086ad94642fa40375db9976177fc9e54a2cf commit aa7d086ad94642fa40375db9976177fc9e54a2cf Author: Kevin Bowling AuthorDate: 2024-09-24 09:39:33 +0000 Commit: Kevin Bowling CommitDate: 2024-09-24 10:00:18 +0000 e1000: Add sysctls for some missing MAC stats MFC after: 1 week Sponsored by: Blue Box Systems --- 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",