diff options
author | Matt Mackall <mpm@selenic.com> | 2005-08-11 22:25:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-08-11 22:25:54 -0400 |
commit | 0db1d6fc1ea051af49ebe03c503d23996a7c5bbb (patch) | |
tree | 6afab02002a46b045a3b8769342ad277402f0d95 /include | |
parent | f0d3459d0722782c7d9d0e35a1ed0815e75fcde5 (diff) |
[NETPOLL]: add retry timeout
Add limited retry logic to netpoll_send_skb
Each time we attempt to send, decrement our per-device retry counter.
On every successful send, we reset the counter.
We delay 50us between attempts with up to 20000 retries for a total of
1 second. After we've exhausted our retries, subsequent failed
attempts will try only once until reset by success.
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netpoll.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index bcd0ac33f592..be68d94b03d5 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -26,6 +26,7 @@ struct netpoll { | |||
26 | struct netpoll_info { | 26 | struct netpoll_info { |
27 | spinlock_t poll_lock; | 27 | spinlock_t poll_lock; |
28 | int poll_owner; | 28 | int poll_owner; |
29 | int tries; | ||
29 | int rx_flags; | 30 | int rx_flags; |
30 | spinlock_t rx_lock; | 31 | spinlock_t rx_lock; |
31 | struct netpoll *rx_np; /* netpoll that registered an rx_hook */ | 32 | struct netpoll *rx_np; /* netpoll that registered an rx_hook */ |