Skip to content

Commit

Permalink
Merge "Increment Nexthop ref count atomically"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 27, 2017
2 parents 46e1688 + 0b81b2b commit 5da45b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dp-core/vr_nexthop.c
Expand Up @@ -52,7 +52,7 @@ vrouter_get_nexthop(unsigned int rid, unsigned int index)
router = vrouter_get(rid);
nh = __vrouter_get_nexthop(router, index);
if (nh)
nh->nh_users++;
(void)__sync_add_and_fetch(&nh->nh_users, 1);

return nh;
}
Expand Down

0 comments on commit 5da45b1

Please sign in to comment.