1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

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

This commit is contained in:
Andrey V. Elsukov 2013-04-12 16:29:15 +00:00
parent 8ed9860914
commit e3389419ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249411

View File

@ -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.