From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2B5FEA0032; Wed, 13 Jul 2022 08:39:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D43A4282D; Wed, 13 Jul 2022 08:39:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1345D4282B for ; Wed, 13 Jul 2022 08:39:49 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26D2MJHB026786; Tue, 12 Jul 2022 23:39:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=6hBFX3RzN6qCGD+LI61SsCJe7CYU/aXEY7+RCWumdLo=; b=auKodFP0iEC/5HmOUaqhtCTbNROSZNpqmF5KN9oka2Mzt6Wr/1TjQ/dsd2YvUcbY8E9n UvvqvzXjeWVcGrsqWL+DasoM/iMnm2SCVpAhgEJ3XHz38g7WeC4izLhJ4Cx1i4iVcHSB am72boUZNNCdldp78mgTj/XlFzWDC0qesW5///28eyPmf5T4uMBOTGo4P5kREdcjnJAP fOR/ai8Lcq2tEZtfwuyafjAGp6x8WGAM9Txq/hbYh/IHC4OB7TjQIp/jqsdOZQQJKAHr ze+nMeACw+J8a1DhHfWGzKRRUNx7dKkNZV7dywnnA/hNv5ZTBq57yvHGNpRD7Kq279fJ Ug== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3h9n6n0puv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 12 Jul 2022 23:39:49 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 12 Jul 2022 23:39:46 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 12 Jul 2022 23:39:46 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id 523A23F7064; Tue, 12 Jul 2022 23:39:42 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: Akhil Goyal , Fan Zhang , Brian Dooley , Anoob Joseph , Archana Muniganti , Jerin Jacob , Gowrishankar Muthukrishnan Subject: [PATCH v1 1/2] examples/fips_validation: skip offsetting source for json vectors Date: Wed, 13 Jul 2022 12:09:31 +0530 Message-ID: <1daee962c2e3a70b138ea3dd8095dbbaebb1e176.1657694117.git.gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: u2OAQL9O3cBUcDDQ0Gpho2cEecJKUTF5 X-Proofpoint-GUID: u2OAQL9O3cBUcDDQ0Gpho2cEecJKUTF5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-12_14,2022-07-12_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- 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