DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1 0/7] migrate threads to DPDK service framework
@ 2025-09-08 11:04 Serhii Iliushyk
  2025-09-08 11:04 ` [PATCH v1 1/7] net/ntnic: introduce service API for NTNIC PMD Serhii Iliushyk
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Serhii Iliushyk @ 2025-09-08 11:04 UTC (permalink / raw)
  To: dev; +Cc: mko-plv, sil-plv, ckm, stephen

This modification provides better resource (CPU) management for NTNIC PMD.

The following threads are migrated:
        * FLM update thread
        * Statistic thread
        * Port event thread
        * Adapter monitoring thread
Additionally, a warning is added to inform users about the importance of
dedicating lcores to the DPDK service framework when using the NTNIC PMD.
The code is also cleaned up to use pthreads and rte_thread APIs.

After this patch series, an each application using NTNIC PMD should
dedicate at least five(5) cores for DPDK service framework to ensure
proper operation of the NTNIC PMD.

The sercvice cores can be dedicated by EAL options:
        * s SERVICE COREMASK Hexadecimal bitmask of cores to be used as service cores
        * S SERVICE CORELIST List of cores to run services on
Or with special API by application itself.
        * rte_pmd_ntnic_service_set_lcore to map a service to a specific lcore
        * rte_pmd_ntnic_service_get_id to get a service ID.


Serhii Iliushyk (7):
  net/ntnic: introduce service API for NTNIC PMD
  net/ntnic: migrate flm update thread to service
  net/ntnic: migrate statistic thread to service
  net/ntnic: migrate port event thread to service
  net/ntnic: migrate adapter mon thread to service
  net/ntnic: add warning about service cores
  net/ntnic: cleanup using pthreads and rte_thread

 doc/guides/nics/ntnic.rst                     | 112 ++++
 drivers/net/ntnic/adapter/nt4ga_adapter.c     |  27 +-
 .../net/ntnic/include/common_adapter_defs.h   |  15 -
 drivers/net/ntnic/include/nt4ga_adapter.h     |   4 -
 drivers/net/ntnic/include/ntdrv_4ga.h         |   4 -
 drivers/net/ntnic/include/ntnic_stat.h        |   2 +-
 drivers/net/ntnic/include/ntos_drv.h          |   4 +-
 .../link_mgmt/link_100g/nt4ga_link_100g.c     | 303 +++++-----
 .../link_agx_100g/nt4ga_agx_link_100g.c       | 306 ++++++-----
 drivers/net/ntnic/meson.build                 |   2 +
 drivers/net/ntnic/nthw/core/nthw_pca9532.c    |   2 -
 drivers/net/ntnic/nthw/core/nthw_pcal6416a.c  |   1 -
 .../net/ntnic/nthw/core/nthw_si5332_si5156.c  |   1 -
 .../profile_inline/flow_api_profile_inline.c  |   2 +-
 drivers/net/ntnic/ntnic_ethdev.c              | 520 ++++++++++--------
 drivers/net/ntnic/ntnic_filter/ntnic_filter.c |  17 +
 drivers/net/ntnic/ntutil/nt_service.c         | 127 +++++
 drivers/net/ntnic/ntutil/nt_service.h         |  62 +++
 drivers/net/ntnic/ntutil/nt_util.c            |   2 +-
 drivers/net/ntnic/rte_pmd_ntnic.c             | 104 ++++
 drivers/net/ntnic/rte_pmd_ntnic.h             |  26 +
 21 files changed, 1073 insertions(+), 570 deletions(-)
 delete mode 100644 drivers/net/ntnic/include/common_adapter_defs.h
 create mode 100644 drivers/net/ntnic/ntutil/nt_service.c
 create mode 100644 drivers/net/ntnic/ntutil/nt_service.h
 create mode 100644 drivers/net/ntnic/rte_pmd_ntnic.c

-- 
2.45.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-09-08 20:08 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-08 11:04 [PATCH v1 0/7] migrate threads to DPDK service framework Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 1/7] net/ntnic: introduce service API for NTNIC PMD Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 2/7] net/ntnic: migrate flm update thread to service Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 3/7] net/ntnic: migrate statistic " Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 4/7] net/ntnic: migrate port event " Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 5/7] net/ntnic: migrate adapter mon " Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 6/7] net/ntnic: add warning about service cores Serhii Iliushyk
2025-09-08 11:04 ` [PATCH v1 7/7] net/ntnic: cleanup using pthreads and rte_thread Serhii Iliushyk
2025-09-08 14:17   ` [PATCH v2 0/7] migrate threads to DPDK service framework Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 1/7] net/ntnic: introduce service API for NTNIC PMD Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 2/7] net/ntnic: migrate flm update thread to service Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 3/7] net/ntnic: migrate statistic " Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 4/7] net/ntnic: migrate port event " Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 5/7] net/ntnic: migrate adapter mon " Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 6/7] net/ntnic: add warning about service cores Serhii Iliushyk
2025-09-08 14:17     ` [PATCH v2 7/7] net/ntnic: cleanup using pthreads and rte_thread Serhii Iliushyk
2025-09-08 20:08 ` [PATCH v1 0/7] migrate threads to DPDK service framework Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).