diff mbox series

[ovs-dev,v3,1/2] utilities: Update dpif_nl_exec_monitor.py to include new actions.

Message ID 58e56b795554efa9dbb6813fa225ec07a88ed519.1724923203.git.echaudro@redhat.com
State Accepted
Commit bc9561c87618cbc1bfa4004c6ce50e7cf87b4f91
Delegated to: Eelco Chaudron
Headers show
Series Update and rename dpif_nl_exec_monitor.py. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Eelco Chaudron Aug. 29, 2024, 9:23 a.m. UTC
Added new actions to the get_ovs_action_attr_str() function.

Fixes: 8bb065961e54 ("dpif: Stub out unimplemented action OVS_ACTION_ATTR_DEC_TTL.")
Fixes: 3c8d069b9bc2 ("dpif: Probe support for OVS_ACTION_ATTR_DROP.")
Fixes: 1a3bd96b4fc4 ("odp-util: Add support OVS_ACTION_ATTR_PSAMPLE.")
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
---
 utilities/usdt-scripts/dpif_nl_exec_monitor.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utilities/usdt-scripts/dpif_nl_exec_monitor.py b/utilities/usdt-scripts/dpif_nl_exec_monitor.py
index 0a9ff8123..a5cf1a35a 100755
--- a/utilities/usdt-scripts/dpif_nl_exec_monitor.py
+++ b/utilities/usdt-scripts/dpif_nl_exec_monitor.py
@@ -468,9 +468,11 @@  def get_ovs_action_attr_str(attr):
                        "OVS_ACTION_ATTR_CLONE",
                        "OVS_ACTION_ATTR_CHECK_PKT_LEN",
                        "OVS_ACTION_ATTR_ADD_MPLS",
+                       "OVS_ACTION_ATTR_DEC_TTL",
+                       "OVS_ACTION_ATTR_DROP",
+                       "OVS_ACTION_ATTR_PSAMPLE",
                        "OVS_ACTION_ATTR_TUNNEL_PUSH",
                        "OVS_ACTION_ATTR_TUNNEL_POP",
-                       "OVS_ACTION_ATTR_DROP",
                        "OVS_ACTION_ATTR_LB_OUTPUT"]
     if attr < 0 or attr >= len(ovs_action_attr):
         return "<UNKNOWN:{}>".format(attr)