* How can I test ndo_tx_timeout()?
@ 2016-05-26 20:40 Timur Tabi
2016-05-26 21:34 ` Florian Fainelli
0 siblings, 1 reply; 3+ messages in thread
From: Timur Tabi @ 2016-05-26 20:40 UTC (permalink / raw)
To: netdev
Is there an easy way to test my driver's response to a
ndo_tx_timeout() call? That is, force dev_watchdog() to think that a
timeout has occurred?
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I test ndo_tx_timeout()?
2016-05-26 20:40 How can I test ndo_tx_timeout()? Timur Tabi
@ 2016-05-26 21:34 ` Florian Fainelli
2016-05-26 22:33 ` Timur Tabi
0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2016-05-26 21:34 UTC (permalink / raw)
To: Timur Tabi, netdev
On 05/26/2016 01:40 PM, Timur Tabi wrote:
> Is there an easy way to test my driver's response to a
> ndo_tx_timeout() call? That is, force dev_watchdog() to think that a
> timeout has occurred?
>
One way to do this could be to never reclaim the SKBs you just
transmitted which could be achieved by disabling the TX completion
interrupt permanently for instance. Alternatively you might stop your tx
queue, avoid checking for this condition (netif_tx_queue_stopped..) and
still try to push SKBs and transmit them, combining the two should be
fairly effective.
There could be better ways to test that, though these would at least try
to reproduce real world scenarios where transmit flow control is broken.
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I test ndo_tx_timeout()?
2016-05-26 21:34 ` Florian Fainelli
@ 2016-05-26 22:33 ` Timur Tabi
0 siblings, 0 replies; 3+ messages in thread
From: Timur Tabi @ 2016-05-26 22:33 UTC (permalink / raw)
To: Florian Fainelli, netdev
Florian Fainelli wrote:
> One way to do this could be to never reclaim the SKBs you just
> transmitted which could be achieved by disabling the TX completion
> interrupt permanently for instance.
Thanks, that was the the trick.
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum, a Linux Foundation collaborative project.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-26 22:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26 20:40 How can I test ndo_tx_timeout()? Timur Tabi
2016-05-26 21:34 ` Florian Fainelli
2016-05-26 22:33 ` Timur Tabi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).