Skip to content

Commit a861594

Browse files
committed
ntb_netdev: fix sleep time mismatch
The tx_time should be in usecs (according to the comment above the variable), but the setting of the timer during the rearming is done in msecs. Change it to match the expected units. Fixes: e74bfee ("NTB: Add flow control to the ntb_netdev") Suggested-by: Gerd W. Haeussler <gerd.haeussler@cesys-it.com> Signed-off-by: Jon Mason <jdmason@kudzu.us> Acked-by: Dave Jiang <dave.jiang@intel.com>
1 parent 84df952 commit a861594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ntb_netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static void ntb_netdev_tx_timer(struct timer_list *t)
236236
struct net_device *ndev = dev->ndev;
237237

238238
if (ntb_transport_tx_free_entry(dev->qp) < tx_stop) {
239-
mod_timer(&dev->tx_timer, jiffies + msecs_to_jiffies(tx_time));
239+
mod_timer(&dev->tx_timer, jiffies + usecs_to_jiffies(tx_time));
240240
} else {
241241
/* Make sure anybody stopping the queue after this sees the new
242242
* value of ntb_transport_tx_free_entry()

0 commit comments

Comments
 (0)