summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xlreg.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-12-06 02:18:41 +0000
committermarius <marius@FreeBSD.org>2006-12-06 02:18:41 +0000
commita5878e15cf129593dc7e00da508adbbd01fd98f0 (patch)
tree9a379eaa927decab6fa3aee4825dd3a9fd8c3869 /sys/pci/if_xlreg.h
parent17d1a5f84e80a69f2a8b2156001c5862f7c00afa (diff)
downloadFreeBSD-src-a5878e15cf129593dc7e00da508adbbd01fd98f0.zip
FreeBSD-src-a5878e15cf129593dc7e00da508adbbd01fd98f0.tar.gz
- Use the xl_stats_update() callout instead of if_slowtimo() for
driving xl_watchdog() in order to avoid races accessing if_timer. While at it relax the watchdog a bit by reloading it in xl_txeof()/ xl_txeof_90xB() if there are still packets enqueued. - Use bus_get_dma_tag() so xl(4) works on platforms requiring it. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
Diffstat (limited to 'sys/pci/if_xlreg.h')
-rw-r--r--sys/pci/if_xlreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_xlreg.h b/sys/pci/if_xlreg.h
index eba21e6..ca393f3 100644
--- a/sys/pci/if_xlreg.h
+++ b/sys/pci/if_xlreg.h
@@ -603,6 +603,7 @@ struct xl_softc {
struct xl_list_data xl_ldata;
struct xl_chain_data xl_cdata;
struct callout xl_stat_callout;
+ int xl_wdog_timer;
int xl_flags;
struct resource *xl_fres;
bus_space_handle_t xl_fhandle;
OpenPOWER on IntegriCloud