Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev-offload-dpdk: Fix flushing of a physdev.
Vport's offloads are done on the tracked orig-in-port, but the flow itself is associated in the vport's map. Removing the physdev will flush all the ports that are on its map, but not the ones on other netdevs' maps. Since flows take reference count on both their vport and their physdev, the physdev still has references on. Trying to remove it and re-add it fails with "already in use" error. Fix it by flushing the physdev's offload flows in all related netdevs, e.g. the netdev itself, or for physical devices, all vports. Fixes: adbd430 ("netdev-offload-dpdk: Use per-netdev offload metadata.") Reported-by: [email protected] Acked-by: Simon Horman <[email protected]> Signed-off-by: Eli Britstein <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information