From nobody Thu Dec 28 13:57:14 2023 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 4T196z1lpwz55tH6; Thu, 28 Dec 2023 13:57:15 +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 4T196z1CK7z4X2F; Thu, 28 Dec 2023 13:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703771835; 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=QXTgeNYppGkZ77GECQe+KUrub/OE1ajOjlFdWKpZhLA=; b=JNxCRBPo7uH0nmtKInEfxiId8zUZ6FHL9j1VtzSjZeKBpQ9ncoW4Phn4XnkLQLE4guJxZF ngP9eiDr6vEIOwycl0GGrT54NtNhXKZNdWzulCb86ku+ivIjxNNWCOchqxihQwnbesvR96 gKUN4eOtZFj0A9m7txa0wpclaZoqhIo27V7mXc3wSLzVkrzsFktqbkvrmqal1lxDZL3WOM 20/b8hg/MlL/Cnx7uIiLaAhthlgo9vLocsLCMm15zpHk/RjldLjEuKmr5/GkkN0TDTcqXO 9PC1uinykQ6fxvjdj8os7aEW4YN13J7LxL7SECtMPUiu2UIDwSA7F9evry2zoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703771835; a=rsa-sha256; cv=none; b=TqM/khSauEoDF+X0uGy0RWfcSYRvR57BdcGzMHlQhjTH0Cm9lX+ORvVGzcj/J9r08t1/zh 6M/e34kICiC3PiC+gi3rfl42qY4DRObWRRoEMarcSjZ62qKrBeV3A1jTU9EzC/tNnQGaaJ +TZcqDQep/qfHSW+AqulvCBVyYPBn/yuwU69k1qf6qU5bX9wvuUGh6ESaRP2ZtTdRok8mL t4PqrSQY9r8GF6CHnmYUIJlPVmbf6PGHK77m4j3vtJHlK/uJC+5sqqFBrfr6zU+vQIV7PI ZTbABh8E9O+ALU4IVzmnTb645DBr+3EbBGid424i7SaHfx4HeAYaZpi7jbSYtA== 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=1703771835; 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=QXTgeNYppGkZ77GECQe+KUrub/OE1ajOjlFdWKpZhLA=; b=lJw6y2ZWNuRCksAe6JBc6O16QtLov3tu3fKf9qZEuBcX1huAZDbl7O8tJjWThONDH5SRm5 RkETSQ6Vrj5OhPEfVdlREZzlR2Du3N9NdgWP8fN9k3nOvhJSeo7aLo/68n8evXgsvb6Kgb Pn94abRn5QjBWSERTTy5ZK0fV2DTcOR1sqmhMlrdiZRe8joN7a5cW9aPEgx2AhuKsOZhNN NgTW48GlFs541I67yRyLnK29L2i8CjdvO49QQ/kDzxrT2HBUKxHd6yOee7U0ZexmUBBv6s L56JjZGbR0Vl/UZTVBNuUdkRHOWx79SmS7sAZqt5yltD5gj+3+1cfh+h78qMUg== 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 4T196z04zcz9yv; Thu, 28 Dec 2023 13:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BSDvE0t036039; Thu, 28 Dec 2023 13:57:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BSDvEgR036036; Thu, 28 Dec 2023 13:57:14 GMT (envelope-from git) Date: Thu, 28 Dec 2023 13:57:14 GMT Message-Id: <202312281357.3BSDvEgR036036@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Arthur Kiyanovski Subject: git: 9272e45c04c0 - main - ena: Change measurement unit of time since last tx cleanup to ms 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: akiyano X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9272e45c04c0d4fcb5d767e962783f3ab192f64e Auto-Submitted: auto-generated The branch main has been updated by akiyano: URL: https://cgit.FreeBSD.org/src/commit/?id=9272e45c04c0d4fcb5d767e962783f3ab192f64e commit 9272e45c04c0d4fcb5d767e962783f3ab192f64e Author: Arthur Kiyanovski AuthorDate: 2023-06-14 10:12:16 +0000 Commit: Arthur Kiyanovski CommitDate: 2023-12-28 13:55:57 +0000 ena: Change measurement unit of time since last tx cleanup to ms This commit: 1. Sets the time since last cleanup to milliseconds. 2. Fixes incorrect indentations. Approved by: cperciva (mentor) MFC after: 2 weeks Sponsored by: Amazon, Inc. --- sys/dev/ena/ena.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c index 067c8a6f3a08..ba1712093a7a 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -3102,13 +3102,13 @@ check_missing_comp_in_tx_queue(struct ena_adapter *adapter, if (unlikely(time_offset > adapter->missing_tx_timeout)) { if (tx_buf->print_once) { - time_since_last_cleanup = TICKS_2_USEC(ticks - + time_since_last_cleanup = TICKS_2_MSEC(ticks - tx_ring->tx_last_cleanup_ticks); missing_tx_comp_to = sbttoms( adapter->missing_tx_timeout); ena_log(pdev, WARN, "Found a Tx that wasn't completed on time, qid %d, index %d. " - "%d usecs have passed since last cleanup. Missing Tx timeout value %d msecs.\n", + "%d msecs have passed since last cleanup. Missing Tx timeout value %d msecs.\n", tx_ring->qid, i, time_since_last_cleanup, missing_tx_comp_to); }