summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-11-30 15:02:01 +0000
committerglebius <glebius@FreeBSD.org>2006-11-30 15:02:01 +0000
commit068ffeee72857b7591655829e452f1718d4bfe3d (patch)
tree8fb765c515695e762dafcc8243e3dfaccf11f9ad /sys/net
parent14b1ce5a4467c39a8abb2f7f19ba3abafb8e90ba (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c3
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
OpenPOWER on IntegriCloud