From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7482BA04B1; Sun, 22 Nov 2020 22:09:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09E15FFA; Sun, 22 Nov 2020 22:09:42 +0100 (CET) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id AC7822AB; Sun, 22 Nov 2020 22:09:38 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 4589C5C007C; Sun, 22 Nov 2020 16:09:37 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 22 Nov 2020 16:09:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= 1fonILZypcWP0GSktT032U8MGBlJaJt944ErzTSkwCY=; b=TG/HPETuiX80bBf2 ANgD7QWO8zOybz3SOCOH5n4qzO8wA70+3NQROfsjkC+PAFvDZECTyQPXw8kt9Q0f uKXkToI0sna+qwAHuZUwXgjstdv/fv2vWkemsK3P436lhdqWx/hy3ogu89gmv/LS MKkMEicQ5+NwfsU7XB8mtzGhcEWJ80kOcmZqi2WWP2w9tuy3QEdmYHV1cqn0XkTY Pe9H6KMZqyoklCNlWGpFw/3xl37D1G0zUgR3EQlNbMalz8RTIUVe1Vcq8TRnuP3n DxdIVvkeTvKcvcgFRfY0fejLyTjJngbKW9Mq8SMsorvq87cOdYWZSonI99CB34Ma X5Qiog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=1fonILZypcWP0GSktT032U8MGBlJaJt944ErzTSkw CY=; b=NychCX6ULVs6l7kjUOpbaxRQErLknG75Hc5Uq8YzRw5sZzQlwl7zX05hs t8lBX+JoZ2gksjdEzFEDYMSLLt8pHqp0wXBiZmK3p9mrd4lquCh9iB2MxjtcWAi3 9ot4DWTjYYkytRFmfXkzEjLdpXVfyKdjE9IrhwWyBzUTNH1RPNWTm3S6xpHyNh2L lYq5CFpYSqcL4U0bqEx4dPGRVlTCVBGoscZUCb48kT4FQrVaV5MYwe3T2s9nLihn 05+r+7NT7AOz8lx8t1DrGqiCtUwD5in6QMe6ApIpvcz0jO+CBnlmP2iTuyWClEDD XN1TZSSFambW6OaAorh7UVhKQ9Sqw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeggedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthhqredttddtudenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeefgeffiefhfeettdfhvdfgteekffffudekvedtvedtvdfgveeu udevgedvgeegtdenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr lhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AFB55328005A; Sun, 22 Nov 2020 16:09:35 -0500 (EST) From: Thomas Monjalon To: Julien Massonneau Cc: dev@dpdk.org, stable@dpdk.org, david.marchand@redhat.com, Stephen Hemminger Date: Sun, 22 Nov 2020 22:09:34 +0100 Message-ID: <6856178.pT7LhGLBB5@thomas> In-Reply-To: <20201119094401.1322-1-julien.massonneau@6wind.com> References: <20201119094401.1322-1-julien.massonneau@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [dpdk-dev] [PATCH] usertools: fix parsing error from dpdk-pmdinfo.py X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" 19/11/2020 10:44, Julien Massonneau: > In the display_pmd_info_strings function, the script parses the section > until to find a byte between 32 and 127, and get all data > until a byte equals to 0. > After, it searches "PMD_INFO_STRING" in the data and passes the whole > string in the parse_pmd_info_string function, which split the string > with "=3D" and convert it in python dict with json.loads(). >=20 > But the string may contain a "=3D" before "PMD_INFO_STRING", > so it is not correctly split and will lead to an error > (json.decoder.JSONDecodeError). >=20 > Example of a string encountered that leads to an error: >=20 > "Ag%=3DC=A3=B0=D0=CA+=CB=AE{0=B4w=CB-=A30=F2jB=B7;=BE=AC=FAPMD_INFO_STRIN= G=3D {"name" : > "net_octeontx", "params" : "nr_port=3D ", "pci_ids" : []}" >=20 > Fixes: c67c9a5c646a ("tools: query binaries for HW and other support info= rmation") > Cc: stable@dpdk.org >=20 > Signed-off-by: Julien Massonneau Applied, thanks