8000 Rcu by rjarry · Pull Request #233 · DPDK/grout · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rcu #233

New issue

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Rcu #233

wants to merge 7 commits into from

Conversation

rjarry
Copy link
Collaborator
@rjarry rjarry commented Jun 6, 2025

No description provided.

These are not used anywhere in the code. They were meant for adding RCU
stuff but will not fit the bill. I will introduce proper RCU in the next
commits.

Signed-off-by: Robin Jarry <robin@jarry.cc>
rjarry added 6 commits June 10, 2025 12:08
Create an RCU object global to the application and initialize it with
RTE_MAX_LCORE reader threads. Report quiescent state every turn of main
loop.

Expose the rte_rcu_qsbr structure pointer for any subsystem that would
like to make use of it.

It will be leveraged in the next commits to ensure the datapath workers
do not hold a reference on objects when they are freed/unallocated by
the control plane thread.

Link: http://doc.dpdk.org/guides/prog_guide/rcu_lib.html
Signed-off-by: Robin Jarry <robin@jarry.cc>
When a nexthop refcount drops to 0, wait until all worker threads have
reported quiescent state before freeing it and putting it back into the
pool.

Signed-off-by: Robin Jarry <robin@jarry.cc>
When destroying an interface, set the pointer value in the array to NULL
to avoid anyone from accessing it anymore and wait until all worker
threads have reported quiescent state before freeing the resources.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Attach an RCU object to the hash table.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Attach an RCU object to the routing tables.

Closes: DPDK#9
Signed-off-by: Robin Jarry <robin@jarry.cc>
Attach the RCU object to the hash table.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0