svn commit: r249411 - head/sys/netinet

Andrey V. Elsukov ae at FreeBSD.org
Fri Apr 12 16:29:15 UTC 2013


Author: ae
Date: Fri Apr 12 16:29:15 2013
New Revision: 249411
URL: http://svnweb.freebsd.org/changeset/base/249411

Log:
  Reflect removing of the counter_u64_subtract() function in the macro.

Modified:
  head/sys/netinet/ip_var.h

Modified: head/sys/netinet/ip_var.h
==============================================================================
--- head/sys/netinet/ip_var.h	Fri Apr 12 16:25:03 2013	(r249410)
+++ head/sys/netinet/ip_var.h	Fri Apr 12 16:29:15 2013	(r249411)
@@ -173,9 +173,9 @@ VNET_DECLARE(struct ipstat_p, ipstatp);
  * stats.
  */
 #define	IPSTAT_ADD(name, val)	counter_u64_add(V_ipstatp.name, (val))
-#define	IPSTAT_SUB(name, val)	counter_u64_subtract(V_ipstatp.name, (val))
+#define	IPSTAT_SUB(name, val)	IPSTAT_ADD(name, -(val))
 #define	IPSTAT_INC(name)	IPSTAT_ADD(name, 1)
-#define	IPSTAT_DEC(name)	IPSTAT_ADD(name, -1)
+#define	IPSTAT_DEC(name)	IPSTAT_SUB(name, 1)
 
 /*
  * Kernel module consumers must use this accessor macro.


More information about the svn-src-all mailing list