Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2024 21:53:52 GMT
From:      Arthur Kiyanovski <akiyano@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4526ef3d05dd - stable/14 - ena: Change measurement unit of time since last tx cleanup to ms
Message-ID:  <202401142153.40ELrqsU041484@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by akiyano:

URL: https://cgit.FreeBSD.org/src/commit/?id=4526ef3d05dd469f5f61d22783a861d9db5c56fd

commit 4526ef3d05dd469f5f61d22783a861d9db5c56fd
Author:     Arthur Kiyanovski <akiyano@amazon.com>
AuthorDate: 2023-06-14 10:12:16 +0000
Commit:     Arthur Kiyanovski <akiyano@FreeBSD.org>
CommitDate: 2024-01-14 21:18:10 +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.
    
    (cherry picked from commit 9272e45c04c0d4fcb5d767e962783f3ab192f64e)
---
 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);
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401142153.40ELrqsU041484>