if_epair.c (a4641f4eaad242fd40c50e4dd14522aff3494f9a) if_epair.c (484149def80975bda4e583a1d77c4c6ee2baf074)
1/*-
2 * Copyright (c) 2008 The FreeBSD Foundation
3 * Copyright (c) 2009-2010 Bjoern A. Zeeb <bz@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This software was developed by CK Software GmbH under sponsorship
7 * from the FreeBSD Foundation.
8 *

--- 945 unchanged lines hidden (view full) ---

954}
955
956static void
957vnet_epair_init(const void *unused __unused)
958{
959
960 V_epair_cloner = if_clone_advanced(epairname, 0,
961 epair_clone_match, epair_clone_create, epair_clone_destroy);
1/*-
2 * Copyright (c) 2008 The FreeBSD Foundation
3 * Copyright (c) 2009-2010 Bjoern A. Zeeb <bz@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This software was developed by CK Software GmbH under sponsorship
7 * from the FreeBSD Foundation.
8 *

--- 945 unchanged lines hidden (view full) ---

954}
955
956static void
957vnet_epair_init(const void *unused __unused)
958{
959
960 V_epair_cloner = if_clone_advanced(epairname, 0,
961 epair_clone_match, epair_clone_create, epair_clone_destroy);
962#ifdef VIMAGE
963 netisr_register_vnet(&epair_nh);
964#endif
962}
963VNET_SYSINIT(vnet_epair_init, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY,
964 vnet_epair_init, NULL);
965
966static void
967vnet_epair_uninit(const void *unused __unused)
968{
969
965}
966VNET_SYSINIT(vnet_epair_init, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY,
967 vnet_epair_init, NULL);
968
969static void
970vnet_epair_uninit(const void *unused __unused)
971{
972
973#ifdef VIMAGE
974 netisr_unregister_vnet(&epair_nh);
975#endif
970 if_clone_detach(V_epair_cloner);
971}
972VNET_SYSUNINIT(vnet_epair_uninit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY,
973 vnet_epair_uninit, NULL);
974
975static int
976epair_modevent(module_t mod, int type, void *data)
977{

--- 33 unchanged lines hidden ---
976 if_clone_detach(V_epair_cloner);
977}
978VNET_SYSUNINIT(vnet_epair_uninit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY,
979 vnet_epair_uninit, NULL);
980
981static int
982epair_modevent(module_t mod, int type, void *data)
983{

--- 33 unchanged lines hidden ---