Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2017 07:27:06 +0000
From:      Phabricator <phabric-noreply@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   [Differential] D9345: ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h
Message-ID:  <a2de316f377ac2794f5058898131cc60@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-ehgwxeotuhsw6eo52uz6-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-ehgwxeotuhsw6eo52uz6-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
This revision was automatically updated to reflect the committed changes.
Closed by commit rS312916: ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h (authored by dexuan).

CHANGED PRIOR TO COMMIT
  https://reviews.freebsd.org/D9345?vs=24479&id=24522#toc

REPOSITORY
  rS FreeBSD src repository

CHANGES SINCE LAST UPDATE
  https://reviews.freebsd.org/D9345?vs=24479&id=24522

REVISION DETAIL
  https://reviews.freebsd.org/D9345

AFFECTED FILES
  head/sys/net/if.c
  head/sys/net/if_var.h
  head/sys/sys/eventhandler.h

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: decui_microsoft.com, hselasky, cem, np, kmacy, kib, honzhan_microsoft.com, howard0su_gmail.com, jhb, ae, delphij, royger, gnn, rwatson, glebius, sepherosa_gmail.com, David_A_Bright_DELL.com
Cc: David_A_Bright_DELL.com, freebsd-net-list

[-- Attachment #2 --]
diff --git a/head/sys/sys/eventhandler.h b/head/sys/sys/eventhandler.h
--- a/head/sys/sys/eventhandler.h
+++ b/head/sys/sys/eventhandler.h
@@ -284,11 +284,4 @@
 EVENTHANDLER_DECLARE(swapon, swapon_fn);
 EVENTHANDLER_DECLARE(swapoff, swapoff_fn);
 
-/* ifup/ifdown events */
-#define IFNET_EVENT_UP		0
-#define IFNET_EVENT_DOWN	1
-struct ifnet;
-typedef void (*ifnet_event_fn)(void *, struct ifnet *ifp, int event);
-EVENTHANDLER_DECLARE(ifnet_event, ifnet_event_fn);
-
 #endif /* _SYS_EVENTHANDLER_H_ */
diff --git a/head/sys/net/if_var.h b/head/sys/net/if_var.h
--- a/head/sys/net/if_var.h
+++ b/head/sys/net/if_var.h
@@ -404,6 +404,11 @@
 /* Interface link state change event */
 typedef void (*ifnet_link_event_handler_t)(void *, struct ifnet *, int);
 EVENTHANDLER_DECLARE(ifnet_link_event, ifnet_link_event_handler_t);
+/* Interface up/down event */
+#define IFNET_EVENT_UP		0
+#define IFNET_EVENT_DOWN	1
+typedef void (*ifnet_event_fn)(void *, struct ifnet *ifp, int event);
+EVENTHANDLER_DECLARE(ifnet_event, ifnet_event_fn);
 #endif /* _SYS_EVENTHANDLER_H_ */
 
 /*
diff --git a/head/sys/net/if.c b/head/sys/net/if.c
--- a/head/sys/net/if.c
+++ b/head/sys/net/if.c
@@ -59,7 +59,6 @@
 #include <sys/domain.h>
 #include <sys/jail.h>
 #include <sys/priv.h>
-#include <sys/eventhandler.h>
 
 #include <machine/stdarg.h>
 #include <vm/uma.h>


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