svn commit: r212675 - projects/sv/sys/net
Attilio Rao
attilio at FreeBSD.org
Wed Sep 15 16:42:57 UTC 2010
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);
More information about the svn-src-projects
mailing list