forked from luigirizzo/netmap
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A crash can occur if rx/txsync is happening at the same time as the rings are being released by deleting the iptables target. The find_priv_from_na and find_ifc_pipe calls should be within locks as they can access data that will be under contention. The returned pointer needs some kind of protection. This is done with a reference counter so that ipt_netmap_priv is deleted when either the sync ends or the target is destroyed.
- Loading branch information
1 parent
d8dedd8
commit 1434440
Showing
1 changed file
with
67 additions
and
7 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