svn commit: r280176 - projects/ifnet/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Tue Mar 17 15:04:29 UTC 2015
Author: glebius
Date: Tue Mar 17 15:04:28 2015
New Revision: 280176
URL: https://svnweb.freebsd.org/changeset/base/280176
Log:
The struct ifops is part of new KPI and thus its size and layout should
not depend on kernel options, so remove ifop_poll out of ifdef.
Modified:
projects/ifnet/sys/net/if.h
Modified: projects/ifnet/sys/net/if.h
==============================================================================
--- projects/ifnet/sys/net/if.h Tue Mar 17 15:03:29 2015 (r280175)
+++ projects/ifnet/sys/net/if.h Tue Mar 17 15:04:28 2015 (r280176)
@@ -592,10 +592,8 @@ typedef void (*if_qflush_t)(if_t);
typedef int (*if_resolvemulti_t)(if_t, struct sockaddr **,
struct sockaddr *);
typedef void (*if_reassign_t)(if_t, struct vnet *);
-#ifdef DEVICE_POLLING
enum poll_cmd { POLL_ONLY, POLL_AND_CHECK_STATUS };
-typedef int (*if_poll_t)(if_t ifp, enum poll_cmd cmd, int count);
-#endif
+typedef int (*if_poll_t)(if_t, enum poll_cmd, int);
/*
* Interface methods. Usually stored in ifdriver definition, however
@@ -606,9 +604,7 @@ struct ifops {
if_input_t ifop_input; /* input routine (from h/w driver) */
if_transmit_t ifop_transmit; /* initiate output routine */
if_output_t ifop_output;
-#ifdef DEVICE_POLLING
if_poll_t ifop_poll;
-#endif
if_ioctl_t ifop_ioctl; /* ioctl routine */
if_get_counter_t ifop_get_counter; /* get counter values */
if_qflush_t ifop_qflush; /* flush any queue */
More information about the svn-src-projects
mailing list