-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-controller dns-cache: Improve dns caching using cmaps.
Its possible for pinctrl handling for DNS packets to be blocked if the ovn-controller main thread has acquired the dns cache mutex during the recompute. This patch improves the DNS packet handling by using cmap instead of hmap to maintain the dns cache. With this, there is no need to maintain a mutex. Since cmaps use OVSRCU_TYPE, in order to safely free the cmap data, we need to manage the quiesce state for both the main ovn-controller thread and pinctrl thread. ovsrcu_quiesce_start() is called before calling poll_block() and ovsrcu_quiesce_end() is called at the start of the while for both these threads. Suggested-by: Ales Musil <amusil@redhat.com> Acked-by: Ales Musil <amusil@redhat.com> Signed-off-by: Numan Siddique <numans@ovn.org> (cherry picked from commit eba60b2)
- Loading branch information
1 parent
299b503
commit 5d3a4e0
Showing
3 changed files
with
67 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters