diff options
author | Arthur Kiyanovski <akiyano@amazon.com> | 2023-06-14 10:12:16 +0000 |
---|---|---|
committer | Arthur Kiyanovski <akiyano@FreeBSD.org> | 2024-01-14 07:43:22 +0000 |
commit | 6e9bfa8040b59409f6f4d3c963e2221d23487746 (patch) | |
tree | a4038328e5834b61326ef2e49c0d67191a5b2c09 | |
parent | 99c3944243a055f52611b2a65dcb87d08295da3b (diff) | |
download | src-6e9bfa8040b59409f6f4d3c963e2221d23487746.tar.gz src-6e9bfa8040b59409f6f4d3c963e2221d23487746.zip |
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)
-rw-r--r-- | sys/dev/ena/ena.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c index 7de87e6f3f4d..8b213b250ec7 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -3103,13 +3103,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); } |