]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update stats in struct mrtstat using two new macros: MRTSTAT_ADD()
authorRobert Watson <rwatson@FreeBSD.org>
Sun, 12 Apr 2009 14:00:36 +0000 (14:00 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Sun, 12 Apr 2009 14:00:36 +0000 (14:00 +0000)
commitfb83a3685666d77662a93f4aa142581af0f25610
tree9fa9b2018f245f7a7b3e6ea1d009cf16267468bc
parentbd88cce2ed100226ba6e6dcee2ba4d2694b32d9b
Update stats in struct mrtstat using two new macros: MRTSTAT_ADD()
and MRTSTAT_INC(), rather than directly manipulating the fields of
the structure.  This will make it easier to change the
implementation of these statistics, such as using per-CPU versions
of the data structure.

MFC after: 3 days
sys/netinet/ip_mroute.c
sys/netinet/ip_mroute.h