Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 2009 14:01:25 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 164851 for review
Message-ID:  <200906221401.n5ME1Piv012815@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164851

Change 164851 by zec@zec_amdx4 on 2009/06/22 14:00:44

	Properly virtualize a sysctl handler macro.
	
	Split too long a line in two.

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/net/flowtable.c#8 edit

Differences ...

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

@@ -283,8 +283,9 @@
 	}
 	return (error);
 }
-SYSCTL_PROC(_net_inet_flowtable, OID_AUTO, nmbflows, CTLTYPE_INT|CTLFLAG_RW,
-    0, 0, sysctl_nmbflows, "IU", "Maximum number of flows allowed");
+SYSCTL_V_PROC(V_NET, vnet_net, _net_inet_flowtable, OID_AUTO, nmbflows,
+    CTLTYPE_INT|CTLFLAG_RW, flowtable_nmbflows, 0, sysctl_nmbflows, "IU",
+    "Maximum number of flows allowed");
 
 #ifndef RADIX_MPATH
 static void
@@ -865,7 +866,8 @@
 	lle = __DEVOLATILE(struct llentry *, fle->f_lle);
 	RTFREE(rt);
 	LLE_FREE(lle);
-	uma_zfree((fle->f_flags & FL_IPV6) ? V_flow_ipv6_zone : V_flow_ipv4_zone, fle);
+	uma_zfree((fle->f_flags & FL_IPV6) ?
+	    V_flow_ipv6_zone : V_flow_ipv4_zone, fle);
 }
 
 static void



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