2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-05 08:45:23 +00:00

ofproto_dpif: Check for psample support.

Only kernel datapath supports this action so add a function in dpif.c
that checks for that.

Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
Adrian Moreno
2024-07-13 23:23:39 +02:00
committed by Ilya Maximets
parent 1a3bd96b4f
commit d0afbf0944
5 changed files with 64 additions and 1 deletions

View File

@@ -1953,6 +1953,13 @@ dpif_supports_lb_output_action(const struct dpif *dpif)
return dpif_is_netdev(dpif);
}
bool
dpif_may_support_psample(const struct dpif *dpif)
{
/* Userspace datapath does not support this action. */
return !dpif_is_netdev(dpif);
}
/* Meters */
void
dpif_meter_get_features(const struct dpif *dpif,