netdev-dpdk: Remove rte-flow API access locks.
The rte_flow DPDK API was made thread-safe [1] in release 20.11.
Now that the DPDK offload provider in OVS is thread safe, remove the
locks.
[1]:
@@ -5225,9 +5225,7 @@ netdev_dpdk_rte_flow_destroy(struct netdev *netdev,
struct netdev_dpdk *dev = netdev_dpdk_cast(netdev);
int ret;
- ovs_mutex_lock(&dev->mutex);
ret = rte_flow_destroy(dev->port_id, rte_flow, error);
- ovs_mutex_unlock(&dev->mutex);
return ret;
}
@@ -5241,9 +5239,7 @@ netdev_dpdk_rte_flow_create(struct netdev *netdev,
struct rte_flow *flow;
struct netdev_dpdk *dev = netdev_dpdk_cast(netdev);
- ovs_mutex_lock(&dev->mutex);
flow = rte_flow_create(dev->port_id, attr, items, actions, error);
- ovs_mutex_unlock(&dev->mutex);
return flow;
}
@@ -5271,9 +5267,7 @@ netdev_dpdk_rte_flow_query_count(struct netdev *netdev,
}
dev = netdev_dpdk_cast(netdev);
- ovs_mutex_lock(&dev->mutex);
ret = rte_flow_query(dev->port_id, rte_flow, actions, query, error);
- ovs_mutex_unlock(&dev->mutex);
return ret;
}
