numam-dpdk/doc/guides
Robin Jarry 0ce3cf4afd usertools/pmdinfo: rewrite simpler script
dpdk-pmdinfo.py does not produce any parseable output. The -r/--raw flag
merely prints multiple independent JSON lines which cannot be fed
directly to any JSON parser. Moreover, the script complexity is rather
high for such a simple task: extracting PMD_INFO_STRING from .rodata ELF
sections. Rewrite it so that it can produce valid JSON.

Remove the PCI database parsing for PCI-ID to Vendor-Device names
conversion. This should be done by external scripts (if really needed).

The script passes flake8, black, isort and pylint checks.

I have tested this with a matrix of python/pyelftools versions:

                                 pyelftools
               0.22  0.23  0.24  0.25  0.26  0.27  0.28  0.29
        3.6      ok    ok    ok    ok    ok    ok    ok    ok
        3.7      ok    ok    ok    ok    ok    ok    ok    ok
 Python 3.8      ok    ok    ok    ok    ok    ok    ok    ok
        3.9      ok    ok    ok    ok    ok   *ok    ok    ok
        3.10   fail  fail  fail  fail    ok    ok    ok    ok

                                     * Also tested on FreeBSD

All failures with python 3.10 are related to the same issue:

  File "elftools/construct/lib/container.py", line 5, in <module>
    from collections import MutableMapping
  ImportError: cannot import name 'MutableMapping' from 'collections'

Python 3.10 support is only available since pyelftools 0.26. The script
will only work with Python 3.6 and later.

Update the minimal system requirements, docs and release notes.

Signed-off-by: Robin Jarry <rjarry@redhat.com>
Tested-by: Ferruh Yigit <ferruh.yigit@amd.com>
Tested-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2022-10-11 02:11:33 +02:00
..
bbdevs baseband/acc100: introduce PMD for ACC101 2022-06-21 20:04:49 +02:00
compressdevs replace Mellanox with NVIDIA 2022-10-03 16:01:56 +02:00
contributing eal/loongarch: support LoongArch architecture 2022-10-06 12:45:05 +02:00
cryptodevs crypto/ipsec_mb: support all tag sizes for ZUC-EIA3-256 2022-10-07 19:46:11 +02:00
dmadevs dma/dpaa2: support statistics 2022-06-01 08:58:27 +02:00
eventdevs event/dlb2: optimize producer port probing 2022-09-30 10:24:36 +02:00
faq usertools: remove dpdk-setup.sh 2020-11-27 17:25:24 +01:00
freebsd_gsg doc: make doc roadmap common for Linux and BSD guides 2022-06-26 23:36:39 +02:00
gpus replace Mellanox with NVIDIA 2022-10-03 16:01:56 +02:00
howto doc: relate bifurcated driver and flow isolated mode 2022-10-04 17:01:03 +02:00
linux_gsg usertools/pmdinfo: rewrite simpler script 2022-10-11 02:11:33 +02:00
mempool drivers: remove octeontx2 drivers 2022-01-12 15:36:32 +01:00
nics net/mana: fix dependencies 2022-10-11 01:34:07 +02:00
platform drivers: mark cnxk to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
prog_guide kni: flag deprecated status at build time 2022-10-10 17:01:59 +02:00
rawdevs raw/ioat: remove deprecated driver 2022-09-28 14:41:07 +02:00
regexdevs replace Mellanox with NVIDIA 2022-10-03 16:01:56 +02:00
rel_notes usertools/pmdinfo: rewrite simpler script 2022-10-11 02:11:33 +02:00
sample_app_ug examples/l3fwd-power: add options for uncore frequency 2022-10-10 14:53:40 +02:00
testpmd_app_ug app/testpmd: add protocol-based buffer split 2022-10-09 16:41:31 +02:00
tools usertools/pmdinfo: rewrite simpler script 2022-10-11 02:11:33 +02:00
vdpadevs replace Mellanox with NVIDIA 2022-10-03 16:01:56 +02:00
windows_gsg doc: discourage using Meson 0.58 on Windows 2021-11-17 09:50:23 +01:00
conf.py doc: replace deprecated distutils version parsing 2022-01-11 14:33:09 +01:00
custom.css doc: add SPDX tag to custom CSS file 2021-05-19 11:02:02 +02:00
index.rst gpudev: introduce GPU device class library 2021-11-08 17:20:52 +01:00
meson.build build: change indentation in infrastructure files 2021-04-21 14:04:09 +02:00