Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif-netdev: Move port flush after datapath reconfiguration.
Port flush and offload uninit should be moved after the datapath has been reconfigured. That way, no other thread such as PMDs will find this port to poll and enqueue further offload requests. After a flush, almost no further offload request for this port should be found in the queue. There will still be some issued by revalidators, but they will be caught when the offload thread fails to take a netdev ref. This change fixes the issue of datapath reference being improperly accessed by offload threads while it is being destroyed. Fixes: 5b0aa55 ("dpif-netdev: Execute flush from offload thread.") Fixes: 62d1c28 ("dpif-netdev: Flush offload rules upon port deletion.") Suggested-by: Ilya Maximets <[email protected]> Acked-by: Sriharsha Basavapatna <[email protected]> Signed-off-by: Gaetan Rivet <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information