From: Dave Jiang <dave.jiang@intel.com>
To: Jon Mason <jdmason@kudzu.us>, linux-ntb@googlegroups.com
Subject: Re: [PATCH] ntb_netdev: fix sleep time mismatch
Date: Mon, 11 Jun 2018 13:50:26 -0700 [thread overview]
Message-ID: <d2083cc5-2254-e97a-37a1-b58777d53db2@intel.com> (raw)
In-Reply-To: <20180611203926.2666-1-jdmason@kudzu.us>
On 06/11/2018 01:39 PM, Jon Mason wrote:
> 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: e74bfeedad08 ("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>
> ---
> drivers/net/ntb_netdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ntb_netdev.c b/drivers/net/ntb_netdev.c
> index 9f6f7ccd44f7..306a662eba94 100644
> --- a/drivers/net/ntb_netdev.c
> +++ b/drivers/net/ntb_netdev.c
> @@ -236,7 +236,7 @@ static void ntb_netdev_tx_timer(struct timer_list *t)
> struct net_device *ndev = dev->ndev;
>
> if (ntb_transport_tx_free_entry(dev->qp) < tx_stop) {
> - mod_timer(&dev->tx_timer, jiffies + msecs_to_jiffies(tx_time));
> + mod_timer(&dev->tx_timer, jiffies + usecs_to_jiffies(tx_time));
> } else {
> /* Make sure anybody stopping the queue after this sees the new
> * value of ntb_transport_tx_free_entry()
>
next prev parent reply other threads:[~2018-06-11 20:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-11 20:39 [PATCH] ntb_netdev: fix sleep time mismatch Jon Mason
2018-06-11 20:50 ` Dave Jiang [this message]
2018-06-11 22:33 ` Logan Gunthorpe
2018-06-12 3:15 ` Jon Mason
2018-06-12 16:11 ` Logan Gunthorpe
2018-06-12 21:33 ` Eric Pilmore
2018-06-12 21:44 ` Logan Gunthorpe
2018-06-12 21:59 ` Eric Pilmore
2018-06-12 22:04 ` Logan Gunthorpe
2018-06-12 22:17 ` Dave Jiang
2018-06-12 22:27 ` Logan Gunthorpe
2018-06-12 22:55 ` Eric Pilmore
2018-06-13 0:04 ` Logan Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2083cc5-2254-e97a-37a1-b58777d53db2@intel.com \
--to=dave.jiang@intel.com \
--cc=jdmason@kudzu.us \
--cc=linux-ntb@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox