[PATCH v1 1/2] examples/fips_validation: skip offsetting source for json vectors

Gowrishankar Muthukrishnan gmuthukrishn at marvell.com
Wed Jul 13 08:39:31 CEST 2022


For JSON based test vectors, it is not required to offset further
on source address where key value is read.

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
---
 examples/fips_validation/fips_validation.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c
index 12b9b03f56..c15f0f0202 100644
--- a/examples/fips_validation/fips_validation.c
+++ b/examples/fips_validation/fips_validation.c
@@ -625,7 +625,11 @@ parse_uint8_hex_str(const char *key, char *src, struct fips_val *val)
 {
 	uint32_t len, j;
 
+#ifndef USE_JANSSON
 	src += strlen(key);
+#else
+	RTE_SET_USED(key);
+#endif
 
 	len = strlen(src) / 2;
 
-- 
2.25.1



More information about the dev mailing list