PERFORCE change 147643 for review

Brooks Davis brooks at FreeBSD.org
Sun Aug 17 13:40:23 UTC 2008


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

Change 147643 by brooks at brooks_coredump on 2008/08/17 13:39:26

	Fix missing V_ for ifindex_table due to mis-intergrate.

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/net/if.c#7 edit

Differences ...

==== //depot/projects/vimage-commit2/src/sys/net/if.c#7 (text+ko) ====

@@ -171,7 +171,7 @@
 	struct ifnet *ifp;
 
 	IFNET_RLOCK();
-	ifp = ifindex_table[idx].ife_ifnet;
+	ifp = V_ifindex_table[idx].ife_ifnet;
 	IFNET_RUNLOCK();
 	return (ifp);
 }
@@ -182,7 +182,7 @@
 
 	IFNET_WLOCK_ASSERT();
 
-	ifindex_table[idx].ife_ifnet = ifp;
+	V_ifindex_table[idx].ife_ifnet = ifp;
 }
 
 struct ifaddr *
@@ -202,7 +202,7 @@
 	struct cdev *cdev;
 
 	IFNET_RLOCK();
-	cdev = ifindex_table[idx].ife_dev;
+	cdev = V_ifindex_table[idx].ife_dev;
 	IFNET_RUNLOCK();
 	return (cdev);
 }
@@ -212,7 +212,7 @@
 {
 
 	IFNET_WLOCK();
-	ifindex_table[idx].ife_dev = cdev;
+	V_ifindex_table[idx].ife_dev = cdev;
 	IFNET_WUNLOCK();
 }
 


More information about the p4-projects mailing list