Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif-netdev: Fix a race condition in deletion of offloaded flows.
In dp_netdev_pmd_remove_flow() we schedule the deletion of an offloaded flow, if a mark has been assigned to the flow. But if this occurs in the window in which the offload thread completes offloading the flow and assigns a mark to the flow, then we miss deleting the flow. This problem has been observed while adding and deleting flows in a loop. To fix this, always enqueue flow deletion regardless of the flow->mark being set. Fixes: 241bad1("dpif-netdev: associate flow with a mark id") Co-authored-by: Gaetan Rivet <[email protected]> Signed-off-by: Gaetan Rivet <[email protected]> Signed-off-by: Sriharsha Basavapatna <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information