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 EEB26A0C47; Tue, 12 Oct 2021 13:33:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE77941172; Tue, 12 Oct 2021 13:33:04 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2042.outbound.protection.outlook.com [40.107.236.42]) by mails.dpdk.org (Postfix) with ESMTP id 7F41441136 for ; Tue, 12 Oct 2021 13:33:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dUOHGaagpbJrFl98eEqylWRagk6pWooArk2ZVYTgnSGiHWsj3pMu+dgnTGZAFuzbI0puHPatGBuO55dl0x7Yp0AGn+OTKy8PmdM8y1A5o2lFSB39fgTvShhIVYlkFFwZmqX3kpfzGIK+MXrCuIDBiVJHUVFBArYCaEOSctyzE3izKyHmydk8hhAp3loZRk5gm0InWh5bV5OAq+Uh6lOSVW4y9LcaxFmn4elIZBHGLdFlOmZl9qAHz8pOQFMcMQsfo5WX/4r6Fn8JR6Y0C005IKwi/yaD3ZAWn5TTIjcMFupACuIXr9MZzBn4SKbg5fOxTk4oyOSQ3aHzq8PsLYUceg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Th6mRJECj2+LDCnZoirMbbHqgUs+5Nu32Kg2+jF4tSE=; b=NlQOgFpJz/xDpe5Lsv34xDc0GVU5UT5uI6iGd0H/3GooBhBL/1zCF+rhU/1ewVfBuzlFgEtvrdFWhPaGb3nBqyL8UTRWSAhKqP7W/DQs2d6832hm+bFaIHwZFlwKGcqzhWf00tLEmqqO4VUXIqq8hBT4WkLmL4BAc9YV6n0tQ2w+TQIu91Ts2SIinmA+TxvAQKqX8A3DUmtgVz/bYMJhyiir0OBPcy96n6wL+phuf23/camPa60ngFThGCM6sLcEPRkzis/RyI68ApHG8Eu/xS8li3j4dRHc0j7nECiruwfkbB14H0oHHQGEml3d2SHm3zlFv3OL1qT3wu+veA2/Ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Th6mRJECj2+LDCnZoirMbbHqgUs+5Nu32Kg2+jF4tSE=; b=dywS7UZrCgqa1BnbuGw9JdKUZ2CcJ665mkHiH4dK0VPOIby8O0S1de5cP6I9IhEETPvfmfs91hPf8EALMuwWmiNGiNsVIMY4kFQV+1Vai2qGMlONb6+lYg806jI68ddHhJa9dRgWHp2FGl5yPAXwos5iJ+JVWe/i1qfZSobUp65PizQAFxm18kUMac1MZiwyoNgL32/ihgxfjSi0zOnxcdrawGcEKI+v0vdWhWEHZy/DhFwfpxLYMSn14aLT5S7ZVtifaPe2JIlDEMRzdwKATW6s9UAIUMs1qStv9bcc9/Gb6zkU/0UznzRgvYaU5IOgOqhMc74q/5P1M2eoHC7aOg== Received: from BN0PR02CA0055.namprd02.prod.outlook.com (2603:10b6:408:e5::30) by DM6PR12MB4092.namprd12.prod.outlook.com (2603:10b6:5:214::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Tue, 12 Oct 2021 11:33:01 +0000 Received: from BN8NAM11FT025.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e5:cafe::a5) by BN0PR02CA0055.outlook.office365.com (2603:10b6:408:e5::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.24 via Frontend Transport; Tue, 12 Oct 2021 11:33:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT025.mail.protection.outlook.com (10.13.177.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4587.18 via Frontend Transport; Tue, 12 Oct 2021 11:33:00 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 12 Oct 2021 11:32:58 +0000 From: Viacheslav Ovsiienko To: CC: , , , , , Date: Tue, 12 Oct 2021 14:32:34 +0300 Message-ID: <20211012113235.24975-5-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20211012113235.24975-1-viacheslavo@nvidia.com> References: <20210922180418.20663-1-viacheslavo@nvidia.com> <20211012113235.24975-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c462b95-d945-4178-8b2f-08d98d740c2c X-MS-TrafficTypeDiagnostic: DM6PR12MB4092: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SarFVYP5DCT0YwqPC+ekHQPXdflv91JJ968Z0+flspC8zeHZeyFqezAkvrW8r4mrX7/twt4PxAzUWspSh+bK3j7xOrT4o7g0aGlhSqm7t09QqTWG7dCj8fod6sLWtJntQH76p19h5yHUYTBPK1H8DyJxKMxGINJPSVuvE/V3/36rlB6G+6c2NYke3fWpO6RnNCYTrzC/Eo8roUnY6imOeGQE5RNQYFgMOOZOtf9KSbWIRR6pZHYSWAo1n6PherrGvjnM46zv9fU670aTbRmxjzRSfRTi5JDRppW2uIlFiAwiOVxIQ/RQ+QTTZYR4VHPxaLf2ghin5NN3Wc3yCviCueZSJE/xG+HdbKZhDDJgiiAYZLcnrb8ZkYyapnXEO/VmmAMiWqVCiClnQAhjCwsLgN7GBnCuEXG8agnum04DBDL50LEPAJSm6tPMNR65eqIrO2Qgn/nbmTkEs34qcmiyCOg0topmb3hsJCCTbmnK5GoZFxGDdVmyHO+vxhfLCcBlmIO2Y6uEZ9hNe5uBEU/C/7N0D4vOeTrha2nECG4fyNz/Q9rzzL0xM7/tukcGYleb1w3qVcoF235o4tQEIFy0tL5lYMmBV18tGZDLb8tImgZ1g4GVQqUA0QbOGlGcsPBj+bYC96KlSBrPd+MrUIzNrxU5CjPmJKow/i0o5eurE7LcrwiCchk+Q2k/jS6d+F2DxBIMJV5QL03yMYwOub5twA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(70586007)(36860700001)(6666004)(8936002)(7696005)(6286002)(186003)(16526019)(26005)(8676002)(1076003)(36756003)(86362001)(2906002)(54906003)(70206006)(6916009)(55016002)(7636003)(5660300002)(356005)(508600001)(4326008)(2616005)(336012)(316002)(426003)(82310400003)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2021 11:33:00.7995 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c462b95-d945-4178-8b2f-08d98d740c2c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT025.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4092 Subject: [dpdk-dev] [PATCH v4 4/5] app/testpmd: add jansson library 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 Sender: "dev" From: Gregory Etelson Testpmd interactive mode provides CLI to configure application commands. Testpmd reads CLI command and parameters from STDIN, and converts input into C objects with internal parser. The patch adds jansson dependency to testpmd. With jansson, testpmd can read input in JSON format from STDIN or input file and convert it into C object using jansson library calls. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/meson.build | 5 +++++ app/test-pmd/testpmd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 98f3289bdf..3a8babd604 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -61,3 +61,8 @@ if dpdk_conf.has('RTE_LIB_BPF') sources += files('bpf_cmd.c') deps += 'bpf' endif +jansson_dep = dependency('jansson', required: false, method: 'pkg-config') +if jansson_dep.found() + dpdk_conf.set('RTE_HAS_JANSSON', 1) + ext_deps += jansson_dep +endif diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index 5863b2f43f..876a341cf0 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -14,6 +14,9 @@ #include #include #include +#ifdef RTE_HAS_JANSSON +#include +#endif #define RTE_PORT_ALL (~(portid_t)0x0) -- 2.18.1