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 5C7B2A0C43; Mon, 18 Oct 2021 20:03:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B048440683; Mon, 18 Oct 2021 20:03:41 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2055.outbound.protection.outlook.com [40.107.94.55]) by mails.dpdk.org (Postfix) with ESMTP id E723840141 for ; Mon, 18 Oct 2021 20:03:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WY2ZLaHYE9VID6dosixsTVIM1wuGR9rI0coYi4grXfojjRWbQX9VBMXvyIyneeleXAqfT6vL3PdTH4zOqz7DF9SZ711W/TwSsXVsauKC4vZSFqevFzV+gaCTn58gusxmyKPWv8hlS5rfPB/AMtTTMpqDVVhCItw/pEgXRhnqw6NjaFrq5o38CNtfoDfJ11dU6Ykz3kW+HqQuhBqIuBL2V4XbloOuWfMd5IQ1UFQjKNeGRrsONfDUL9J7MSq4/HKnrIGP72OxC+sRlmRjgbjc+pvl8tc9QFz4CxfZdDpFieletl7E87eOf9w4n5n9zxzEMQTQCtCX8/Q6/3+bjv7OiQ== 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=ekExBL9tuUFgax1/QLChBqf0AcusKQTL9FWK1ox2gl8=; b=lV+UPhYapUl2dN+M45t6vN2X+9PSnzGlur9YNmAceDqhEUcGy2HYaCmJV/xM9KAVv3pAiToUewHt9FMqy6LkZC5aV7gIVEjCHOyn6AD5qc0liQdQ1cXRs/Z0c4CPyOJXzwWV4XFiTDiHIM7BN9dQiACLrov70ZyY2/xBfb6I8IO/XVPOrLdhQzmZ3pRH5Ay6b90Lxs2W9DW+7TnSOyXasLG1IbSVY8VmpZ8tpmCvqiBQ6oU3vcfO4kx+PE9+reaDkmpOHWS+gzPPmsSx6bPB9e08ABQz3HInwPkFfZ1Wzq+XGeZULqAzfyme3JAhR8QC+X3Dwzne3vXLtwEJOtcVOw== 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=ekExBL9tuUFgax1/QLChBqf0AcusKQTL9FWK1ox2gl8=; b=QoRBlammpPsad3PMNc1qHSX67TZ+RN7zCc3yXRhEYVAZhrjcLQFY4CzJ1RJwSHB/Oquk4nZT0koZamZCgyOiNpc/hp/CqycFfEvdfaScfSmeDYH21eOyKH/gX3CqYajtl89RqHGcqhCDx0jm/c4l0TaqsbRnAszoBSiQSL7LewAu1DVTPzraixQZxfF0YTdZE5+lLpR85afYSjSg0FzUtYVJ7uQkh3IlqaklsD6W0aDyoZ2rJXv4PscvTl2yevbfWHh9Z+USSIyMJqVgNnkgZODxLpOt9oFY8MX6i60G0nhreuLQLGK2pKJBQvRDHW8tnokVCh3mPhksINYdHSfnDQ== Received: from CO2PR04CA0093.namprd04.prod.outlook.com (2603:10b6:104:6::19) by CH2PR12MB4823.namprd12.prod.outlook.com (2603:10b6:610:11::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Mon, 18 Oct 2021 18:03:39 +0000 Received: from CO1NAM11FT030.eop-nam11.prod.protection.outlook.com (2603:10b6:104:6:cafe::4c) by CO2PR04CA0093.outlook.office365.com (2603:10b6:104:6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.14 via Frontend Transport; Mon, 18 Oct 2021 18:03:39 +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 CO1NAM11FT030.mail.protection.outlook.com (10.13.174.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 18:03:38 +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; Mon, 18 Oct 2021 18:03:29 +0000 From: Viacheslav Ovsiienko To: CC: , , , , , Date: Mon, 18 Oct 2021 21:02:50 +0300 Message-ID: <20211018180252.14106-5-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20211018180252.14106-1-viacheslavo@nvidia.com> References: <20210922180418.20663-1-viacheslavo@nvidia.com> <20211018180252.14106-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: 0d596b1f-d96f-455c-69f4-08d992619cbc X-MS-TrafficTypeDiagnostic: CH2PR12MB4823: 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: +dwM+1L7MCOhn5AXWEzF4EMn5Fxkn6RpwCGhsIfwYOMwr0jbx2a5EDeRiCnr0sN/GzWU/cznhso0dyORM55ZQhNwI6cM7PO1sZGNKif3Ht5vch0XQTaHSXJ5tU2T0NzOgTr+YaqX7RmJdNKWYuMcd0BdAw46df8UK8sunEQTx5JLCmqPpdLRLobhEprLJEeyBtafi0cOFeJyX7OkYAYqwwEW5lH0wt5M5F/S+PkBgXaEV8RjCLhOlgniU7+VwjFaiKXRI6OVMeeHb6Q8iuU/4wz+41ld4P++SIG8QAcJ6068nWZG5/Q0LJrgFiPqk4qEmUthAvzw14W3Xs5XxEvOvbLImIoxZ0XUzhBKTSHOkejLWdr5SzofKJLx8qZEgHTpsRT4Z3+X24SrGiSxNmVle3e5/1iqPLeIVmLmY+cWRs39RVFSTIm69iaLJi/Fvskh/sCus1AUqVn7i2238FfFilacTHMdR5blWkp2gEl3qsksuJYCiGv40wlSeVsCJtQJJjmrxqDgEJ+yBIYcELpOiLmZ5KqZ7Vo/yiTxr4Z87FNrlf3mpL8qNfhsviZ3XieB/Af5wtE4gRM+uwUbNqRLlr57WHOrw0XzFai2KydvAu4W0Yup/n+R/5HCiOjEFy2d6SsIEKIqt7c29xnqSvWXzWy5+RpvPOf/XpBRaIa9GmTPuL9L8qNNbYQxhFMYB/ebrfE3n3clCVDzZuX1DvUGEQ== 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)(55016002)(54906003)(70206006)(82310400003)(7636003)(4326008)(508600001)(70586007)(6666004)(5660300002)(86362001)(2906002)(6916009)(426003)(6286002)(186003)(26005)(36756003)(8936002)(316002)(8676002)(2616005)(47076005)(36860700001)(1076003)(7696005)(356005)(336012)(16526019); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 18:03:38.3295 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d596b1f-d96f-455c-69f4-08d992619cbc 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: CO1NAM11FT030.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4823 Subject: [dpdk-dev] [PATCH v6 4/6] 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 Acked-by: Ori Kam --- 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 e9d9db06ce..fc43bf2763 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