This patch set addresses fixing issues in the ntnic PMD driver. Changes in this patch:
The issues detected by the Coverity Scan tool. The problems that were detected by the internal tests. Fix for Bug 1622: ntnic: using signals and threads: https://bugs.dpdk.org/show_bug.cgi?id=1622. The handling of signals within the PMD driver was removed. For manipulation with all threads dedicated EAL API (rte_thread_create_internal_control) is used. Product by design requires usage of threads inside PMD driver. Danylo Vodopianov (26): net/ntnic: fix index verification net/ntnic: add thread check return code net/ntnic: add return code handling net/ntnic: add array index verification net/ntnic: fix realloc memory leak net/ntnic: fix array index verification net/ntnic: add var definition transparently net/ntnic: add proper var freed net/ntnic: remove unused code net/ntnic: fix potentially overflow net/ntnic: add null checking net/ntnic: fix overflow issue net/ntnic: fix untrusted loop bound net/ntnic: add null checking net/ntnic: move null checking net/ntnic: fix var size net/ntnic: fix var overflow net/ntnic: remove unused code net/ntnic: remove convert error func net/ntnic: fix array verification net/ntnic: fix memory leak net/ntnic: remove unused code net/ntnic: refactor RSS implementation net/ntnic: fix age timeout recalculation into fpga unit net/ntnic: rework age event generation net/ntnic: fix group print Oleksandr Kolomeiets (2): net/ntnic: remove extra address-of operator net/ntnic: remove extra check for null Serhii Iliushyk (6): net/ntnic: extend module mapping net/ntnic: refactoring of the FPGA initialization net/ntnic: remove shutdown thread net/ntnic: add checks for action modify net/ntnic: add IFR DROP counter net/ntnic: remove tag EXPERIMENTAL MAINTAINERS | 2 +- .../net/ntnic/adapter/nt4ga_stat/nt4ga_stat.c | 18 +- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 10 +- drivers/net/ntnic/include/create_elements.h | 1 - drivers/net/ntnic/include/flow_api.h | 10 +- drivers/net/ntnic/include/flow_api_engine.h | 2 + drivers/net/ntnic/include/hw_mod_backend.h | 24 +- drivers/net/ntnic/include/hw_mod_tpe_v3.h | 5 + drivers/net/ntnic/include/ntnic_stat.h | 9 + .../link_mgmt/link_100g/nt4ga_link_100g.c | 2 +- drivers/net/ntnic/meson.build | 1 + drivers/net/ntnic/nthw/core/nthw_fpga.c | 14 +- drivers/net/ntnic/nthw/flow_api/flow_api.c | 83 +- .../nthw/flow_api/flow_backend/flow_backend.c | 28 +- drivers/net/ntnic/nthw/flow_api/flow_group.c | 26 + .../net/ntnic/nthw/flow_api/flow_hsh_cfg.c | 661 +++++++++++++ .../net/ntnic/nthw/flow_api/flow_hsh_cfg.h | 17 + .../ntnic/nthw/flow_api/hw_mod/hw_mod_flm.c | 14 +- .../ntnic/nthw/flow_api/hw_mod/hw_mod_hsh.c | 19 +- .../ntnic/nthw/flow_api/hw_mod/hw_mod_pdb.c | 18 +- .../ntnic/nthw/flow_api/hw_mod/hw_mod_tpe.c | 58 +- .../profile_inline/flow_api_hw_db_inline.c | 29 +- .../profile_inline/flow_api_profile_inline.c | 925 +++--------------- .../profile_inline/flow_api_profile_inline.h | 8 +- .../ntnic/nthw/flow_filter/flow_nthw_ifr.c | 32 + .../ntnic/nthw/flow_filter/flow_nthw_ifr.h | 15 +- .../ntnic/nthw/flow_filter/flow_nthw_rpp_lr.c | 10 +- drivers/net/ntnic/nthw/stat/nthw_stat.c | 2 + .../nthw/supported/nthw_fpga_mod_str_map.c | 24 + drivers/net/ntnic/ntnic_ethdev.c | 69 +- drivers/net/ntnic/ntnic_filter/ntnic_filter.c | 155 ++- drivers/net/ntnic/ntnic_mod_reg.h | 11 +- drivers/net/ntnic/ntnic_xstats/ntnic_xstats.c | 10 +- 33 files changed, 1204 insertions(+), 1108 deletions(-) create mode 100644 drivers/net/ntnic/nthw/flow_api/flow_hsh_cfg.c create mode 100644 drivers/net/ntnic/nthw/flow_api/flow_hsh_cfg.h -- 2.45.0