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 54590A0032; Fri, 1 Oct 2021 21:35:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9CD841211; Fri, 1 Oct 2021 21:34:54 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2070.outbound.protection.outlook.com [40.107.93.70]) by mails.dpdk.org (Postfix) with ESMTP id A8D4941211 for ; Fri, 1 Oct 2021 21:34:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PBMnKkuip9dEcZYGevFOBojKIWbaWV7FtQRLL4mKxnoY0OMjpI/5xOno36lRhfd0VTcOL1mw9odFM2kVrk9uMtmglGKeyYOk70d5F6NHLThSzUMI9tSuRcforI0aIS8B7teDKgz3tRnvBYdhAFfkle7JUzxFkMRth1njLlZb382qV1uaIkQrMiJkjd4sjHggi2dVJXzW5Ba2SzUtdsY2um1D3AHTI6DhmuZiusPFskQoCuyMuS9Ngo5iEuaZaD1tzrSSgz8hRgmYBpAJISvj8X8fGoJ3uETj0RJ+fPhQoiyT4xXEtutoZQH3QfDp2j+2rrBdEACtjO14BQq/2S/r0Q== 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=brGGP38fYc8maS+lvIdUsMhFBfKwfKiZjBfN3Tl4QC8=; b=S9aUpObdLUC+BEhwAybxWl7ZOSrER7xPRLF5Qrg6vIDnPKSQtdYuIvigYQ0mvr+EAtbeEWtIuUYZWTaodGDdkHlb/jrYG2rKgLdM8lDXVzB6fw8DsBKzacNHSBykbr3K5l8xa0KH2bxueGz9hp0+wdwYqvw5jaDkYkzGTUQQEqx1pv3DFUegjP5imCx1eXScjBblNXRA47bXSg3T34K3P7zmh8yajxleoAxm8luJYyJz2kDtAqV74gfnuomp2oXg8+RjAfbGb1VCp41ES6II831jJJt4SM3tcKJNBshpaxyxUzIRLNPUPY5sqPQo+GeHamYc85Xxv8WTorDz6e2R8w== 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=none 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=brGGP38fYc8maS+lvIdUsMhFBfKwfKiZjBfN3Tl4QC8=; b=JSNfI0uSQO5XbRxlGX8JgO6VuR3jBDaX7LCRFOvWLvWr6T6XeRxXSfLJHTAatvHsmiNm0mjbbKa5qbhccKq9KgLrXydVTNNglbeSpGwj9izoPYylE5MjYFczwknHckcf8atJEPQxyLKeDKMPsAzKaGO9zRTwh+0dK0jrqaJrhjRR0VXX1mSphwgjitNCrxVSZEHa6wDmUSTFICmCgdYl5Calf5RhIbuO2Z1lkOIGDOHiVJjg9yvTGzJJSfCbTc+81tF/GgwDcllCu6LJ5LAuVZJPcz8x5s4AWtcDdYCXuZ2m21GZHC/mHxHyLv5Vx2ULhF49cwskym9bJSyOwjprJQ== Received: from BN8PR16CA0024.namprd16.prod.outlook.com (2603:10b6:408:4c::37) by DM4PR12MB5150.namprd12.prod.outlook.com (2603:10b6:5:391::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Fri, 1 Oct 2021 19:34:52 +0000 Received: from BN8NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:408:4c:cafe::d2) by BN8PR16CA0024.outlook.office365.com (2603:10b6:408:4c::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.16 via Frontend Transport; Fri, 1 Oct 2021 19:34:52 +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 BN8NAM11FT016.mail.protection.outlook.com (10.13.176.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4566.14 via Frontend Transport; Fri, 1 Oct 2021 19:34:51 +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; Fri, 1 Oct 2021 19:34:48 +0000 From: Viacheslav Ovsiienko To: CC: , , , , , Date: Fri, 1 Oct 2021 22:34:05 +0300 Message-ID: <20211001193415.23288-5-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20211001193415.23288-1-viacheslavo@nvidia.com> References: <20210922180418.20663-1-viacheslavo@nvidia.com> <20211001193415.23288-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: 4971f9ea-3fbe-4a8c-bde4-08d9851289bd X-MS-TrafficTypeDiagnostic: DM4PR12MB5150: 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: Je1S31Emp5cJreSBtxwzik9QFrLFI7KyElu2IZAz3dWm9ihmVcOkDqr0nHiXm1UfTwcZZCgbF0s1dFpi4GdPtp800mzy4qdEGAvRWZXOmmwWGRPMRKORvzSIox+Wl8aw/Opmh4kwcTLA90wdiFTP+ULk7f/aTXEiNS7w+yzVqjKm8BJTlFQ2MLY3sEln1EDBfLeDsdKnNGJ0lv/w0qiOjqB9it+lMgQi7Dr5yn9EUPl9KtNmYn/XswTSHlvIkExly/RsobteumGejqESFyB22hrSfUeMPBQYzNt3qPUKWSUxBc6nDVo1BlREplvn0E514bUQGIkVkr5jQO6rChfy08xNe0vOvRBgHfAdz2xB8jyijAfgQXSSt9cwMUk7dwjtF2U7MyNLMYkSpWvG+/BrqX6FWTDNESxmUsM5++mzlOULbLZ4ReQqZJkbHVWKTIC6OVTo5/baZIe1IT+QQDZ4Ly5UCD5chGTB9nXYIAyvQTuwuUDPHcIVUmnytySHlXgkUMvZ6PoFw45CtGX5IIJ/tB2nHdh05RjrdcfNWtfGEtLVjg6cxXuTRvHH6iwCSWSELJZUYrJfeWuEl/UrkuDr3XcILbGOdfqBQc+Dp/tEYhmwkHm2Z4b8cdcJUrVDv07GYXwdLFj50Th41lfrvc97AGsUhXR8cvYde4/4Ef9vWkCBhID1GjKr+RlV+h0r8T4+Qmgjj7oG2l/RTmhaPO6YVA== 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)(46966006)(36840700001)(16526019)(36756003)(8676002)(6286002)(70206006)(36860700001)(186003)(336012)(426003)(4326008)(8936002)(6916009)(55016002)(6666004)(1076003)(5660300002)(7696005)(2906002)(2616005)(47076005)(70586007)(26005)(86362001)(82310400003)(54906003)(508600001)(316002)(356005)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2021 19:34:51.4725 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4971f9ea-3fbe-4a8c-bde4-08d9851289bd 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: BN8NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5150 Subject: [dpdk-dev] [PATCH v2 04/14] 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 --- 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