forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datapath: Fix race with a deleted device after detection
If a device was removed after device detection, but before DeviceManager.Listen() was invoked, then this deletion would be missed and the device would be kept. Fix the issue by subscribing to link updates and then checking if some links no longer exist. While fixing this I noticed that a better way to make sure DeviceManager uses the right namespace is to use the netlink.Handle instead of pinning the OS thread and setting the namespace for the thread. Signed-off-by: Jussi Maki <jussi@isovalent.com>
- Loading branch information
1 parent
7a1aea7
commit 8941e96
Showing
3 changed files
with
127 additions
and
67 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