Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif: Fix cleanup of netdev_ports map
Executing dpctl commands from userspace also calls to dpif_open()/dpif_close() but not really creating another dpif but using a clone. As for netdev_ports map is global we avoid adding duplicate entries but also need to make sure we are not removing needed entries. With this commit we make sure only the last dpif close should clean the netdev_ports map. Fixes: 6595cb9 ("dpif: Clean up netdev_ports map on dpif_close().") Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Paul Blakey <[email protected]> Signed-off-by: Joe Stringer <[email protected]>
- Loading branch information