diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2010-10-29 17:26:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:25:32 -0500 |
commit | e4a668c59080f862af3ecc28b359533027cbe434 (patch) | |
tree | d9be11d5be940d49dfbb1f03c381c58799c9f78c /drivers/net/wireless/ath/carl9170/carl9170.h | |
parent | e27769059ccb15273a7eb69ed31b8e08f9b0eda8 (diff) |
carl9170: fix spurious restart due to high latency
RX Stress tests of unidirectional bulk traffic with
bitrates of up to 220Mbit/s have revealed that the
fatal-event recovery logic [which was solely triggered
by an out-of-rx-buffer situation] is too aggressive.
The new method now "pings" the device and then
decides - based on the response - whenever
a restart is needed or not.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/carl9170.h')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/carl9170.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/carl9170/carl9170.h b/drivers/net/wireless/ath/carl9170/carl9170.h index b69d31972c77..d07ff7f2fd92 100644 --- a/drivers/net/wireless/ath/carl9170/carl9170.h +++ b/drivers/net/wireless/ath/carl9170/carl9170.h | |||
@@ -215,7 +215,7 @@ enum carl9170_restart_reasons { | |||
215 | CARL9170_RR_TOO_MANY_FIRMWARE_ERRORS, | 215 | CARL9170_RR_TOO_MANY_FIRMWARE_ERRORS, |
216 | CARL9170_RR_WATCHDOG, | 216 | CARL9170_RR_WATCHDOG, |
217 | CARL9170_RR_STUCK_TX, | 217 | CARL9170_RR_STUCK_TX, |
218 | CARL9170_RR_SLOW_SYSTEM, | 218 | CARL9170_RR_UNRESPONSIVE_DEVICE, |
219 | CARL9170_RR_COMMAND_TIMEOUT, | 219 | CARL9170_RR_COMMAND_TIMEOUT, |
220 | CARL9170_RR_TOO_MANY_PHY_ERRORS, | 220 | CARL9170_RR_TOO_MANY_PHY_ERRORS, |
221 | CARL9170_RR_LOST_RSP, | 221 | CARL9170_RR_LOST_RSP, |
@@ -287,6 +287,7 @@ struct ar9170 { | |||
287 | 287 | ||
288 | /* reset / stuck frames/queue detection */ | 288 | /* reset / stuck frames/queue detection */ |
289 | struct work_struct restart_work; | 289 | struct work_struct restart_work; |
290 | struct work_struct ping_work; | ||
290 | unsigned int restart_counter; | 291 | unsigned int restart_counter; |
291 | unsigned long queue_stop_timeout[__AR9170_NUM_TXQ]; | 292 | unsigned long queue_stop_timeout[__AR9170_NUM_TXQ]; |
292 | unsigned long max_queue_stop_timeout[__AR9170_NUM_TXQ]; | 293 | unsigned long max_queue_stop_timeout[__AR9170_NUM_TXQ]; |