DPDK patches and discussions
 help / color / mirror / Atom feed
From: Radu Nicolau <radu.nicolau@intel.com>
To: Konstantin Ananyev <konstantin.ananyev@intel.com>,
	Bernard Iremonger <bernard.iremonger@intel.com>,
	Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Cc: dev@dpdk.org, gakhil@marvell.com, john.mcnamara@intel.com,
	Radu Nicolau <radu.nicolau@intel.com>
Subject: [dpdk-dev] [PATCH] ipsec: fix wrong telemetry text
Date: Tue, 19 Oct 2021 16:15:28 +0100	[thread overview]
Message-ID: <20211019151528.1358605-1-radu.nicolau@intel.com> (raw)

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(-)

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");
 				}
 			}
 		}
-- 
2.25.1


             reply	other threads:[~2021-10-19 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19 15:15 Radu Nicolau [this message]
2021-10-20 13:55 ` [dpdk-dev] [EXT] " Akhil Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211019151528.1358605-1-radu.nicolau@intel.com \
    --to=radu.nicolau@intel.com \
    --cc=bernard.iremonger@intel.com \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=john.mcnamara@intel.com \
    --cc=konstantin.ananyev@intel.com \
    --cc=vladimir.medvedkin@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).