mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif: Shift ufid support checking up to dpif_backer.
Previously, the dpif layer was responsible for determining datapath support for UFIDs, which resulted in all ovs-dpctl utilities inserting/deleting flows from the datapath each time they are run. Shift this responsibility up to the dpif_backer. There are two users of this functionality: Revalidators check for UFID support to request a terser dump using UFIDs, and dpif-netlink uses this to request flow_del operations to only return the UFID/stats. The latter case was previously hidden from revalidators, but this change makes them aware of it, and reuses the same "udpif->enable_ufid" flag for reducing overhead of both flow dump and flow delete. Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
This commit is contained in:
@@ -1584,12 +1584,6 @@ get_dpif_flow_stats(const struct dp_netdev_flow *netdev_flow,
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
dpif_netdev_check_ufid(struct dpif *dpif OVS_UNUSED)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Converts to the dpif_flow format, using 'key_buf' and 'mask_buf' for
|
||||
* storing the netlink-formatted key/mask. 'key_buf' may be the same as
|
||||
* 'mask_buf'. Actions will be returned without copying, by relying on RCU to
|
||||
@@ -3254,7 +3248,6 @@ const struct dpif_class dpif_netdev_class = {
|
||||
dpif_netdev_enable_upcall,
|
||||
dpif_netdev_disable_upcall,
|
||||
dpif_netdev_get_datapath_version,
|
||||
dpif_netdev_check_ufid,
|
||||
};
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user