Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 2010 16:42:57 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r212675 - projects/sv/sys/net
Message-ID:  <201009151642.o8FGgvO5043175@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Wed Sep 15 16:42:57 2010
New Revision: 212675
URL: http://svn.freebsd.org/changeset/base/212675

Log:
  Add a comment explaining why they need to stay out of DEVICE_POLLING.

Modified:
  projects/sv/sys/net/if_var.h

Modified: projects/sv/sys/net/if_var.h
==============================================================================
--- projects/sv/sys/net/if_var.h	Wed Sep 15 16:40:17 2010	(r212674)
+++ projects/sv/sys/net/if_var.h	Wed Sep 15 16:42:57 2010	(r212675)
@@ -891,6 +891,11 @@ void	if_deregister_com_alloc(u_char type
 #define IF_LLADDR(ifp)							\
     LLADDR((struct sockaddr_dl *)((ifp)->if_addr->ifa_addr))
 
+/*
+ * Keep enum poll_cmd and poll_handler_t specification unconditional from
+ * DEVICE_POLLING because other modules may be needing them as well
+ * (where the most notable one is netdump).
+ */
 enum poll_cmd {	POLL_ONLY, POLL_AND_CHECK_STATUS };
 
 typedef	int poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009151642.o8FGgvO5043175>