[ovs-dev] Question about using struct ofproto‘s port_by_name without lock protected

Lilijun (Jerry, Cloud Networking) jerry.lilijun at huawei.com
Fri Feb 1 04:23:07 UTC 2019


Hi all,

Currently, when insert/delete/lookup the shash list struct ofproto‘s port_by_name, we have no lock to protect this list.  This list was used lots of other functions.

Is there something race issues?  Can we make sure it's only used in the main ovs thread?


Thanks.



More information about the dev mailing list