mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 11:16:33 +00:00
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.
This commit is contained in:
parent
f9e1d94710
commit
9272e45c04
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue