sfc: Improve NIC internal error recovery
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 4 Mar 2009 10:01:57 +0000 (10:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2009 01:40:25 +0000 (17:40 -0800)
commit2c3c3d02f28801d7ad2da4952b2c7ca6621ef221
treeb733d0bbcd79e59235f47f6f9bf3b981e26683f0
parent4720bc6cfe70b606cf62a244c7a5391e59923e45
sfc: Improve NIC internal error recovery

Make the error count a per-NIC variable.
Reset this the count after an hour if it has not reached the critical value.
Set the critical value back to 5.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon.c