ipsec: fix telemetry text
authorRadu Nicolau <radu.nicolau@intel.com>
Tue, 19 Oct 2021 15:15:28 +0000 (16:15 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 20 Oct 2021 13:55:37 +0000 (15:55 +0200)
Set correct tunnel type telemetry text - tunnel type
was wrongly set as IPv4-UDP for all types.

Fixes: bf5b65a8e781 ("ipsec: support SA telemetry")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
lib/ipsec/ipsec_telemetry.c

index 832971a..b8b0840 100644 (file)
@@ -150,18 +150,18 @@ handle_telemetry_cmd_ipsec_sa_details(const char *cmd __rte_unused,
                                                RTE_IPSEC_SATP_MODE_TUNLV6) {
                                        rte_tel_data_add_dict_string(data,
                                                "Tunnel-Type",
-                                               "IPv4-UDP");
+                                               "IPv6-UDP");
                                }
                        } else {
                                if (sa->type & RTE_IPSEC_SATP_MODE_TUNLV4) {
                                        rte_tel_data_add_dict_string(data,
                                                "Tunnel-Type",
-                                               "IPv4-UDP");
+                                               "IPv4");
                                } else if (sa->type &
                                                RTE_IPSEC_SATP_MODE_TUNLV6) {
                                        rte_tel_data_add_dict_string(data,
                                                "Tunnel-Type",
-                                               "IPv4-UDP");
+                                               "IPv6");
                                }
                        }
                }