Go to file
Julien Massonneau 3515fa1e5e usertools: fix pmdinfo parsing
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 "=" and convert it in python dict with json.loads().

But the string may contain a "=" before "PMD_INFO_STRING",
so it is not correctly split and will lead to an error
(json.decoder.JSONDecodeError).

Example of a string encountered that leads to an error:

"Ag%=C£°ÐÊ+Ë®{0´wË-£0òjB·;¾¬úPMD_INFO_STRING= {"name" :
"net_octeontx", "params" : "nr_port=<int> ", "pci_ids" : []}"

Fixes: c67c9a5c64 ("tools: query binaries for HW and other support information")
Cc: stable@dpdk.org

Signed-off-by: Julien Massonneau <julien.massonneau@6wind.com>
2020-11-22 22:22:44 +01:00
.ci ci: reduce examples in static builds 2020-04-17 23:34:08 +02:00
app app/flow-perf: fix raw encapsulation size 2020-11-22 17:07:34 +01:00
buildtools pmdinfogen: fix build with gcc 11 2020-10-08 12:45:54 +02:00
config build: fix gcc warning requiring Wformat 2020-11-22 19:38:25 +01:00
devtools devtools: rename build test verbosity variables 2020-11-20 16:06:08 +01:00
doc net/mlx5: allow unknown link speed 2020-11-22 15:36:56 +01:00
drivers net/bnxt: fix format specifier for unsigned numbers 2020-11-22 21:29:27 +01:00
examples examples/l3fwd-power: check packet types after start 2020-11-22 18:27:08 +01:00
kernel kni: move header file from EAL 2020-10-31 16:13:10 +01:00
lib eal/windows: fix linkage with MinGW 2020-11-22 18:55:01 +01:00
license license: remove dual prefix 2020-11-04 20:17:28 +01:00
usertools usertools: fix pmdinfo parsing 2020-11-22 22:22:44 +01:00
.editorconfig devtools: add EditorConfig file 2020-02-22 21:05:22 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore regex/mlx5: introduce driver for BlueField 2 2020-07-21 19:04:05 +02:00
.travis.yml ci: add tests jobs in aarch64 vm 2020-09-30 21:52:54 +02:00
ABI_VERSION version: 20.11-rc0 2020-08-12 11:32:16 +02:00
MAINTAINERS maintainers: update for OCTEON TX2 DMA and EP 2020-11-22 13:17:20 +01:00
Makefile build: create dummy Makefile 2020-09-07 23:51:57 +02:00
meson_options.txt crypto/armv8: replace meson option with pkg-config support 2020-11-13 10:34:04 +01:00
meson.build examples: fix flattening directory layout on install 2020-11-12 19:33:06 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 20.11-rc4 2020-11-16 00:14:43 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org