We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I want to define a variable for counting received packets in ofp_tcp_syncache.c file. how can I do that? Do I need to use a lock? how?
thanks in advance
The text was updated successfully, but these errors were encountered:
For counters you can use ODP atomics instead of locks.
E.g.
odp_atomic_u64_t pkt_count; uint64_t cur_pkt_count; odp_atomic_init_u64(&pkt_count, 0); odp_atomic_inc_u64(&pkt_count); cur_pkt_count = odp_atomic_load_u64(&pkt_count);
Sorry, something went wrong.
No branches or pull requests
Hi,
I want to define a variable for counting received packets in ofp_tcp_syncache.c file.
how can I do that? Do I need to use a lock? how?
thanks in advance
The text was updated successfully, but these errors were encountered: