diff options
author | glebius <glebius@FreeBSD.org> | 2006-11-30 15:02:01 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-11-30 15:02:01 +0000 |
commit | 068ffeee72857b7591655829e452f1718d4bfe3d (patch) | |
tree | 8fb765c515695e762dafcc8243e3dfaccf11f9ad | |
parent | 14b1ce5a4467c39a8abb2f7f19ba3abafb8e90ba (diff) | |
download | FreeBSD-src-068ffeee72857b7591655829e452f1718d4bfe3d.zip FreeBSD-src-068ffeee72857b7591655829e452f1718d4bfe3d.tar.gz |
The recent issues with em(4) interface has shown that the old 4.4BSD
if_watchdog/if_timer interface doesn't fit modern SMP network
stack design.
Device drivers that need watchdog to monitor their hardware should
implement it theirselves.
Eventually the if_watchdog/if_timer API will be removed. For now,
warn that driver uses it.
Reviewed by: scottl
-rw-r--r-- | sys/net/if.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index ad32a44..6d693df 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -520,6 +520,9 @@ if_attach(struct ifnet *ifp) /* Announce the interface. */ rt_ifannouncemsg(ifp, IFAN_ARRIVAL); + + if (ifp->if_watchdog != NULL) + if_printf(ifp, "using obsoleted if_watchdog interface\n"); } static void |