Page MenuHomeFreeBSD

D33942.diff
No OneTemporary

D33942.diff

diff --git a/sys/net/if_clone.c b/sys/net/if_clone.c
--- a/sys/net/if_clone.c
+++ b/sys/net/if_clone.c
@@ -189,20 +189,6 @@
if (ifc->ifc_match(ifc, name))
break;
}
-#ifdef VIMAGE
- if (ifc == NULL && !IS_DEFAULT_VNET(curvnet)) {
- CURVNET_SET_QUIET(vnet0);
- LIST_FOREACH(ifc, &V_if_cloners, ifc_list)
- if (ifc->ifc_type == SIMPLE) {
- if (ifc_simple_match(ifc, name))
- break;
- } else {
- if (ifc->ifc_match(ifc, name))
- break;
- }
- CURVNET_RESTORE();
- }
-#endif
IF_CLONERS_UNLOCK();
if (ifc == NULL)
@@ -266,27 +252,15 @@
return (ENXIO);
/* Find the cloner for this interface */
+ CURVNET_SET_QUIET(ifp->if_home_vnet);
IF_CLONERS_LOCK();
LIST_FOREACH(ifc, &V_if_cloners, ifc_list) {
if (strcmp(ifc->ifc_name, ifp->if_dname) == 0) {
break;
}
}
-#ifdef VIMAGE
- if (ifc == NULL && !IS_DEFAULT_VNET(curvnet)) {
- CURVNET_SET_QUIET(vnet0);
- LIST_FOREACH(ifc, &V_if_cloners, ifc_list)
- if (ifc->ifc_type == SIMPLE) {
- if (ifc_simple_match(ifc, name))
- break;
- } else {
- if (ifc->ifc_match(ifc, name))
- break;
- }
- CURVNET_RESTORE();
- }
-#endif
IF_CLONERS_UNLOCK();
+ CURVNET_RESTORE();
if (ifc == NULL) {
if_rele(ifp);
return (EINVAL);

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 1:26 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15754203
Default Alt Text
D33942.diff (1 KB)

Event Timeline