]> git.proxmox.com Git - mirror_ovs.git/commit
lib/cmap: Return number of nodes from functions modifying the cmap.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 30 Sep 2014 19:37:52 +0000 (12:37 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 6 Oct 2014 22:33:41 +0000 (15:33 -0700)
commitee58b46960f3a922d5b4d426afc62cfa177819b4
treefda6f043087ad3969f2744d26af58dd859504681
parent22d38fca74ca5be26dda7e8ede02ba7f33170222
lib/cmap: Return number of nodes from functions modifying the cmap.

We already update the count field as the last step of these functions,
so returning the current count is very cheap.  Callers that care about
the count become a bit more efficient, as they avoid extra
non-inlineable function call.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/cmap.c
lib/cmap.h