]> git.baikalelectronics.ru Git - kernel.git/commit
[NETPOLL]: add retry timeout
authorMatt Mackall <mpm@selenic.com>
Fri, 12 Aug 2005 02:25:54 +0000 (19:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Aug 2005 02:25:54 +0000 (19:25 -0700)
commit76fba1077a71be0bf7b55a54be8d69f0bfe23dd4
tree6afab02002a46b045a3b8769342ad277402f0d95
parent2d1cf1f8cfd01ba3598325c67f8cc1b3e074ad72
[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>
include/linux/netpoll.h
net/core/netpoll.c