Date: Fri, 12 Apr 2013 16:29:15 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249411 - head/sys/netinet Message-ID: <201304121629.r3CGTFcn068971@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304121629.r3CGTFcn068971>