[ovs-dev] Query regarding ovs_flow_tbl_insert function
ankurengg2003 at gmail.com
Fri Oct 12 14:32:36 UTC 2012
In the flow table present in the datapath,ovs_flow_tbl_insert is the
functions which inserts flow in the flow table.
I find that it uses the hlist_add_head_rcu function to insert flows in the
table. But the man page for this function says the following
"The caller must take whatever precautions are necessary (such as holding
appropriate locks) to avoid racing with another list-mutation primitive,
such as hlist_add_head_rcu or hlist_del_rcu, running on this same list."
So should not ovs_flow_tbl_insert function take a lock before inserting any
flow or there will be only one request at a time?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev