ipsec: fix wrong telemetry text

Message ID 20211019151528.1358605-1-radu.nicolau@intel.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series ipsec: fix wrong telemetry text |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-testing warning apply patch failure

Commit Message

Radu Nicolau Oct. 19, 2021, 3:15 p.m. UTC
  Set correct tunnel type telemetry text - tunnel type
was wrongly set as IPv4-UDP for all types.

Fixes: 7121a3b706e8 ("ipsec: add support for SA telemetry")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 lib/ipsec/ipsec_telemetry.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Comments

Akhil Goyal Oct. 20, 2021, 1:55 p.m. UTC | #1
> Set correct tunnel type telemetry text - tunnel type
> was wrongly set as IPv4-UDP for all types.
> 
> Fixes: 7121a3b706e8 ("ipsec: add support for SA telemetry")
> 
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> ---
Acked-by: Akhil Goyal <gakhil@marvell.com>

Applied to dpdk-next-crypto

Thanks.
  

Patch

diff --git a/lib/ipsec/ipsec_telemetry.c b/lib/ipsec/ipsec_telemetry.c
index 832971ad96..b8b08404b6 100644
--- a/lib/ipsec/ipsec_telemetry.c
+++ b/lib/ipsec/ipsec_telemetry.c
@@ -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");
 				}
 			}
 		}