mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
Merge pull request #3262 from mjstapp/clang_atomic_workaround
zebra: temporary workaround for a clang issue with atomics
This commit is contained in:
commit
2320a6c32b
@ -651,7 +651,15 @@ static int dplane_route_enqueue(struct zebra_dplane_ctx *ctx)
|
|||||||
}
|
}
|
||||||
DPLANE_UNLOCK();
|
DPLANE_UNLOCK();
|
||||||
|
|
||||||
curr = atomic_add_fetch_explicit(&zdplane_info.dg_routes_queued,
|
curr = atomic_add_fetch_explicit(
|
||||||
|
#ifdef __clang__
|
||||||
|
/* TODO -- issue with the clang atomic/intrinsics currently;
|
||||||
|
* casting away the 'Atomic'-ness of the variable works.
|
||||||
|
*/
|
||||||
|
(uint32_t *)&(zdplane_info.dg_routes_queued),
|
||||||
|
#else
|
||||||
|
&(zdplane_info.dg_routes_queued),
|
||||||
|
#endif
|
||||||
1, memory_order_seq_cst);
|
1, memory_order_seq_cst);
|
||||||
|
|
||||||
/* Maybe update high-water counter also */
|
/* Maybe update high-water counter also */
|
||||||
|
Loading…
Reference in New Issue
Block a user