Re: [vpp-dev] What are the available atomic operations in VPP #vpp-dev #vpp #counters

2021-06-07 Thread Damjan Marion via lists.fd.io
VPP is just a C app. So you can use standard C atomics… Have you tried to do something like “git grep atomic” in the vpp repo ? — Damjan > On 05.06.2021., at 19:39, Mohanty, Chandan (Nokia - IN/Bangalore) > wrote: > > VPP experts, > Any pointers on this will be much appreciated and help a

Re: [vpp-dev] What are the available atomic operations in VPP #vpp-dev #vpp #counters

2021-06-05 Thread Mohanty, Chandan (Nokia - IN/Bangalore)
VPP experts, Any pointers on this will be much appreciated and help a VPP learning guy. Wanted to know, Similar to Linux, if any atomic operation is available in VPP? Intention is to use at

[vpp-dev] What are the available atomic operations in VPP #vpp-dev #vpp #counters

2021-06-02 Thread Mohanty, Chandan (Nokia - IN/Bangalore)
Hello VPP Experts, Wanted to know, Similar to Linux, if any atomic operation is available in VPP? Intention is to use atomic operations in place of Locking. Linux: long atomic64_add_return(int i, atomic64_t *v) Atomically add i to v and return the result long atomic64_sub_return(int i, atomic64_t