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 02E70A034F; Mon, 11 Oct 2021 20:16:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F56B4115A; Mon, 11 Oct 2021 20:16:05 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2054.outbound.protection.outlook.com [40.107.244.54]) by mails.dpdk.org (Postfix) with ESMTP id 1B28641152 for ; Mon, 11 Oct 2021 20:16:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O0WumSB+j0gsQ+NQLF8ojsGdyRH8TDL+4IotuZncwJsSm+lMomZA5ejE6fQwyhPpGpiAf/aD7plmyzGQhxx6R3rtuQHDe/pbUH2c8gnQ+QU8lzd5JLBGMdLW2QLmv6T9RDDG6j0U1EZy986wCI5L/v0B/sDh5kTLASfhRZKuwLlLku8JKnRn9OVF48luc9kLifjhBW6c7rLDOkB3pjnsGL3zeO/OKQOSaP4NoNCp4/Fe8sWnvZJN+Rjsi7+iYo/fhK7XgnRwlGF9KIQJoX/q2lpgPep+W62KOjmgwVdvk4h10z0/sincYMTtrxY0j0/8e4fkK3KwJPtzRqN3XHk7kQ== 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=StiV4QXl6XpBFxpMRzv1VBtuHjPXm5Hg4IWjYQq0kLeGUDGmK3ZSIc+vTsrXLAhMMxkIPuRd5CwRSA+WAtg8GyJdAH1BFvtE8Su+GGMDVhsKcER5Mb6uRZ80vAPAZmKWksy1PG8Xu3OV1FCTg50iHAUk1h0zcwwNQk94D/wWPnIj5AfB000mEB1u5L2X3gACYa1u+L0dYtghGCxw3Z0wEPgrmLicJwqPcSynMLkfx2M9ZFHfEiRRpNqxWBwAXBFanbnGFQZus46ugxmtElhtShO55Xm5fQrOT4gcMu1+Slf14LMiFv+AmRinoHaku21vaqUVkBCF5XUUH550gpMxEg== 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=Th6mRJECj2+LDCnZoirMbbHqgUs+5Nu32Kg2+jF4tSE=; b=RttK/H4CRVhJB+ZtzL/nE9DXnWsw3ZsAOohnVLkPdn2brLTkBbwg7vFAtDyVZT3nLjcXfTArCVvMHyPozzTU1eVqmjrjIb20CdGvECqvSGYgqojoKv30B7O6MBve1TkulCkjONsK+mhM84G3Zr69fInbKoyTG8rTcRWtp/wVcWfujKBrGWGE2r+76SsVNUKtco/QNFLkeSi4msSU57hJXLmrrEtaRsxH2Fte2PXk8LL1sVqJ/+x1WTTkLvxpb0XoCzIx+YGcveuS/OnJLjUWOB+h5q1x3mzaw/EGGYolsY7ADO9x8IddXtDU3FrUOAITQlPmjdWMqhlxahblEe8nxw== Received: from MW4PR03CA0026.namprd03.prod.outlook.com (2603:10b6:303:8f::31) by DM6PR12MB4467.namprd12.prod.outlook.com (2603:10b6:5:2a8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25; Mon, 11 Oct 2021 18:16:02 +0000 Received: from CO1NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8f:cafe::39) by MW4PR03CA0026.outlook.office365.com (2603:10b6:303:8f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.26 via Frontend Transport; Mon, 11 Oct 2021 18:16:02 +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 CO1NAM11FT036.mail.protection.outlook.com (10.13.174.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4587.18 via Frontend Transport; Mon, 11 Oct 2021 18:16:01 +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, 11 Oct 2021 18:15:59 +0000 From: Viacheslav Ovsiienko To: CC: , , , , , Date: Mon, 11 Oct 2021 21:15:27 +0300 Message-ID: <20211011181528.517-5-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20211011181528.517-1-viacheslavo@nvidia.com> References: <20210922180418.20663-1-viacheslavo@nvidia.com> <20211011181528.517-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: 12044d30-3524-488b-702f-08d98ce32ec2 X-MS-TrafficTypeDiagnostic: DM6PR12MB4467: 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: dFjPM2ABFwxCtmFjZaqsMSFqTmXokxC566RCMEfzv0mVJFmyE1oH84p0UPoDBgL1M+xiY9GBVfbeDsNmYoD3ytj6Mfb8+FBAjE87kPrUbz78Pq4wAS0Z8YZ/koadr/TXoOiCBWpXfAyWVGluJOqbnsq8AJNE3Y6qj7DxcE8n0A4oU0p3k6jkDz+EEIYmpo3l3RRw6PZfZ4ZxRrkx0jGq41gKPpDiZhF24vdzrfJKMSzLDceBm0mosodu/up26JqIMIICEDcOGtSsfcIg3NUyd3EVZ9p4okM4wqTAuuEbuUf6Cx0wHzyIyb5J2MX5yFCk4rMlzB1zhkYIplAdtICq/hRUAPGuEiytk96YVwFIwmssCOs45IE0peVYFNb/xv+Xda4nkWnp0f09z4V26fAgM8W0EldFol2BpZw3qg3RMcgE76/20Q1r2mO3+Mp6kFJda7jukbFGp2f/prnfT4uIJGZ8fvTRf3FYABEiQWu2nkllruiDiUO0HV7YHUCnt00jSoml1ka6TXy+lXmizqqU5jbXxtHDiZClk7r5Gmj2Sq+O1joqNd2PjjWVYUXZOkIrD2M97Ls8gQ2uzvMGrqX+vNrwUEmEifOvjpq9hAjPZpkmO1wTzPdxcdq0eIdlaGGOcoDcGFOHpgswUrcPCqqXHb1yFU6/vxEGDq2q405WDw6CJ/gL7u6eh8zNH/d+OV4DZEXaY3eOQt8EOPzwuQTK8Q== 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)(6916009)(54906003)(4326008)(6286002)(36860700001)(186003)(316002)(6666004)(336012)(16526019)(426003)(2616005)(26005)(2906002)(356005)(36756003)(508600001)(7696005)(82310400003)(55016002)(47076005)(70586007)(70206006)(7636003)(1076003)(86362001)(8676002)(8936002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2021 18:16:01.6966 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12044d30-3524-488b-702f-08d98ce32ec2 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: CO1NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4467 Subject: [dpdk-dev] [PATCH v3 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