Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpif-netdev: Use netdev-offload API for port lookup while offloading.
Currently, while offloading, userspace datapath tries to lookup netdev in a local port list of the datapath interface instance. However, there is no guarantee that these netdevs are the same netdevs that netdev-offload module operates with and, as a result, there is no any guarantee that these netdev instances has initialized flow API. dpif-netdev should request ports from the netdev-offload module as intended by flow offloading API in a same way as dpif-netlink does. This will also give us performance benefits because we don't need to hold global port mutex anymore. We're not noticing any significant issues with current code, but it will become a serious issue in the future, e.g. with offloading for virtual tunneling ports. Reported-by: Ophir Munk <[email protected]> Fixes: 241bad1 ("dpif-netdev: associate flow with a mark id") Signed-off-by: Ilya Maximets <[email protected]> Acked-by: Ophir Munk <[email protected]> Acked-by: Eli Britstein <[email protected]>
- Loading branch information