This patch adds the old name "subtable-lookup-prio-get" as an unlisted command,
to restore a consistency between OVS releases for testing scripts.

Fixes 738c76a503f4 ("dpcls: Change info-get function to fetch dpcls usage 
stats.")
Suggested-by: Eelco Chaudron <echau...@redhat.com>
Suggested-by: Ilya Maximets <i.maxim...@ovn.org>
Signed-off-by: Harry van Haaren <harry.van.haa...@intel.com>

---

v2:
- Based on discussion and push back on v1 patch here, this is a v2
  implementing the suggested "alias" method. Suggested by tags added
  for both Eelco (for alias concept) and Ilya (for unlisted concept).
  
https://patchwork.ozlabs.org/project/openvswitch/patch/20220525141014.661907-1-harry.van.haa...@intel.com/

---
 lib/dpif-netdev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index ff57b3961..f46b9fe18 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -1609,6 +1609,9 @@ dpif_netdev_init(void)
     unixctl_command_register("dpif-netdev/subtable-lookup-info-get", "",
                              0, 0, dpif_netdev_subtable_lookup_get,
                              NULL);
+    unixctl_command_register("dpif-netdev/subtable-lookup-prio-get", NULL,
+                             0, 0, dpif_netdev_subtable_lookup_get,
+                             NULL);
     unixctl_command_register("dpif-netdev/dpif-impl-set",
                              "dpif_implementation_name",
                              1, 1, dpif_netdev_impl_set,
-- 
2.32.0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to