PERFORCE change 144541 for review

Julian Elischer julian at FreeBSD.org
Thu Jul 3 09:14:57 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=144541

Change 144541 by julian at julian_trafmon1 on 2008/07/03 09:14:25

	ifnet_byindex() is no longer a macro so it can not be onthe LHS.
	use ifnet_setbyindex() instead.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/kern_vimage.c#64 edit

Differences ...

==== //depot/projects/vimage/src/sys/kern/kern_vimage.c#64 (text+ko) ====

@@ -293,7 +293,7 @@
 	do {
 		INIT_VNET_NET(curvnet);
 
-		ifnet_byindex(ifp->if_index) = NULL;
+		ifnet_setbyindex(ifp->if_index, NULL);
 		/* XXX: should be locked with if_findindex() */
 		while (V_if_index > 0 && ifnet_byindex(V_if_index) == NULL)
 			V_if_index--;
@@ -319,7 +319,7 @@
 		V_if_index = ifp->if_index;
 	if (V_if_index >= V_if_indexlim)
 		if_grow();
-	ifnet_byindex(ifp->if_index) = ifp;
+	ifnet_setbyindex(ifp->if_index, ifp);
 
 	/* Rename the ifnet */
 	if (new_vnet == ifp->if_home_vnet) {


More information about the p4-projects mailing list