From nobody Wed Oct 05 23:48:29 2022 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 4MjWVP3Dsmz4TyCY; Wed, 5 Oct 2022 23:48:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjWVP2fN7z3R6F; Wed, 5 Oct 2022 23:48:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665013709; 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=CkwaYRTylUwiLEcfG7bFWhziaigjOFAbxrwGoEwJYGc=; b=yMdI+ytxIwxb9zvJg51Rg/xgULbdR0a9uCt4mNqRLIKSFmlZLektkXcMu/wGmV44oXVeXn kcpHpmJG0LG0tsNzF3RUP/xovtYuFeGGB1yNawPFB5CVZzVmhf9NPrjdxFtJ+lYwtPhOQn 1ZGpzeZV/cc0AXnaTVrlmf5RtIVX42BVvr96XEgBxs8FbN9zmqrz5R00gDS0IL1rjurbe3 i7oCcQfnaZYSlVMV8OjaG9qJORMU8VnCXJLgrt6VhRJ47SDcZ4U6da4fUYmI3gE5i9dmBU SQP2uyCFAjQUWarkshJ96tdWdFS1MUwFqD/JWYJ9McE+oieRBYeMNCC/dWjXWw== 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 4MjWVP1g9fz14H0; Wed, 5 Oct 2022 23:48:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 295NmTUi087206; Wed, 5 Oct 2022 23:48:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 295NmTTU087205; Wed, 5 Oct 2022 23:48:29 GMT (envelope-from git) Date: Wed, 5 Oct 2022 23:48:29 GMT Message-Id: <202210052348.295NmTTU087205@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: aabbe26939be - main - msk: Don't bother reading spare stats registers. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aabbe26939be63615e371a91f87eeea8b177f728 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665013709; 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=CkwaYRTylUwiLEcfG7bFWhziaigjOFAbxrwGoEwJYGc=; b=nufZH5aH3IZNCt32xULFDoZf/ohGWYENcDXrFtSE0QVhY1CDmwy0YhNgeKxwnhVIQKATox y9epwTiPklefiy9+ApPyzmQCAc0OKUT3njT6GHAjhdnAURUw3pZZIB7uF2qri1ISHsvrIC pT67IF/pZNOCziFqHEaquFB9mmFiMrltdi69UmAk7pis5OLamcTLrqgXBjm8Moc/TX7C/f 8SvUvqIm/xnkj5h5M/a+boR3qDKDUqkVQIKiPctc/TcbM8DQYKXk8CJ5j8EttZZDFQ6Sfw K5HmPokK+Iua/xrofyW2L9wBAosQFZixBZRcqMESySz1uECiyngQKxmxWtHgYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665013709; a=rsa-sha256; cv=none; b=aZNpGzhpZjSSuxRv1EaHlcjuhQNuS1SBv5gLSs42puyRzpKmZgCytzPWNNu2vuyaLYmPvr T9PkXBBYUg2DecHqVKwEuZTXv46AAFnrR5P5VmVi+qaBgj0KnOYLCz4DDpM7jXtg14tpRE y2hrHzyRlT43DJu9KX67vD6PuJsAbIRSEzHQWFWlbrWWi7HYIc8+07Vr3OtbM397YWZbSo TAPvyT7U6Wougxd+XtyBcFTCikcHlEPj6zHZLhmPgpSdCKCuKEamGd9DaFebme7i8ki4Vh NeFHlas+IKIyf1zvhXmH+ZfUn/usgqWv7y6f9OtblXFY9iJFTpLu51kZV7OdOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=aabbe26939be63615e371a91f87eeea8b177f728 commit aabbe26939be63615e371a91f87eeea8b177f728 Author: John Baldwin AuthorDate: 2022-10-05 23:45:43 +0000 Commit: John Baldwin CommitDate: 2022-10-05 23:45:43 +0000 msk: Don't bother reading spare stats registers. msk_stats_update reads stats registers named "spare" whose values are discarded. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36871 --- sys/dev/msk/if_msk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index 3ca1bc431ccf..15b9131a2c79 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -4354,7 +4354,6 @@ msk_stats_update(struct msk_if_softc *sc_if) MSK_READ_MIB32(sc_if->msk_port, GM_RXF_MC_OK); stats->rx_crc_errs += MSK_READ_MIB32(sc_if->msk_port, GM_RXF_FCS_ERR); - MSK_READ_MIB32(sc_if->msk_port, GM_RXF_SPARE1); stats->rx_good_octets += MSK_READ_MIB64(sc_if->msk_port, GM_RXO_OK_LO); stats->rx_bad_octets += @@ -4381,10 +4380,8 @@ msk_stats_update(struct msk_if_softc *sc_if) MSK_READ_MIB32(sc_if->msk_port, GM_RXF_LNG_ERR); stats->rx_pkts_jabbers += MSK_READ_MIB32(sc_if->msk_port, GM_RXF_JAB_PKT); - MSK_READ_MIB32(sc_if->msk_port, GM_RXF_SPARE2); stats->rx_fifo_oflows += MSK_READ_MIB32(sc_if->msk_port, GM_RXE_FIFO_OV); - MSK_READ_MIB32(sc_if->msk_port, GM_RXF_SPARE3); /* Tx stats. */ stats->tx_ucast_frames += @@ -4411,7 +4408,6 @@ msk_stats_update(struct msk_if_softc *sc_if) MSK_READ_MIB32(sc_if->msk_port, GM_TXF_1518B); stats->tx_pkts_1519_max += MSK_READ_MIB32(sc_if->msk_port, GM_TXF_MAX_SZ); - MSK_READ_MIB32(sc_if->msk_port, GM_TXF_SPARE1); stats->tx_colls += MSK_READ_MIB32(sc_if->msk_port, GM_TXF_COL); stats->tx_late_colls +=