use NUMA node terminology across the tree
Subsystems (11)
PATCH 217/227 examples/skeleton: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Rename socket_id parameters, local variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
--- examples/skeleton/basicfwd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
examples/skeleton/basicfwd.c +6 -6
@@ -66,7 +66,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)/* Allocate and set up 1 RX queue per Ethernet port. */ for (q =0 ; q < rx_rings; q++) { retval =rte_eth_rx_queue_setup (port, q, nb_rxd, -rte_eth_dev_socket_id (port),NULL , mbuf_pool); +rte_eth_dev_numa_id (port),NULL , mbuf_pool);if (retval <0 )return retval; }
@@ -76,7 +76,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)/* Allocate and set up 1 TX queue per Ethernet port. */ for (q =0 ; q < tx_rings; q++) { retval =rte_eth_tx_queue_setup (port, q, nb_txd, -rte_eth_dev_socket_id (port), &txconf); +rte_eth_dev_numa_id (port), &txconf);if (retval <0 )return retval; }
@@ -123,9 +123,9 @@ lcore_main(void)* for best performance. */ RTE_ETH_FOREACH_DEV(port) - if (rte_eth_dev_socket_id(port) >= 0 && - rte_eth_dev_socket_id(port) != - (int)rte_socket_id()) + if (rte_eth_dev_numa_id(port) >= 0 && + rte_eth_dev_numa_id(port) != + (int)rte_numa_id()) printf("WARNING, port %u is on remote NUMA node to ""polling thread.\n\tPerformance will " "not be optimal.\n", port);
@@ -194,7 +194,7 @@ main(int argc, char *argv[])/* Create and allocate a mempool to hold the mbufs. 8< */ mbuf_pool =rte_pktmbuf_pool_create ("MBUF_POOL" ,NUM_MBUFS * nb_ports, -MBUF_CACHE_SIZE ,0 ,RTE_MBUF_DEFAULT_BUF_SIZE ,rte_socket_id ()); +MBUF_CACHE_SIZE ,0 ,RTE_MBUF_DEFAULT_BUF_SIZE ,rte_numa_id ());/* >8 End of allocating mempool to hold mbuf. */ if (mbuf_pool ==NULL )
Signature · 1 line
2.55.0
PATCH 218/227 examples/vhost: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Rename socket_id parameters, local variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
--- examples/vhost/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
examples/vhost/main.c +3 -3
@@ -320,7 +320,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool) rxconf->offloads = port_conf.rxmode.offloads;for (q =0 ; q < rx_rings; q ++) { retval =rte_eth_rx_queue_setup (port, q, rx_ring_size, -rte_eth_dev_socket_id (port), +rte_eth_dev_numa_id (port), rxconf, mbuf_pool);if (retval <0 ) {
@@ -333,7 +333,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool) txconf->offloads = port_conf.txmode.offloads;for (q =0 ; q < tx_rings; q ++) { retval =rte_eth_tx_queue_setup (port, q, tx_ring_size, -rte_eth_dev_socket_id (port), +rte_eth_dev_numa_id (port), txconf);if (retval <0 ) { RTE_LOG(ERR, VHOST_PORT,
@@ -1559,7 +1559,7 @@ main(int argc, char *argv[])*/ mbuf_pool =rte_pktmbuf_pool_create ("MBUF_POOL" , total_num_mbufs,MBUF_CACHE_SIZE ,0 ,MBUF_DATA_SIZE , -rte_socket_id ()); +rte_numa_id ());if (mbuf_pool ==NULL )rte_exit (EXIT_FAILURE ,"Cannot create mbuf pool\n" );
Signature · 1 line
2.55.0
PATCH 219/227 examples/vhost_crypto: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Rename socket_id parameters, local variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
--- examples/vhost_crypto/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
examples/vhost_crypto/main.c +8 -8
@@ -313,7 +313,7 @@ new_device(int vid) } ret =rte_vhost_crypto_create (vid, info->cid, info->sess_pool, -rte_lcore_to_socket_id (options.los[i].lcore_id)); +rte_lcore_to_numa_id (options.los[i].lcore_id));if (ret) {RTE_LOG (ERR ,USER1 ,"Cannot create vhost crypto\n" );return ret;
@@ -510,8 +510,8 @@ main(int argc, char *argv[])struct lcore_option *lo = &options.los[i];struct vhost_crypto_info *info; - info =rte_zmalloc_socket (NULL ,sizeof (*info), -RTE_CACHE_LINE_SIZE ,rte_lcore_to_socket_id ( + info =rte_zmalloc_numa (NULL ,sizeof (*info), +RTE_CACHE_LINE_SIZE ,rte_lcore_to_numa_id ( lo->lcore_id));if (!info) { ret = -ENOMEM ;
@@ -544,7 +544,7 @@ main(int argc, char *argv[]) } config.nb_queue_pairs = dev_info.max_nb_queue_pairs; - config.socket_id =rte_lcore_to_socket_id (lo->lcore_id); + config.numa_id =rte_lcore_to_numa_id (lo->lcore_id); config.ff_disable =RTE_CRYPTODEV_FF_SECURITY ; ret =rte_cryptodev_configure (info->cid, &config);
@@ -560,13 +560,13 @@ main(int argc, char *argv[])SESSION_MAP_ENTRIES ,rte_cryptodev_sym_get_private_session_size ( info->cid),0 ,0 , - rte_lcore_to_socket_id(lo->lcore_id)); + rte_lcore_to_numa_id(lo->lcore_id)); cop_type =RTE_CRYPTO_OP_TYPE_SYMMETRIC ; }else {snprintf (name,127 ,"ASYM_SESS_POOL_%u" , lo->lcore_id); info->sess_pool =rte_cryptodev_asym_session_pool_create (name,SESSION_MAP_ENTRIES ,0 ,64 , -rte_lcore_to_socket_id (lo->lcore_id)); +rte_lcore_to_numa_id (lo->lcore_id)); cop_type =RTE_CRYPTO_OP_TYPE_ASYMMETRIC ; }
@@ -579,7 +579,7 @@ main(int argc, char *argv[]) info->cop_pool =rte_crypto_op_pool_create (name, cop_type,NB_MEMPOOL_OBJS ,NB_CACHE_OBJS ,VHOST_CRYPTO_MAX_IV_LEN , -rte_lcore_to_socket_id (lo->lcore_id)); +rte_lcore_to_numa_id (lo->lcore_id));if (!info->cop_pool) {RTE_LOG (ERR ,USER1 ,"Failed to create crypto pool" );
@@ -596,7 +596,7 @@ main(int argc, char *argv[])for (j =0 ; j < dev_info.max_nb_queue_pairs; j++) { ret =rte_cryptodev_queue_pair_setup (info->cid, j, - &qp_conf,rte_lcore_to_socket_id ( + &qp_conf,rte_lcore_to_numa_id ( lo->lcore_id));if (ret <0 ) {RTE_LOG (ERR ,USER1 ,"Failed to configure qp\n" );
Signature · 1 line
2.55.0
PATCH 220/227 examples/vm_power_manager: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Rename socket_id parameters, local variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
--- examples/vm_power_manager/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
examples/vm_power_manager/main.c +3 -3
@@ -84,7 +84,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)/* Allocate and set up 1 RX queue per Ethernet port. */ for (q =0 ; q < rx_rings; q++) { retval =rte_eth_rx_queue_setup (port, q,RX_RING_SIZE , -rte_eth_dev_socket_id (port),NULL , mbuf_pool); +rte_eth_dev_numa_id (port),NULL , mbuf_pool);if (retval <0 )return retval; }
@@ -94,7 +94,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)/* Allocate and set up 1 TX queue per Ethernet port. */ for (q =0 ; q < tx_rings; q++) { retval =rte_eth_tx_queue_setup (port, q,TX_RING_SIZE , -rte_eth_dev_socket_id (port), &txq_conf); +rte_eth_dev_numa_id (port), &txq_conf);if (retval <0 )return retval; }
@@ -360,7 +360,7 @@ main(int argc, char **argv)if (nb_ports >0 ) { mbuf_pool =rte_pktmbuf_pool_create ("MBUF_POOL" ,NUM_MBUFS * nb_ports,MBUF_CACHE_SIZE ,0 , -RTE_MBUF_DEFAULT_BUF_SIZE ,rte_socket_id ()); +RTE_MBUF_DEFAULT_BUF_SIZE ,rte_numa_id ());if (mbuf_pool ==NULL )rte_exit (EXIT_FAILURE ,"Cannot create mbuf pool\n" );
Signature · 1 line
2.55.0
PATCH 221/227 examples/vmdq: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Rename socket_id parameters, local variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
--- examples/vmdq/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
examples/vmdq/main.c +3 -3
@@ -280,7 +280,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool) txconf->offloads = port_conf.txmode.offloads;for (q =0 ; q < rxRings; q++) { retval =rte_eth_rx_queue_setup (port, q, rxRingSize, -rte_eth_dev_socket_id (port), +rte_eth_dev_numa_id (port), rxconf, mbuf_pool);if (retval <0 ) {
@@ -291,7 +291,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)for (q =0 ; q < txRings; q++) { retval =rte_eth_tx_queue_setup (port, q, txRingSize, -rte_eth_dev_socket_id (port), +rte_eth_dev_numa_id (port), txconf);if (retval <0 ) {printf ("initialise tx queue %d failed\n" , q);
@@ -653,7 +653,7 @@ main(int argc, char *argv[]) mbuf_pool =rte_pktmbuf_pool_create ("MBUF_POOL" ,NUM_MBUFS_PER_PORT * nb_ports,MBUF_CACHE_SIZE , -0 ,RTE_MBUF_DEFAULT_BUF_SIZE ,rte_socket_id ()); +0 ,RTE_MBUF_DEFAULT_BUF_SIZE ,rte_numa_id ());if (mbuf_pool ==NULL )rte_exit (EXIT_FAILURE ,"Cannot create mbuf pool\n" );
Signature · 1 line
2.55.0
PATCH 222/227 examples/vmdq_dcb: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Rename socket_id parameters, local variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
--- examples/vmdq_dcb/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
examples/vmdq_dcb/main.c +3 -3
@@ -303,7 +303,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)for (q =0 ; q < num_queues; q++) { retval =rte_eth_rx_queue_setup (port, q, rxRingSize, -rte_eth_dev_socket_id (port), +rte_eth_dev_numa_id (port),NULL , mbuf_pool);if (retval <0 ) {
@@ -316,7 +316,7 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool) txq_conf.offloads = port_conf.txmode.offloads;for (q =0 ; q < num_queues; q++) { retval =rte_eth_tx_queue_setup (port, q, txRingSize, -rte_eth_dev_socket_id (port), +rte_eth_dev_numa_id (port), &txq_conf);if (retval <0 ) {printf ("initialize tx queue %d failed\n" , q);
@@ -687,7 +687,7 @@ main(int argc, char *argv[]) mbuf_pool =rte_pktmbuf_pool_create ("MBUF_POOL" ,NUM_MBUFS_PER_PORT * nb_ports,MBUF_CACHE_SIZE , -0 ,RTE_MBUF_DEFAULT_BUF_SIZE ,rte_socket_id ()); +0 ,RTE_MBUF_DEFAULT_BUF_SIZE ,rte_numa_id ());if (mbuf_pool ==NULL )rte_exit (EXIT_FAILURE ,"Cannot create mbuf pool\n" );
Signature · 1 line
2.55.0
PATCH 223/227 eal: deprecate legacy socket API aliases
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Complete the socket to NUMA node terminology migration:
- Rename the numa_id fields of rte_memseg, rte_memseg_list, rte_memzone and rte_service_spec (were socket_id), keeping socket_id as a deprecated union alias, and switch the remaining in-tree users accordingly.
- Mark the legacy socket-named functions as deprecated:
rte_socket_id(), rte_socket_count(), rte_socket_id_by_idx(), rte_lcore_to_socket_id(), the rte_malloc_socket() family, rte_malloc_heap_get_socket(), rte_malloc_get_socket_stats(), rte_malloc_heap_socket_is_external(), rte_eth_dev_socket_id(), rte_cryptodev_socket_id(), rte_compressdev_socket_id(), rte_event_dev_socket_id() and rte_rawdev_socket_id().
- Mark the SOCKET_ID_ANY macro as deprecated; use RTE_NUMA_ID_ANY instead.
Update the deprecation notices and the 26.11 release notes accordingly.
--- app/proc-info/main.c | 4 +-- app/test/test_malloc.c | 4 +-- app/test/test_memzone.c | 8 +++--- doc/guides/rel_notes/deprecation.rst | 27 +++++++++++++++---- doc/guides/rel_notes/release_26_11.rst | 9 +++++++ drivers/common/qat/qat_qp.c | 4 +-- drivers/common/zsda/zsda_qp.c | 2 +- drivers/crypto/bcmfs/bcmfs_qp.c | 4 +-- drivers/crypto/ccp/ccp_dev.c | 4 +-- drivers/event/sw/sw_evdev.c | 2 +- drivers/net/failsafe/failsafe_intr.c | 2 +- .../link_mgmt/link_100g/nt4ga_link_100g.c | 2 +- .../link_agx_100g/nt4ga_agx_link_100g.c | 2 +- drivers/net/ntnic/ntnic_ethdev.c | 6 ++--- drivers/net/ring/rte_eth_ring.c | 2 +- drivers/net/sfc/sfc_mae_counter.c | 2 +- drivers/net/sfc/sfc_repr_proxy.c | 2 +- drivers/net/softnic/rte_eth_softnic_thread.c | 2 +- lib/compressdev/rte_compressdev.h | 1 + lib/cryptodev/rte_cryptodev.h | 1 + lib/dispatcher/rte_dispatcher.c | 2 +- lib/eal/common/eal_common_dynmem.c | 2 +- lib/eal/common/eal_common_memory.c | 10 +++---- lib/eal/common/eal_common_memzone.c | 4 +-- lib/eal/common/malloc_heap.c | 12 ++++----- lib/eal/freebsd/eal.c | 2 +- lib/eal/include/rte_lcore.h | 5 ++++ lib/eal/include/rte_malloc.h | 7 +++++ lib/eal/include/rte_memory.h | 24 ++++++++++++++--- lib/eal/include/rte_memzone.h | 10 ++++++- lib/eal/include/rte_service_component.h | 12 +++++++-- lib/eal/linux/eal.c | 2 +- lib/eal/linux/eal_memalloc.c | 6 ++--- lib/eal/linux/eal_memory.c | 6 ++--- lib/eal/windows/eal_memalloc.c | 8 +++--- lib/ethdev/ethdev_driver.c | 2 +- lib/ethdev/rte_ethdev.h | 1 + lib/eventdev/rte_event_crypto_adapter.c | 2 +- lib/eventdev/rte_event_dma_adapter.c | 2 +- lib/eventdev/rte_event_eth_rx_adapter.c | 2 +- lib/eventdev/rte_event_eth_tx_adapter.c | 2 +- lib/eventdev/rte_event_timer_adapter.c | 2 +- lib/eventdev/rte_event_vector_adapter.c | 2 +- lib/eventdev/rte_eventdev.h | 1 + lib/mempool/rte_mempool.c | 4 +-- lib/rawdev/rte_rawdev.h | 1 + lib/ring/rte_ring.c | 4 +-- lib/table/rte_swx_table_wm.c | 2 +- 48 files changed, 152 insertions(+), 77 deletions(-)
app/proc-info/main.c +2 -2
@@ -1587,7 +1587,7 @@ show_ring(char *name)"\t -- Single Producer Enqueue (%u)\n" "\t -- Single Consumer Dequeue (%u)\n" , ptr->name, - ptr->memzone->socket_id, + ptr->memzone->numa_id, ptr->flags &RING_F_SP_ENQ , ptr->flags & RING_F_SC_DEQ); printf(" - size (%u) mask (0x%x) capacity (%u)\n",
@@ -1649,7 +1649,7 @@ show_mempool(char *name) ptr->trailer_size, ptr->private_data_size);printf (" - memezone - socket %d\n" , - ptr->mz->socket_id); + ptr->mz->numa_id);printf (" - Count: avail (%u), in use (%u)\n" ,rte_mempool_avail_count (ptr),rte_mempool_in_use_count (ptr));
app/test/test_malloc.c +2 -2
@@ -962,7 +962,7 @@ check_socket_mem(const struct rte_memseg_list *msl, void *arg)if (msl->external)return 0 ; -return *numa_id == msl->socket_id; +return *numa_id == msl->numa_id; }/* Check if memory is available on a specific numa_id */
@@ -981,7 +981,7 @@ static int32_t addr_to_socket(void * addr) {const struct rte_memseg *ms =rte_mem_virt2memseg (addr,NULL ); -return ms ==NULL ?-1 : ms->socket_id; +return ms ==NULL ?-1 : ms->numa_id; }
app/test/test_memzone.c +4 -4
@@ -576,7 +576,7 @@ test_memzone_reserve_max_aligned(void)const unsigned int align =1 << ((rte_rand () %8 ) +5 );/* from 128 up to 4k alignment */ /* memzone size may be between size and size - align */ - minlen =find_max_block_free_size (align, numa_id); + minlen =find_max_block_free_size (align, socket); maxlen =find_max_block_free_size (0 , numa_id);if (minlen ==0 || maxlen ==0 ) {
@@ -587,7 +587,7 @@ test_memzone_reserve_max_aligned(void) mz =rte_memzone_reserve_aligned (TEST_MEMZONE_NAME ("max_zone_aligned" ), -0 , numa_id,0 , align); +0 , socket,0 , align);if (mz ==NULL ) {printf ("Failed to reserve a big chunk of memory - %s\n" ,rte_strerror (rte_errno));
@@ -1053,9 +1053,9 @@ test_memzone_basic(void) memzone3->iova, memzone3->len))return -1 ; -printf ("check numa_id ID\n" ); +printf ("check socket ID\n" ); -/* memzone2 must be on numa_id id 0 and memzone3 on numa_id 1 */ +/* memzone2 must be on socket id 0 and memzone3 on socket 1 */ if (memzone2->numa_id !=0 )return -1 ;if (memzone3 !=NULL && memzone3->numa_id !=1 )
doc/guides/rel_notes/deprecation.rst +22 -5
@@ -16,16 +16,33 @@ Other API and ABI deprecation notices are to be posted below. Deprecation Notices ------------------- -* lib: The public structures use ``socket_id`` to refer to a NUMA node, +* lib/eal: The public structures use ``socket_id`` to refer to a NUMA node, which conflates CPU sockets with NUMA memory nodes. The field is renamed to ``numa_id``, keeping ``socket_id`` as a deprecated union alias. - The following structures are affected: ``rte_hash_parameters``, - ``rte_fbk_hash_params``, ``rte_member_parameters`` / - ``rte_member_setsum``, ``rte_mempool`` and ``rte_compressdev_config`` - (more structures will follow in this release). + Affected structures include: ``rte_acl_param``, ``rte_bbdev_data``, + ``rte_bbdev_info``, ``rte_bbdev_queue_conf``, ``rte_compressdev_config``, + ``rte_cryptodev_config``, ``rte_event_timer_adapter_conf``, + ``rte_event_vector_adapter_conf``, ``rte_fbk_hash_params``, + ``rte_graph``, ``rte_graph_cluster_stats_param``, ``rte_graph_param``, + ``rte_gro_param``, ``rte_hash_parameters``, ``rte_ipsec_sad_conf``, + ``rte_member_parameters``, ``rte_member_setsum``, ``rte_memseg``, + ``rte_memseg_list``, ``rte_memzone``, ``rte_ml_dev_config``, + ``rte_mempool``, ``rte_rawdev``, ``rte_rawdev_info`` and + ``rte_service_spec``. Applications should switch to ``numa_id``. +* eal/lib: The legacy socket-named functions + ``rte_socket_id()``, ``rte_socket_count()``, ``rte_socket_id_by_idx()``, + ``rte_lcore_to_socket_id()``, the ``rte_malloc_socket()`` family, + ``rte_malloc_heap_get_socket()``, ``rte_malloc_get_socket_stats()``, + ``rte_malloc_heap_socket_is_external()``, ``rte_eth_dev_socket_id()``, + ``rte_cryptodev_socket_id()``, ``rte_compressdev_socket_id()``, + ``rte_event_dev_socket_id()`` and ``rte_rawdev_socket_id()`` + are deprecated aliases of their NUMA-named replacements, + and will be removed in a future release. + The ``SOCKET_ID_ANY`` macro is deprecated; use ``RTE_NUMA_ID_ANY``. + * kvargs: The function ``rte_kvargs_process`` will get a new parameter for returning key match count. It will ease handling of no-match case.
doc/guides/rel_notes/release_26_11.rst +9 -0
@@ -475,6 +475,15 @@ Removed Items API Changes ----------- +* eal/lib: The socket-based naming has been fully migrated to NUMA node + terminology. The legacy socket-named functions (``rte_socket_id()``, + ``rte_malloc_socket()`` family, ``rte_eth_dev_socket_id()`` and friends) + and the ``SOCKET_ID_ANY`` macro are deprecated aliases of the + NUMA-named APIs and will be removed in a future release. + The ``socket_id`` fields of public structures are deprecated union + aliases of ``numa_id``. + + .. This section should contain API changes. Sample format: * sample: Add a short 1-2 sentence description of the API change
drivers/common/qat/qat_qp.c +2 -2
@@ -317,7 +317,7 @@ queue_dma_zone_reserve(const char *queue_name, uint32_t queue_size,if (mz !=0 ) {if (((size_t )queue_size <= mz->len) && ((numa_id ==RTE_NUMA_ID_ANY ) || - (numa_id == mz->socket_id))) { + (numa_id == mz->numa_id))) {QAT_LOG (DEBUG ,"re-use memzone already " "allocated for %s" , queue_name);return mz;
@@ -327,7 +327,7 @@ queue_dma_zone_reserve(const char *queue_name, uint32_t queue_size,"allocated %s, size %u, socket %d. " "Requested size %u, socket %u" , queue_name, (uint32_t )mz->len, - mz->socket_id, queue_size, numa_id); + mz->numa_id, queue_size, numa_id);return NULL ; }
drivers/common/zsda/zsda_qp.c +1 -1
@@ -551,7 +551,7 @@ zsda_queue_dma_zone_reserve(const char *queue_name,if (mz !=0 ) {if (((size_t )queue_size <= mz->len) && ((numa_id == (RTE_NUMA_ID_ANY &0xffff )) || - (numa_id == (mz->socket_id &0xffff )))) { + (numa_id == (mz->numa_id &0xffff )))) {ZSDA_LOG (DEBUG ,"re-use memzone already allocated for %s" , queue_name);
drivers/crypto/bcmfs/bcmfs_qp.c +2 -2
@@ -71,7 +71,7 @@ queue_dma_zone_reserve(const char *queue_name, uint32_t queue_size,if (mz !=NULL ) {if (((size_t )queue_size <= mz->len) && (numa_id ==RTE_NUMA_ID_ANY || - numa_id == mz->socket_id)) { + numa_id == mz->numa_id)) {BCMFS_LOG (DEBUG ,"re-use memzone already " "allocated for %s" , queue_name);return mz;
@@ -81,7 +81,7 @@ queue_dma_zone_reserve(const char *queue_name, uint32_t queue_size,"allocated %s, size %u, socket %d. " "Requested size %u, socket %u" , queue_name, (uint32_t )mz->len, - mz->socket_id, queue_size, numa_id); + mz->numa_id, queue_size, numa_id);return NULL ; }
drivers/crypto/ccp/ccp_dev.c +2 -2
@@ -93,7 +93,7 @@ ccp_queue_dma_zone_reserve(const char *queue_name,if (mz !=0 ) {if (((size_t )queue_size <= mz->len) && ((numa_id ==RTE_NUMA_ID_ANY ) || - (numa_id == mz->socket_id))) { + (numa_id == mz->numa_id))) {CCP_LOG_INFO ("re-use memzone already " "allocated for %s" , queue_name);return mz;
@@ -102,7 +102,7 @@ ccp_queue_dma_zone_reserve(const char *queue_name,"allocated %s, size %u, socket %d. " "Requested size %u, socket %u" , queue_name, (uint32_t )mz->len, - mz->socket_id, queue_size, numa_id); + mz->numa_id, queue_size, numa_id);return NULL ; }
drivers/event/sw/sw_evdev.c +1 -1
@@ -1116,7 +1116,7 @@ sw_probe(struct rte_vdev_device *vdev)snprintf (service.name,sizeof (service.name),"%s_service" , name);snprintf (sw->service_name,sizeof (sw->service_name),"%s_service" , name); - service.socket_id = numa_id; + service.numa_id = numa_id; service.callback = sw_sched_service_func; service.callback_userdata = (void *)dev;
drivers/net/failsafe/failsafe_intr.c +1 -1
@@ -134,7 +134,7 @@ fs_rx_event_proxy_service_install(struct fs_priv *priv)memset (&service,0 ,sizeof (struct rte_service_spec ));snprintf (service.name,sizeof (service.name),"%s_Rx_service" , priv->data->name); - service.socket_id = priv->data->numa_node; + service.numa_id = priv->data->numa_node; service.callback = fs_rx_event_proxy_routine; service.callback_userdata = priv;
drivers/net/ntnic/link_mgmt/link_100g/nt4ga_link_100g.c +1 -1
@@ -721,7 +721,7 @@ static int nt4ga_link_100g_ports_init(struct adapter_info_s *p_adapter_info, nthstruct rte_service_spec adapter_monitor_service = { .name ="ntnic-adapter-monitor" , .callback = nt4ga_link_100g_mon, - .socket_id =RTE_NUMA_ID_ANY , + .numa_id =RTE_NUMA_ID_ANY , .capabilities =RTE_SERVICE_CAP_MT_SAFE , .callback_userdata = p_adapter_info, };
drivers/net/ntnic/link_mgmt/link_agx_100g/nt4ga_agx_link_100g.c +1 -1
@@ -1023,7 +1023,7 @@ int nt4ga_agx_link_100g_ports_init(struct adapter_info_s *p_adapter_info, nthw_fstruct rte_service_spec adapter_monitor_service = { .name ="ntnic-adapter_agx-monitor" , .callback = nt4ga_agx_link_100g_mon, - .socket_id =RTE_NUMA_ID_ANY , + .numa_id =RTE_NUMA_ID_ANY , .capabilities =RTE_SERVICE_CAP_MT_SAFE , .callback_userdata = p_adapter_info, };
drivers/net/ntnic/ntnic_ethdev.c +3 -3
@@ -2443,7 +2443,7 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)struct rte_service_spec flm_update_spec = { .name ="ntnic-flm_update_service" , .callback = adapter_flm_update_service, - .socket_id =RTE_NUMA_ID_ANY , + .numa_id =RTE_NUMA_ID_ANY , .capabilities =RTE_SERVICE_CAP_MT_SAFE , .callback_userdata = p_drv };
@@ -2460,7 +2460,7 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)struct rte_service_spec stat_spec = { .name ="ntnic-stat_collect_service" , .callback = adapter_stat_service, - .socket_id =RTE_NUMA_ID_ANY , + .numa_id =RTE_NUMA_ID_ANY , .capabilities =RTE_SERVICE_CAP_MT_SAFE , .callback_userdata = p_drv };
@@ -2634,7 +2634,7 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev)if (fpga_info->profile ==FPGA_INFO_PROFILE_INLINE ) {struct rte_service_spec port_event_spec = { .callback = port_event_service, - .socket_id =RTE_NUMA_ID_ANY , + .numa_id =RTE_NUMA_ID_ANY , .capabilities =RTE_SERVICE_CAP_MT_SAFE , .callback_userdata = internals };
drivers/net/ring/rte_eth_ring.c +1 -1
@@ -520,7 +520,7 @@ int rte_eth_from_ring(struct rte_ring *r) {return rte_eth_from_rings (r->name, &r,1 , &r,1 , - r->memzone ? r->memzone->socket_id :RTE_NUMA_ID_ANY ); + r->memzone ? r->memzone->numa_id :RTE_NUMA_ID_ANY ); } static int
drivers/net/sfc/sfc_mae_counter.c +1 -1
@@ -589,7 +589,7 @@ sfc_mae_counter_service_register(struct sfc_adapter *sa,/* Prepare service info */ memset (&service,0 ,sizeof (service));rte_strscpy (service.name, counter_service_name,sizeof (service.name)); - service.socket_id = sa->numa_id; + service.numa_id = sa->numa_id; service.callback = sfc_mae_counter_service_routine; service.callback_userdata = sa; sfc_mae_counter_registry_prepare(counter_registry, sa,
drivers/net/sfc/sfc_repr_proxy.c +1 -1
@@ -916,7 +916,7 @@ sfc_repr_proxy_attach(struct sfc_adapter *sa)memset (&service,0 ,sizeof (service));snprintf (service.name,sizeof (service.name),"net_sfc_%hu_repr_proxy" ,sfc_sa2shared (sa)->port_id); - service.socket_id =rte_lcore_to_numa_id (cid); + service.numa_id =rte_lcore_to_numa_id (cid); service.callback = sfc_repr_proxy_routine; service.callback_userdata = rp;
drivers/net/softnic/rte_eth_softnic_thread.c +1 -1
@@ -137,7 +137,7 @@ thread_sc_service_up(struct pmd_internals *softnic, uint32_t thread_id) service_params.callback = rte_pmd_softnic_run_internal; service_params.callback_userdata = dev; service_params.capabilities =0 ; - service_params.socket_id = (int )softnic->params.cpu_id; + service_params.numa_id = (int )softnic->params.cpu_id;/* service register */ status =rte_service_component_register (&service_params, &t->service_id);
lib/compressdev/rte_compressdev.h +1 -0
@@ -194,6 +194,7 @@ rte_compressdev_numa_id(uint8_t dev_id);* -1 if returned is the dev_id value is out of range. */ int +__rte_deprecated_msg("use the NUMA node API") rte_compressdev_socket_id(uint8_t dev_id);/** Compress device configuration structure */
lib/cryptodev/rte_cryptodev.h +1 -0
@@ -858,6 +858,7 @@ rte_cryptodev_numa_id(uint8_t dev_id);* -1 if returned is the dev_id value is out of range. */ int +__rte_deprecated_msg("use the NUMA node API") rte_cryptodev_socket_id(uint8_t dev_id);/** Crypto device configuration structure */
lib/dispatcher/rte_dispatcher.c +1 -1
@@ -239,7 +239,7 @@ evd_service_register(struct rte_dispatcher *dispatcher) .callback = evd_process, .callback_userdata = dispatcher, .capabilities = RTE_SERVICE_CAP_MT_SAFE, - .socket_id = dispatcher->numa_id + .numa_id = dispatcher->numa_id };int rc;
lib/eal/common/eal_common_dynmem.c +1 -1
@@ -191,7 +191,7 @@ hugepage_count_walk(const struct rte_memseg_list *msl, void *arg)if (msl->page_sz != hpi->hugepage_sz)return 0 ; - hpi->num_pages[msl->socket_id] += msl->memseg_arr.len; + hpi->num_pages[msl->numa_id] += msl->memseg_arr.len;return 0 ; }
lib/eal/common/eal_common_memory.c +5 -5
@@ -214,7 +214,7 @@ eal_memseg_list_init_named(struct rte_memseg_list *msl, const char *name, } msl->page_sz = page_sz; - msl->socket_id = numa_id; + msl->numa_id = numa_id; msl->base_va =NULL ; msl->heap = heap;
@@ -307,7 +307,7 @@ eal_memseg_list_populate(struct rte_memseg_list *msl, void *addr, int n_segs) ms->iova =RTE_BAD_IOVA ; ms->addr = addr; ms->hugepage_sz = page_sz; - ms->socket_id =0 ; + ms->numa_id =0 ; ms->len = page_sz;rte_fbarray_set_used (arr, i);
@@ -484,7 +484,7 @@ dump_memseg(const struct rte_memseg_list *msl, const struct rte_memseg *ms, ms->iova, ms->len, ms->addr, - ms->socket_id, + ms->numa_id, ms->hugepage_sz, ms->nchannel, ms->nrank,
@@ -1275,7 +1275,7 @@ handle_eal_memzone_info_request(const char *cmd __rte_unused,rte_tel_data_add_dict_uint (d,"Length" , mz->len);snprintf (addr,ADDR_STR ,"%p" , mz->addr);rte_tel_data_add_dict_string (d,"Address" , addr); -rte_tel_data_add_dict_int (d,"Socket" , mz->socket_id); +rte_tel_data_add_dict_int (d,"Socket" , mz->numa_id);rte_tel_data_add_dict_uint (d,"Flags" , mz->flags);/* go through each page occupied by this memzone */
@@ -1481,7 +1481,7 @@ handle_eal_memseg_info_request(const char *cmd __rte_unused, ms_end_addr = ms_start_addr + ms->len; ms_size = ms->len; hugepage_size = ms->hugepage_sz; - ms_socket_id = ms->socket_id; + ms_socket_id = ms->numa_id; ms_flags = ms->flags;rte_mcfg_mem_read_unlock ();
lib/eal/common/eal_common_memzone.c +2 -2
@@ -232,7 +232,7 @@ memzone_reserve_aligned_thread_unsafe(const char *name, size_t len, elem->size - elem->pad - MALLOC_ELEM_OVERHEAD : requested_len; mz->hugepage_sz = elem->msl->page_sz; - mz->socket_id = elem->msl->socket_id; + mz->numa_id = elem->msl->numa_id; mz->flags =0 ;return mz;
@@ -393,7 +393,7 @@ dump_memzone(const struct rte_memzone *mz, void *arg) mz->name, mz->len, mz->addr, - mz->socket_id, + mz->numa_id, mz->flags);/* go through each page occupied by this memzone */
lib/eal/common/malloc_heap.c +6 -6
@@ -115,7 +115,7 @@ malloc_add_seg(const struct rte_memseg_list *msl,if (msl->external)return 0 ; - heap_idx =malloc_numa_to_heap_id (msl->socket_id); + heap_idx =malloc_numa_to_heap_id (msl->numa_id);if (heap_idx <0 ) {EAL_LOG (ERR ,"Memseg list has invalid NUMA node ID" );return -1 ;
@@ -136,7 +136,7 @@ malloc_add_seg(const struct rte_memseg_list *msl, heap->total_size += len;EAL_LOG (DEBUG ,"Added %zuM to heap on NUMA node %i" , len >>20 , - msl->socket_id); + msl->numa_id);return 0 ; }
@@ -559,7 +559,7 @@ alloc_more_mem_on_socket(struct malloc_heap *heap, size_t size, int numa_id,for (i =0 ; i <RTE_MAX_MEMSEG_LISTS ; i++) {struct rte_memseg_list *msl = &mcfg->memsegs[i]; -if (msl->socket_id != numa_id) +if (msl->numa_id != numa_id)continue ;if (msl->base_va ==NULL )
@@ -1031,7 +1031,7 @@ malloc_heap_free(struct malloc_elem *elem) unmapped = true;EAL_LOG (DEBUG ,"Heap on NUMA node %d was shrunk by %zdMB" , - msl->socket_id, aligned_len >>20ULL ); + msl->numa_id, aligned_len >>20ULL );rte_mcfg_mem_write_unlock (); free_unlock:
@@ -1217,13 +1217,13 @@ malloc_heap_create_external_seg(void *va_addr, rte_iova_t iova_addrs[], ms->len = page_sz; ms->nchannel =rte_memory_get_nchannel (); ms->nrank =rte_memory_get_nrank (); - ms->socket_id = numa_id; + ms->numa_id = numa_id; }/* set up the memseg list */ msl->base_va = va_addr; msl->page_sz = page_sz; - msl->socket_id = numa_id; + msl->numa_id = numa_id; msl->len = seg_len; msl->version =0 ; msl->external =1 ;
lib/eal/freebsd/eal.c +1 -1
@@ -356,7 +356,7 @@ check_socket(const struct rte_memseg_list *msl, void *arg)if (msl->external)return 0 ; -if (msl->socket_id == *numa_id && msl->memseg_arr.count !=0 ) +if (msl->numa_id == *numa_id && msl->memseg_arr.count !=0 )return 1 ;return 0 ;
lib/eal/include/rte_lcore.h +5 -0
@@ -12,6 +12,7 @@*/ #include <stdio.h> +#include <rte_common.h> #include <rte_compat.h> #include <rte_config.h> #include <rte_per_lcore.h>
@@ -135,6 +136,7 @@ unsigned int rte_numa_id(void);* @return * the ID of current lcoreid's NUMA node */ +__rte_deprecated_msg("use the NUMA node API")unsigned int rte_socket_id (void );/**
@@ -159,6 +161,7 @@ rte_numa_count(void);* the number of NUMA ID's as recognized by EAL */ unsigned int +__rte_deprecated_msg("use the NUMA node API")rte_socket_count (void);/**
@@ -192,6 +195,7 @@ rte_numa_id_by_idx(unsigned int idx);* - -1 on error, with errno set to EINVAL */ int +__rte_deprecated_msg("use the NUMA node API") rte_socket_id_by_idx(unsigned int idx);/**
@@ -216,6 +220,7 @@ rte_lcore_to_numa_id(unsigned int lcore_id);* the ID of lcoreid's NUMA node */ unsigned int +__rte_deprecated_msg("use the NUMA node API") rte_lcore_to_socket_id(unsigned int lcore_id);/**
lib/eal/include/rte_malloc.h +7 -0
@@ -233,6 +233,7 @@ rte_realloc_numa(void *ptr, size_t size, unsigned int align, int numa_id)* - Otherwise, the pointer to the reallocated memory. */ void * +__rte_deprecated_msg("use the NUMA node API") rte_realloc_socket(void *ptr, size_t size, unsigned int align, int socket) __rte_alloc_size(2) __rte_alloc_align(3)__rte_malloc __rte_dealloc_free;
@@ -291,6 +292,7 @@ rte_malloc_numa(const char *type, size_t size, unsigned int align, int numa_id)* - Otherwise, the pointer to the allocated object. */ void * +__rte_deprecated_msg("use the NUMA node API") rte_malloc_socket(const char *type, size_t size, unsigned int align, int socket) __rte_alloc_size(2) __rte_alloc_align(3) __rte_malloc __rte_dealloc_free;
@@ -353,6 +355,7 @@ rte_zmalloc_numa(const char *type, size_t size, unsigned int align, int numa_id)* - Otherwise, the pointer to the allocated object. */ void * +__rte_deprecated_msg("use the NUMA node API") rte_zmalloc_socket(const char *type, size_t size, unsigned int align, int socket) __rte_alloc_size(2) __rte_alloc_align(3) __rte_malloc __rte_dealloc_free;
@@ -415,6 +418,7 @@ rte_calloc_numa(const char *type, size_t num, size_t size, unsigned int align, i* - Otherwise, the pointer to the allocated object. */ void * +__rte_deprecated_msg("use the NUMA node API") rte_calloc_socket(const char *type, size_t num, size_t size, unsigned int align, int socket) __rte_alloc_size(2, 3) __rte_alloc_align(4) __rte_malloc __rte_dealloc_free;
@@ -471,6 +475,7 @@ rte_malloc_get_numa_stats(int numa_id,* Pointer to structure storing statistics on success */ int +__rte_deprecated_msg("use the NUMA node API") rte_malloc_get_socket_stats(int socket, struct rte_malloc_numa_stats *socket_stats);
@@ -665,6 +670,7 @@ rte_malloc_heap_get_numa_id(const char *name);* ENOENT - heap identified by the name ``name`` was not found */ int +__rte_deprecated_msg("use the NUMA node API") rte_malloc_heap_get_socket(const char *name);/**
@@ -695,6 +701,7 @@ rte_malloc_heap_numa_is_external(int numa_id);* -1 if socket ID is invalid */ int +__rte_deprecated_msg("use the NUMA node API") rte_malloc_heap_socket_is_external(int socket_id);/**
lib/eal/include/rte_memory.h +20 -4
@@ -42,7 +42,7 @@ extern "C" {/** * Legacy alias of RTE_NUMA_ID_ANY. */ -#define SOCKET_ID_ANY RTE_NUMA_ID_ANY +#define SOCKET_ID_ANY (RTE_DEPRECATED(SOCKET_ID_ANY) RTE_NUMA_ID_ANY)/** Prevent this segment from being freed back to the OS. */ #define RTE_MEMSEG_FLAG_DO_NOT_FREE RTE_BIT32(0)
@@ -60,10 +60,18 @@ struct __rte_packed_begin rte_memseg { };size_t len;/**< Length of the segment. */ uint64_t hugepage_sz;/**< The pagesize of underlying memory */ -int32_t socket_id;/**< NUMA socket ID. */ +union { +/** NUMA node ID. */ +int32_t numa_id; +/** +* Deprecated alias of numa_id. +*/ + __rte_deprecated_msg("use numa_id") + int32_t socket_id; + };uint32_t nchannel;/**< Number of channels. */ uint32_t nrank;/**< Number of ranks. */ -uint32_t flags;/**< Memseg-specific flags */ +uint32_t flags;/**< Memseg-specific flag bits */ } __rte_packed_end;/**
@@ -78,7 +86,15 @@ struct rte_memseg_list {/**< Makes sure addr is always 64-bits */ };uint64_t page_sz;/**< Page size for all memsegs in this list. */ -int socket_id;/**< Socket ID for all memsegs in this list. */ +union { +/** NUMA node ID for all memsegs in this list. */ +int numa_id; +/** +* Deprecated alias of numa_id. +*/ + __rte_deprecated_msg("use numa_id") + int socket_id; + };volatile uint32_t version;/**< version number for multiprocess sync. */ size_t len;/**< Length of memory area covered by this memseg list. */ unsigned int external;/**< 1 if this list points to external memory */
lib/eal/include/rte_memzone.h +9 -1
@@ -59,7 +59,15 @@ struct __rte_packed_begin rte_memzone {uint64_t hugepage_sz;/**< The page size of underlying memory */ -int32_t socket_id;/**< NUMA socket ID. */ +union { +/** NUMA node ID. */ +int32_t numa_id; +/** +* Deprecated alias of numa_id. +*/ + __rte_deprecated_msg("use numa_id") + int32_t socket_id; + };uint32_t flags;/**< Characteristics of this memzone. */ } __rte_packed_end;
lib/eal/include/rte_service_component.h +10 -2
@@ -10,6 +10,7 @@* operate, and you wish to run the component using service cores */ +#include <rte_common.h> #include <rte_service.h> #ifdef __cplusplus
@@ -45,8 +46,15 @@ struct rte_service_spec {* the public header file for values of RTE_SERVICE_CAP_* */ uint32_t capabilities; -/** NUMA socket ID that this service is affinitized to */ -int socket_id; +union { +/** NUMA node ID that this service is bound to */ +int numa_id; +/** +* Deprecated alias of numa_id. +*/ + __rte_deprecated_msg("use numa_id") + int socket_id; + }; };/**
lib/eal/linux/eal.c +1 -1
@@ -439,7 +439,7 @@ check_socket(const struct rte_memseg_list *msl, void *arg)if (msl->external)return 0 ; -return *numa_id == msl->socket_id; +return *numa_id == msl->numa_id; } static void
lib/eal/linux/eal_memalloc.c +3 -3
@@ -646,7 +646,7 @@ alloc_seg(struct rte_memseg *ms, void *addr, int numa_id, ms->nchannel =rte_memory_get_nchannel (); ms->nrank =rte_memory_get_nrank (); ms->iova = iova; - ms->socket_id = numa_id; + ms->numa_id = numa_id; ms->flags = dirty ?RTE_MEMSEG_FLAG_DIRTY :0 ;return 0 ;
@@ -779,7 +779,7 @@ alloc_seg_walk(const struct rte_memseg_list *msl, void *arg)if (msl->page_sz != wa->page_sz)return 0 ; -if (msl->socket_id != wa->numa_id) +if (msl->numa_id != wa->numa_id)return 0 ; page_sz = (size_t )msl->page_sz;
@@ -1172,7 +1172,7 @@ sync_chunk(struct rte_memseg_list *primary_msl,if (used) { ret =alloc_seg (l_ms, p_ms->addr, - p_ms->socket_id, hi, + p_ms->numa_id, hi, msl_idx, seg_idx);if (ret <0 )return -1 ;
lib/eal/linux/eal_memory.c +3 -3
@@ -712,7 +712,7 @@ remap_segment(struct hugepage_file *hugepages, int seg_start, int seg_end)if (msl->page_sz != page_sz)continue ; -if (msl->socket_id != numa_id) +if (msl->numa_id != numa_id)continue ;/* leave space for a hole if array is not empty */
@@ -813,7 +813,7 @@ remap_segment(struct hugepage_file *hugepages, int seg_start, int seg_end) ms->hugepage_sz = page_sz; ms->len = memseg_len; ms->iova = hfile->physaddr; - ms->socket_id = hfile->numa_id; + ms->numa_id = hfile->numa_id; ms->nchannel =rte_memory_get_nchannel (); ms->nrank =rte_memory_get_nrank ();
@@ -1948,7 +1948,7 @@ memseg_secondary_init_dynmem(void) }EAL_LOG (DEBUG ,"Attaching segment list: n_segs:%u numa_id:%d hugepage_sz:%" PRIu64, - msl->memseg_arr.len, msl->socket_id, msl->page_sz); + msl->memseg_arr.len, msl->numa_id, msl->page_sz); }return 0 ;
lib/eal/windows/eal_memalloc.c +4 -4
@@ -46,7 +46,7 @@ alloc_seg(struct rte_memseg *ms, void *requested_addr, int numa_id,if (ms->len >0 ) {/* If a segment is already allocated as needed, return it. */ if ((ms->addr == requested_addr) && - (ms->socket_id == numa_id) && + (ms->numa_id == numa_id) && (ms->hugepage_sz == hi->hugepage_sz)) {return 0 ; }
@@ -54,7 +54,7 @@ alloc_seg(struct rte_memseg *ms, void *requested_addr, int numa_id,/* Bugcheck, should not happen. */ EAL_LOG (DEBUG ,"Attempted to reallocate segment %p " "(size %zu) on NUMA node %d" , ms->addr, - ms->len, ms->socket_id); + ms->len, ms->numa_id);return -1 ; }
@@ -131,7 +131,7 @@ alloc_seg(struct rte_memseg *ms, void *requested_addr, int numa_id, ms->nchannel =rte_memory_get_nchannel (); ms->nrank =rte_memory_get_nrank (); ms->iova = iova; - ms->socket_id = numa_id; + ms->numa_id = numa_id;return 0 ;
@@ -187,7 +187,7 @@ alloc_seg_walk(const struct rte_memseg_list *msl, void *arg)if (msl->page_sz != wa->page_sz)return 0 ; -if (msl->socket_id != wa->numa_id) +if (msl->numa_id != wa->numa_id)return 0 ; page_sz = (size_t )msl->page_sz;
lib/ethdev/ethdev_driver.c +1 -1
@@ -757,7 +757,7 @@ rte_eth_dma_zone_reserve(const struct rte_eth_dev *dev, const char *ring_name, mz =rte_memzone_lookup (z_name);if (mz) { -if ((numa_id !=RTE_NUMA_ID_ANY && numa_id != mz->socket_id) || +if ((numa_id !=RTE_NUMA_ID_ANY && numa_id != mz->numa_id) || size > mz->len || ((uintptr_t )mz->addr & (align -1 )) !=0 ) { RTE_ETHDEV_LOG_LINE(ERR,
lib/ethdev/rte_ethdev.h +1 -0
@@ -2732,6 +2732,7 @@ int rte_eth_dev_numa_id(uint16_t port_id);* - EINVAL is the port_id is invalid, * - 0 is the socket could not be determined, */ +__rte_deprecated_msg("use the NUMA node API")int rte_eth_dev_socket_id (uint16_t port_id);/**
lib/eventdev/rte_event_crypto_adapter.c +1 -1
@@ -920,7 +920,7 @@ eca_init_service(struct event_crypto_adapter *adapter, uint8_t id)memset (&service,0 ,sizeof (service));snprintf (service.name,CRYPTO_ADAPTER_NAME_LEN ,"rte_event_crypto_adapter_%d" , id); - service.socket_id = adapter->numa_id; + service.numa_id = adapter->numa_id; service.callback = eca_service_func; service.callback_userdata = adapter;/* Service function handles locking for queue add/del updates */
lib/eventdev/rte_event_dma_adapter.c +1 -1
@@ -867,7 +867,7 @@ edma_init_service(struct event_dma_adapter *adapter, uint8_t id)memset (&service,0 ,sizeof (service));snprintf (service.name,DMA_ADAPTER_NAME_LEN ,"rte_event_dma_adapter_%d" , id); - service.socket_id = adapter->numa_id; + service.numa_id = adapter->numa_id; service.callback = edma_service_func; service.callback_userdata = adapter;
lib/eventdev/rte_event_eth_rx_adapter.c +1 -1
@@ -1922,7 +1922,7 @@ rxa_init_service(struct event_eth_rx_adapter *rx_adapter, uint8_t id)memset (&service,0 ,sizeof (service));snprintf (service.name,ETH_RX_ADAPTER_SERVICE_NAME_LEN ,"rte_event_eth_rx_adapter_%d" , id); - service.socket_id = rx_adapter->numa_id; + service.numa_id = rx_adapter->numa_id; service.callback = rxa_service_func; service.callback_userdata = rx_adapter;/* Service function handles locking for queue add/del updates */
lib/eventdev/rte_event_eth_tx_adapter.c +1 -1
@@ -456,7 +456,7 @@ txa_service_register(struct txa_service_data *txa)memset (&service,0 ,sizeof (service));snprintf (service.name,TXA_SERVICE_NAME_LEN ,"txa_%d" , txa->id); - service.socket_id = txa->numa_id; + service.numa_id = txa->numa_id; service.callback = txa_service_func; service.callback_userdata = txa; service.capabilities =RTE_SERVICE_CAP_MT_SAFE ;
lib/eventdev/rte_event_timer_adapter.c +1 -1
@@ -995,7 +995,7 @@ swtim_init(struct rte_event_timer_adapter *adapter)memset (&service,0 ,sizeof (service));snprintf (service.name,RTE_SERVICE_NAME_MAX ,"swtim_svc_%" PRIu8, adapter->data->id); - service.socket_id = adapter->data->numa_id; + service.numa_id = adapter->data->numa_id; service.callback = swtim_service_func; service.callback_userdata = adapter; service.capabilities &= ~(RTE_SERVICE_CAP_MT_SAFE );
lib/eventdev/rte_event_vector_adapter.c +1 -1
@@ -662,7 +662,7 @@ sw_vector_adapter_service_init(struct sw_vector_adapter_data *sw)snprintf (service.name,RTE_SERVICE_NAME_MAX ,"%s" ,SW_VECTOR_ADAPTER_SERVICE_FMT ); service.callback = sw_vector_adapter_service_func; service.callback_userdata = service_data; - service.socket_id = sw->adapter->data->numa_id; + service.numa_id = sw->adapter->data->numa_id; ret =rte_service_component_register (&service, &service_data->service_id);if (ret <0 ) {
lib/eventdev/rte_eventdev.h +1 -0
@@ -608,6 +608,7 @@ rte_event_dev_numa_id(uint8_t dev_id);* correspond to any event device. */ int +__rte_deprecated_msg("use the NUMA node API") rte_event_dev_socket_id(uint8_t dev_id);/**
lib/mempool/rte_mempool.c +2 -2
@@ -133,7 +133,7 @@ find_min_pagesz(const struct rte_memseg_list *msl, void *arg)* as a NUMA node ID argument, we must only look at native memory and * ignore any page sizes associated with external memory. */ - valid = msl->socket_id == wa->numa_id; + valid = msl->numa_id == wa->numa_id; valid |= wa->numa_id ==RTE_NUMA_ID_ANY && msl->external ==0 ;if (valid && msl->page_sz < wa->min)
@@ -1655,7 +1655,7 @@ mempool_info_cb(struct rte_mempool *mp, void *arg)rte_tel_data_add_dict_uint (info->d,"mz_len" , mz->len);rte_tel_data_add_dict_uint (info->d,"mz_hugepage_sz" , mz->hugepage_sz); -rte_tel_data_add_dict_int (info->d,"mz_numa_id" , mz->socket_id); +rte_tel_data_add_dict_int (info->d,"mz_numa_id" , mz->numa_id);rte_tel_data_add_dict_uint (info->d,"mz_flags" , mz->flags); }
lib/rawdev/rte_rawdev.h +1 -0
@@ -73,6 +73,7 @@ rte_rawdev_numa_id(uint16_t dev_id);* -(-EINVAL) dev_id value is out of range. */ int +__rte_deprecated_msg("use the NUMA node API") rte_rawdev_socket_id(uint16_t dev_id);/**
lib/ring/rte_ring.c +2 -2
@@ -605,7 +605,7 @@ ring_info_cb(struct rte_ring *r, void *arg)return ;rte_tel_data_add_dict_string (d,"name" , r->name); -rte_tel_data_add_dict_int (d,"numa_id" , r->memzone->socket_id); +rte_tel_data_add_dict_int (d,"numa_id" , r->memzone->numa_id);rte_tel_data_add_dict_int (d,"flags" , r->flags);rte_tel_data_add_dict_string (d,"producer_type" ,ring_prod_sync_type_to_name (r));
@@ -622,7 +622,7 @@ ring_info_cb(struct rte_ring *r, void *arg)rte_tel_data_add_dict_string (d,"mz_name" , mz->name);rte_tel_data_add_dict_uint (d,"mz_len" , mz->len);rte_tel_data_add_dict_uint (d,"mz_hugepage_sz" , mz->hugepage_sz); -rte_tel_data_add_dict_int (d,"mz_numa_id" , mz->socket_id); +rte_tel_data_add_dict_int (d,"mz_numa_id" , mz->numa_id);rte_tel_data_add_dict_uint_hex (d,"mz_flags" , mz->flags,0 ); }
lib/table/rte_swx_table_wm.c +1 -1
@@ -308,7 +308,7 @@ acl_table_create(struct rte_swx_table_params *params,/* ACL create. */ acl_params.name = name; - acl_params.socket_id = numa_node; + acl_params.numa_id = numa_node; acl_params.rule_size =RTE_ACL_RULE_SZ (acl_cfg.num_fields); acl_params.max_rule_num = n_entries;
Signature · 1 line
2.55.0
PATCH 224/227 doc: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Update the programming guide examples to use the NUMA node APIs and field names introduced by the terminology renames.
--- doc/api/doxy-api.conf.in | 1 + doc/guides/prog_guide/bbdev.rst | 14 +++++++------- doc/guides/prog_guide/compressdev.rst | 4 ++-- .../prog_guide/eventdev/event_timer_adapter.rst | 2 +- .../prog_guide/eventdev/event_vector_adapter.rst | 2 +- doc/guides/prog_guide/eventdev/eventdev.rst | 2 +- doc/guides/prog_guide/gpudev.rst | 2 +- doc/guides/prog_guide/ptr_compress_lib.rst | 2 +- 8 files changed, 15 insertions(+), 14 deletions(-)
doc/api/doxy-api.conf.in +1 -0
@@ -91,6 +91,7 @@ INPUT += @API_EXAMPLES@ FILE_PATTERNS = rte_*.h \ cmdline.h PREDEFINED = __DOXYGEN__ \ + __rte_deprecated_msg(x)= \ RTE_ATOMIC \ RTE_HAS_CPUSET \ __rte_lockable= \
doc/guides/prog_guide/bbdev.rst +7 -7
@@ -87,7 +87,7 @@ Configuration of a device has two different levels: configuration that applies to the whole device, and configuration that applies to a single queue. Device configuration is applied with -``rte_bbdev_setup_queues(dev_id,num_queues,socket_id)`` +``rte_bbdev_setup_queues(dev_id,num_queues,numa_id)`` and queue configuration is applied with ``rte_bbdev_queue_configure(dev_id,queue_id,conf)``. Note that, although all queues on a device support same capabilities, they can be configured differently
@@ -106,12 +106,12 @@ The ``rte_bbdev_setup_queues`` API is used to setup queues for a bbdev device. .. code-block:: c int rte_bbdev_setup_queues(uint16_t dev_id, uint16_t num_queues, - int socket_id); + int numa_id); - ``num_queues`` argument identifies the total number of queues to setup for this device. -- ``socket_id`` specifies which socket will be used to allocate the memory. +- ``numa_id`` specifies which NUMA node will be used to allocate the memory. The ``rte_bbdev_intr_enable`` API is used to enable interrupts for a bbdev
@@ -434,7 +434,7 @@ ranks for optimal processing. struct rte_mempool * rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type, unsigned int num_elements, unsigned int cache_size, - int socket_id) + int numa_id) ``rte_bbdev_*_op_alloc_bulk()`` and ``rte_bbdev_*_op_free_bulk()`` are used to allocate bbdev operations of a specific type from a given bbdev operation mempool.
@@ -1330,20 +1330,20 @@ buffers using (**sw_turbo**) bbdev PMD. /* Create bbdev op pools */ bbdev_op_pool[RTE_BBDEV_OP_TURBO_ENC] = rte_bbdev_op_pool_create("bbdev_op_pool_enc", - RTE_BBDEV_OP_TURBO_ENC, NB_MBUF, 128, rte_socket_id()); + RTE_BBDEV_OP_TURBO_ENC, NB_MBUF, 128, rte_numa_id()); /* Get information for this device */ rte_bbdev_info_get(dev_id, &info); /* Setup BBDEV device queues */ - ret = rte_bbdev_setup_queues(dev_id, qs_nb, info.socket_id); + ret = rte_bbdev_setup_queues(dev_id, qs_nb, info.numa_id); if (ret < 0) rte_exit(EXIT_FAILURE, "ERROR(%d): BBDEV %u not configured properly\n", ret, dev_id); /* setup device queues */ - qconf.socket = info.socket_id; + qconf.numa_id = info.numa_id; qconf.queue_size = info.drv.queue_size_lim; qconf.op_type = RTE_BBDEV_OP_TURBO_ENC;
doc/guides/prog_guide/compressdev.rst +2 -2
@@ -345,7 +345,7 @@ using priv_xform would look like: rte_exit(EXIT_FAILURE, "Failed to configure compressdev %u", cdev_id); if (rte_compressdev_queue_pair_setup(cdev_id, 0, NUM_MAX_INFLIGHT_OPS, - socket_id()) < 0) + numa_id()) < 0) rte_exit(EXIT_FAILURE, "Failed to setup queue pair\n"); if (rte_compressdev_start(cdev_id) < 0)
@@ -493,7 +493,7 @@ with each chunk size of CHUNK_LEN, would look like: rte_exit(EXIT_FAILURE, "Failed to configure compressdev %u", cdev_id); if (rte_compressdev_queue_pair_setup(cdev_id, 0, NUM_MAX_INFLIGHT_OPS, - socket_id()) < 0) + numa_id()) < 0) rte_exit(EXIT_FAILURE, "Failed to setup queue pair\n"); if (rte_compressdev_start(cdev_id) < 0)
doc/guides/prog_guide/eventdev/event_timer_adapter.rst +1 -1
@@ -110,7 +110,7 @@ to ``rte_event_timer_adapter_create()``. const struct rte_event_timer_adapter_conf adapter_config = { .event_dev_id = event_dev_id, .timer_adapter_id = 0, - .socket_id = rte_socket_id(), + .numa_id = rte_numa_id(), .clk_src = RTE_EVENT_TIMER_ADAPTER_CPU_CLK, .timer_tick_ns = NSECPERSEC / 10, .max_tmo_ns = 180 * NSECPERSEC,
doc/guides/prog_guide/eventdev/event_vector_adapter.rst +1 -1
@@ -79,7 +79,7 @@ and pass it to ``rte_event_vector_adapter_create()``. const struct rte_event_vector_adapter_conf adapter_config = { .event_dev_id = event_dev_id, - .socket_id = rte_socket_id(), + .numa_id = rte_numa_id(), .ev = { .queue_id = event_queue_id, .sched_type = RTE_SCHED_TYPE_ATOMIC,
doc/guides/prog_guide/eventdev/eventdev.rst +1 -1
@@ -97,7 +97,7 @@ cache size, number of elements in each ``rte_event_vector`` and socket id. .. code-block:: c rte_event_vector_pool_create("vector_pool", nb_event_vectors, cache_sz, - nb_elements_per_vector, socket_id); + nb_elements_per_vector, numa_id); The function ``rte_event_vector_pool_create`` creates mempool with the best platform mempool ops.
doc/guides/prog_guide/gpudev.rst +1 -1
@@ -159,7 +159,7 @@ about how to use functions in this library in case of a CUDA application. ext_mem.buf_ptr, ext_mem.buf_iova, ext_mem.buf_len); mpool_payload = rte_pktmbuf_pool_create_extbuf("gpu_mempool", mbufs_num, 0, 0, ext_mem.elt_size, - rte_socket_id(), &ext_mem, 1); + rte_numa_id(), &ext_mem, 1); /* * Create CPU - device communication flag.
doc/guides/prog_guide/ptr_compress_lib.rst +1 -1
@@ -142,7 +142,7 @@ While this is a realistic use case the code is simplified for demonstration purp { ring = rte_ring_create_elem( "COMPR_PTRS", sizeof(uint32_t), - 1024, rte_socket_id(), + 1024, rte_numa_id(), RING_F_SP_ENQ | RING_F_SC_DEQ); rte_eal_remote_launch(send_compressed, NULL, CORE_SEND);
Signature · 1 line
2.55.0
PATCH 225/227 test-dma-perf: use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Use the NUMA node terminology in the dma-perf application.
--- app/test-dma-perf/benchmark.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
app/test-dma-perf/benchmark.c +4 -4
@@ -550,13 +550,13 @@ setup_memory_env(struct test_configure *cfg, uint32_t nr_buf,unsigned int cur_buf_size = cfg->buf_size.cur;unsigned int buf_size = cur_buf_size +RTE_PKTMBUF_HEADROOM ;bool is_src_numa_incorrect, is_dst_numa_incorrect; -unsigned int nr_sockets; +unsigned int nr_numas;uintptr_t ops;uint32_t i; - nr_sockets =rte_socket_count (); - is_src_numa_incorrect = (cfg->src_numa_node >= nr_sockets); - is_dst_numa_incorrect = (cfg->dst_numa_node >= nr_sockets); + nr_numas =rte_numa_count (); + is_src_numa_incorrect = (cfg->src_numa_node >= nr_numas); + is_dst_numa_incorrect = (cfg->dst_numa_node >= nr_numas);if (is_src_numa_incorrect || is_dst_numa_incorrect) { PRINT_ERR("Error: Incorrect NUMA config for %s.\n",
Signature · 1 line
2.55.0
PATCH 226/227 test/memzone: fix NUMA node terminology rename
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
One socket variable in the memzone tests was missed by the terminology renames; rename it to numa_id.
--- app/test/test_memzone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
app/test/test_memzone.c +4 -4
@@ -576,7 +576,7 @@ test_memzone_reserve_max_aligned(void)const unsigned int align =1 << ((rte_rand () %8 ) +5 );/* from 128 up to 4k alignment */ /* memzone size may be between size and size - align */ - minlen =find_max_block_free_size (align, socket); + minlen =find_max_block_free_size (align, numa_id); maxlen =find_max_block_free_size (0 , numa_id);if (minlen ==0 || maxlen ==0 ) {
@@ -587,7 +587,7 @@ test_memzone_reserve_max_aligned(void) mz =rte_memzone_reserve_aligned (TEST_MEMZONE_NAME ("max_zone_aligned" ), -0 , socket,0 , align); +0 , numa_id,0 , align);if (mz ==NULL ) {printf ("Failed to reserve a big chunk of memory - %s\n" ,rte_strerror (rte_errno));
@@ -1053,9 +1053,9 @@ test_memzone_basic(void) memzone3->iova, memzone3->len))return -1 ; -printf ("check socket ID\n" ); +printf ("check numa_id ID\n" ); -/* memzone2 must be on socket id 0 and memzone3 on socket 1 */ +/* memzone2 must be on numa_id id 0 and memzone3 on numa_id 1 */ if (memzone2->numa_id !=0 )return -1 ;if (memzone3 !=NULL && memzone3->numa_id !=1 )
Signature · 1 line
2.55.0
PATCH 227/227 examples: fix NUMA node terminology residue
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Migrate the socket terminology usages that were merged back from the main tree during the rc1 to rc2 window.
--- examples/ipsec-secgw/ipsec-secgw.h | 2 +- examples/ipsec-secgw/ipsec.h | 2 +- examples/l3fwd-graph/main.c | 10 +++++----- examples/l3fwd-power/main.c | 14 +++++++------- examples/l3fwd/l3fwd.h | 2 +- examples/l3fwd/l3fwd_acl.c | 8 ++++---- examples/l3fwd/l3fwd_em.c | 4 ++-- examples/l3fwd/l3fwd_event.h | 2 +- examples/l3fwd/l3fwd_fib.c | 4 ++-- examples/l3fwd/l3fwd_lpm.c | 4 ++-- examples/l3fwd/main.c | 8 ++++---- .../client_server_mp/mp_server/init.c | 2 +- examples/vhost_crypto/main.c | 10 +++++----- 13 files changed, 36 insertions(+), 36 deletions(-)
examples/ipsec-secgw/ipsec-secgw.h +1 -1
@@ -9,7 +9,7 @@#define MAX_RX_QUEUE_PER_LCORE 16 -#define NB_SOCKETS 4 +#define NB_NUMAS 4#define MAX_PKT_BURST 32#define MAX_PKT_BURST_VEC 256
examples/ipsec-secgw/ipsec.h +1 -1
@@ -310,7 +310,7 @@ struct __rte_cache_aligned lcore_conf {extern struct lcore_conf lcore_conf[RTE_MAX_LCORE ];/* Socket ctx */ -extern struct socket_ctx socket_ctx[NB_SOCKETS ]; +extern struct socket_ctx socket_ctx[NB_NUMAS ];void ipsec_poll_mode_worker (void );
examples/l3fwd-graph/main.c +5 -5
@@ -55,7 +55,7 @@#define MAX_LCORE_PARAMS 1024 -#define NB_SOCKETS 8 +#define NB_NUMAS 8/* Graph module */ #define WORKER_MODEL_RTC "rtc"
@@ -139,7 +139,7 @@ static struct rte_eth_conf port_conf = {static uint32_t max_pkt_len; -static struct rte_mempool *pktmbuf_pool[RTE_MAX_ETHPORTS ][NB_SOCKETS ]; +static struct rte_mempool *pktmbuf_pool[RTE_MAX_ETHPORTS ][NB_NUMAS ];static struct rte_node_ethdev_config ethdev_conf[RTE_MAX_ETHPORTS ];
@@ -657,10 +657,10 @@ init_mem(uint16_t portid, uint32_t nb_mbuf)else socketid =0 ; -if (socketid >=NB_SOCKETS ) { +if (socketid >=NB_NUMAS ) {rte_exit (EXIT_FAILURE ,"Socket %d of lcore %u is out of range %d\n" , - socketid, lcore_id,NB_SOCKETS ); + socketid, lcore_id,NB_NUMAS ); }if (pktmbuf_pool[portid][socketid] ==NULL ) {
@@ -1184,7 +1184,7 @@ main(int argc, char **argv)else ethdev_conf[nb_conf].mp = pktmbuf_pool[portid]; - ethdev_conf[nb_conf].mp_count =NB_SOCKETS ; + ethdev_conf[nb_conf].mp_count =NB_NUMAS ; nb_conf++;printf ("\n" );
examples/l3fwd-power/main.c +7 -7
@@ -114,7 +114,7 @@ RTE_LOG_REGISTER(l3fwd_power_logtype, l3fwd.power, INFO);#define BURST_TX_DRAIN_US 100/* TX drain every ~100us */ -#define NB_SOCKETS 8 +#define NB_NUMAS 8/* Configure how many packets ahead to prefetch, when reading packets */ #define PREFETCH_OFFSET 3
@@ -271,7 +271,7 @@ static uint32_t scale_freq_max;static int cpu_resume_latency =-1 ;static int resume_latency_bk[RTE_MAX_LCORE ]; -static struct rte_mempool * pktmbuf_pool[NB_SOCKETS ]; +static struct rte_mempool *pktmbuf_pool[NB_NUMAS ];#if (APP_LOOKUP_METHOD ==APP_LOOKUP_EXACT_MATCH )
@@ -330,8 +330,8 @@ static struct ipv6_l3fwd_route ipv6_l3fwd_route_array[] = { };typedef struct rte_hash lookup_struct_t ; -static lookup_struct_t *ipv4_l3fwd_lookup_struct[NB_SOCKETS ]; -static lookup_struct_t *ipv6_l3fwd_lookup_struct[NB_SOCKETS ]; +static lookup_struct_t *ipv4_l3fwd_lookup_struct[NB_NUMAS ]; +static lookup_struct_t *ipv6_l3fwd_lookup_struct[NB_NUMAS ];#define L3FWD_HASH_ENTRIES 1024
@@ -360,7 +360,7 @@ static struct ipv4_l3fwd_route ipv4_l3fwd_route_array[] = {#define IPV4_L3FWD_LPM_MAX_RULES 1024typedef struct rte_lpm lookup_struct_t ; -static lookup_struct_t *ipv4_l3fwd_lookup_struct[NB_SOCKETS ]; +static lookup_struct_t *ipv4_l3fwd_lookup_struct[NB_NUMAS ];#endif struct __rte_cache_aligned lcore_conf {
@@ -2050,10 +2050,10 @@ init_mem(unsigned nb_mbuf)else socketid =0 ; -if (socketid >=NB_SOCKETS ) { +if (socketid >=NB_NUMAS ) {rte_exit (EXIT_FAILURE ,"Socket %d of lcore %u is " "out of range %d\n" , socketid, - lcore_id,NB_SOCKETS ); + lcore_id,NB_NUMAS ); }if (pktmbuf_pool[socketid] ==NULL ) {snprintf (s,sizeof (s),"mbuf_pool_%d" , socketid);
examples/l3fwd/l3fwd.h +1 -1
@@ -33,7 +33,7 @@#define VECTOR_SIZE_DEFAULT MAX_PKT_BURST#define VECTOR_TMO_NS_DEFAULT 1E6/* 1ms */ -#define NB_SOCKETS 8 +#define NB_NUMAS 8/* Configure how many packets ahead to prefetch, when reading packets */ #define PREFETCH_OFFSET 3
examples/l3fwd/l3fwd_acl.c +4 -4
@@ -240,8 +240,8 @@ RTE_ACL_RULE_DEF(acl4_rule, RTE_DIM(ipv4_defs));RTE_ACL_RULE_DEF (acl6_rule,RTE_DIM (ipv6_defs)); static struct { - struct rte_acl_ctx *acx_ipv4[NB_SOCKETS]; - struct rte_acl_ctx *acx_ipv6[NB_SOCKETS]; + struct rte_acl_ctx *acx_ipv4[NB_NUMAS]; + struct rte_acl_ctx *acx_ipv6[NB_NUMAS]; #ifdef L3FWDACL_DEBUG struct acl4_rule *rule_ipv4; struct acl6_rule *rule_ipv6;
@@ -955,10 +955,10 @@ setup_acl(const int numa_id)dump_ipv6_rules ((struct acl6_rule *)acl_base_ipv6, acl_num_ipv6,1 );/* Check sockets a context should be created on */ -if (numa_id >=NB_SOCKETS ) { +if (numa_id >=NB_NUMAS ) {acl_log ("Socket %d is out " "of range %d\n" , - numa_id,NB_SOCKETS ); + numa_id,NB_NUMAS );acl_free_routes ();return ; }
examples/l3fwd/l3fwd_em.c +2 -2
@@ -132,8 +132,8 @@ const struct ipv6_l3fwd_em_route ipv6_l3fwd_em_route_array[] = { {32, 1, 2, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 1}, 9, 9, IPPROTO_UDP}, 15}, }; -struct rte_hash *ipv4_l3fwd_em_lookup_struct[NB_SOCKETS ]; -struct rte_hash *ipv6_l3fwd_em_lookup_struct[NB_SOCKETS ]; +struct rte_hash *ipv4_l3fwd_em_lookup_struct[NB_NUMAS ]; +struct rte_hash *ipv6_l3fwd_em_lookup_struct[NB_NUMAS ]; static inline uint32_t ipv4_hash_crc(const void *data, __rte_unused uint32_t data_len,
examples/l3fwd/l3fwd_event.h +1 -1
@@ -66,7 +66,7 @@ struct l3fwd_event_resources {struct l3fwd_event_tx_adptr tx_adptr;uint8_t disable_implicit_release;struct l3fwd_event_setup_ops ops; -struct rte_mempool * (*pkt_pool)[NB_SOCKETS ]; +struct rte_mempool * (*pkt_pool)[NB_NUMAS ];struct rte_mempool **vec_pool;struct l3fwd_event_queues evq;struct l3fwd_event_ports evp;
examples/l3fwd/l3fwd_fib.c +2 -2
@@ -39,8 +39,8 @@#define FIB_SEND_MULTI #endif -static struct rte_fib *ipv4_l3fwd_fib_lookup_struct[NB_SOCKETS ]; -static struct rte_fib6 *ipv6_l3fwd_fib_lookup_struct[NB_SOCKETS ]; +static struct rte_fib *ipv4_l3fwd_fib_lookup_struct[NB_NUMAS ]; +static struct rte_fib6 *ipv6_l3fwd_fib_lookup_struct[NB_NUMAS ];/* Parse packet type and ip address. */ static inline void
examples/l3fwd/l3fwd_lpm.c +2 -2
@@ -38,8 +38,8 @@#define IPV6_L3FWD_LPM_MAX_RULES 1024#define IPV6_L3FWD_LPM_NUMBER_TBL8S (1 << 16) -static struct rte_lpm *ipv4_l3fwd_lpm_lookup_struct[NB_SOCKETS ]; -static struct rte_lpm6 *ipv6_l3fwd_lpm_lookup_struct[NB_SOCKETS ]; +static struct rte_lpm *ipv4_l3fwd_lpm_lookup_struct[NB_NUMAS ]; +static struct rte_lpm6 *ipv6_l3fwd_lpm_lookup_struct[NB_NUMAS ];/* Performing LPM-based lookups. 8< */ static inline uint16_t
examples/l3fwd/main.c +4 -4
@@ -143,8 +143,8 @@ uint32_t max_pkt_len;#ifdef RTE_LIB_EVENTDEV static struct rte_mempool *vector_pool[RTE_MAX_ETHPORTS ];#endif -static struct rte_mempool *pktmbuf_pool[RTE_MAX_ETHPORTS ][NB_SOCKETS ]; -static uint8_t lkp_per_socket[NB_SOCKETS ]; +static struct rte_mempool *pktmbuf_pool[RTE_MAX_ETHPORTS ][NB_NUMAS ]; +static uint8_t lkp_per_socket[NB_NUMAS ];struct l3fwd_lkp_mode {void (*read_config_files)(void );
@@ -1137,10 +1137,10 @@ init_mem(uint16_t portid, unsigned int nb_mbuf)else socketid =0 ; -if (socketid >=NB_SOCKETS ) { +if (socketid >=NB_NUMAS ) {rte_exit (EXIT_FAILURE ,"Socket %d of lcore %u is out of range %d\n" , - socketid, lcore_id,NB_SOCKETS ); + socketid, lcore_id,NB_NUMAS ); }if (pktmbuf_pool[portid][socketid] ==NULL ) {
examples/multi_process/client_server_mp/mp_server/init.c +1 -1
@@ -160,7 +160,7 @@ static intinit_shm_rings (void) {unsigned i; -unsigned int numa_id +unsigned int numa_id;const char * q_name;const unsigned ringsize =CLIENT_QUEUE_RINGSIZE ;
examples/vhost_crypto/main.c +5 -5
@@ -31,26 +31,26 @@#define SESSION_MAP_ENTRIES (1024)#define REFRESH_TIME_SEC (3) -#define MAX_NB_SOCKETS (4) +#define MAX_NB_NUMAS (4)#define MAX_NB_WORKER_CORES (16)struct lcore_option {uint32_t lcore_id; -char *socket_files[MAX_NB_SOCKETS ]; +char *socket_files[MAX_NB_NUMAS ];uint32_t nb_sockets;uint8_t cid;uint16_t qid; };struct __rte_cache_aligned vhost_crypto_info { -int vids[MAX_NB_SOCKETS ]; +int vids[MAX_NB_NUMAS ];uint32_t nb_vids;struct rte_mempool *sess_pool;struct rte_mempool *cop_pool;uint8_t cid;uint32_t qid;uint32_t nb_inflight_ops; -volatile uint32_t initialized[MAX_NB_SOCKETS ]; +volatile uint32_t initialized[MAX_NB_NUMAS ]; };struct vhost_crypto_options {
@@ -123,7 +123,7 @@ parse_socket_arg(char *arg) nb_sockets = lo->nb_sockets; -if (nb_sockets >=MAX_NB_SOCKETS ) { +if (nb_sockets >=MAX_NB_NUMAS ) {RTE_LOG (ERR ,USER1 ,"Too many socket files!\n" );return -ENOMEM ; }
Signature · 1 line
2.55.0
Quoted 10 lines · Chengwen Feng
From: Chengwen Feng <[email protected]>
The DPDK tree conflates CPU sockets with NUMA memory nodes: public APIs, structure fields and macros are named after "socket" although they actually identify a NUMA node (e.g.
rte_socket_id(), thesocket_idfield ofrte_memzone,SOCKET_ID_ANY). This naming misleads application developers and pollutes vendor code that targets NUMA topologies.This series renames the terminology tree-wide:
Do not do this again.
I have set the robot from considering patches from you for the next 227 hours. One for each hour that a patch-by-patch test would take. Do not repost this series again and expect the github robot to run for it. Please work with existing maintainers to come up with a plan for each area rename.
CI resources are shared, and in the case of the github robot, they are shared among OVS, OVN, and DPDK. Additionally, a 227 patch series is completely unreviewable, and completely inconsiderate of reviewers time. Anything above 15 patches is, truly - who can keep that much details in mind.
Quoted 21 lines · Aaron Conole
Quoted 10 lines · Chengwen Feng
From: Chengwen Feng <[email protected]>
The DPDK tree conflates CPU sockets with NUMA memory nodes: public APIs, structure fields and macros are named after "socket" although they actually identify a NUMA node (e.g.
rte_socket_id(), thesocket_idfield ofrte_memzone,SOCKET_ID_ANY). This naming misleads application developers and pollutes vendor code that targets NUMA topologies.This series renames the terminology tree-wide:
Do not do this again.
I have set the robot from considering patches from you for the next 227 hours. One for each hour that a patch-by-patch test would take. Do not repost this series again and expect the github robot to run for it. Please work with existing maintainers to come up with a plan for each area rename.
Quoted 5 lines
CI resources are shared, and in the case of the github robot, they are shared among OVS, OVN, and DPDK. Additionally, a 227 patch series is completely unreviewable, and completely inconsiderate of reviewers time. Anything above 15 patches is, truly - who can keep that much details in mind.
Thanks for your feedback. This 227-patch set exposes the full scope of the NUMA terminology cleanup, as a starting point for discussion and planning. The scope is indeed large, and this rework direction was previously discussed with Thomas and Konstantin.
Could you please lift the robot block for this posting?
I will wait for community consensus before splitting the changes into proper batches for subsequent review.
I apologize for the heavy load imposed on shared CI resources.
Regards,
Chengwen
Quoted 2 lines
Quoted 1,182 lines · On Tue, 3 Nov 2026 22:49:18 +0800 Chengwen Feng <[email protected]>…
From: Chengwen Feng <[email protected]>
The DPDK tree conflates CPU sockets with NUMA memory nodes: public APIs, structure fields and macros are named after "socket" although they actually identify a NUMA node (e.g.
rte_socket_id(), thesocket_idfield ofrte_memzone,SOCKET_ID_ANY). This naming misleads application developers and pollutes vendor code that targets NUMA topologies.This series renames the terminology tree-wide:
Foundation (EAL):
- New NUMA-aware functions are added:rte_numa_id(),rte_numa_count(),rte_numa_id_by_idx(),rte_lcore_to_numa_id(),rte_malloc_heap_numa_is_external(), and friends.
-SOCKET_ID_ANYbecomesRTE_NUMA_ID_ANY;SOCKET_ID_ANYis kept as a deprecated macro alias.
- Thesocket_idfields of the public structures are renamed tonuma_id, keepingsocket_idas a deprecated union alias (so field offsets, and therefore ABI layout, are unchanged). Affected structures includerte_memzone,rte_memseg,rte_memseg_list,rte_mempool,rte_hash_parameters,rte_graph,rte_service_spec,rte_acl_param,rte_gro_param,rte_ipsec_sad_conf, rte_member_*, rte_bbdev_*,rte_cryptodev_config,rte_compressdev_config, rte_event_*,rte_ml_dev_config, rte_rawdev* -- seedoc/guides/rel_notes/deprecation.rstfor the full list.Libraries:
- Library-specific APIs follow the same pattern: ethdev, cryptodev, compressdev, rawdev, mldev, bbdev and eventdev gain NUMA-named device APIs (e.g.rte_event_dev_numa_id()) with the socket variants kept as deprecated aliases.Drivers, applications, examples and documentation:
- One commit per unit; in-tree users are updated in the same commit as the unit they belong to, moving from libs to drivers and then to app/examples.
- The programming guides and API docs are updated to the new names.Compatibility notes:
- The deprecated aliases preserve source compatibility for external applications for one release; they will be removed in a future release, as recorded indeprecation.rst.
- No ABI break: the deprecated union alias keeps the layout identical.
- Device arguments and command-line options that literally use the "socket" name (e.g. --socket-mem, --socket-limit, the socket_id= parameter of the bbdev/compressdev vdevs) are intentionally NOT renamed to avoid breaking user scripts; their documentation still describes the existing parameter names. Feedback on whether/how to migrate these user-facing names is welcome.This series is based on v26.11-rc2 and developped by AI.
Chengwen Feng (227):
eal: add NUMA-aware APIs
mempool: use NUMA node terminology
ring: use NUMA node terminology
hash: use NUMA node terminology
member: use NUMA node terminology
ethdev: rename device socket API to NUMA node API
cryptodev: rename device socket API to NUMA node API
compressdev: rename device socket API to NUMA node API
rawdev: rename device socket API to NUMA node API
mldev: rename device socket API to NUMA node API
bbdev: rename device socket API to NUMA node API
eventdev: rename device socket API to NUMA node API
acl: use NUMA node terminology
ipsec: use NUMA node terminology
graph: use NUMA node terminology
gro: use NUMA node terminology
fib: use NUMA node terminology
rib: use NUMA node terminology
lpm: use NUMA node terminology
efd: use NUMA node terminology
ip_frag: use NUMA node terminology
node: use NUMA node terminology
distributor: use NUMA node terminology
reorder: use NUMA node terminology
stack: use NUMA node terminology
regexdev: use NUMA node terminology
metrics: use NUMA node terminology
mbuf: use NUMA node terminology
timer: use NUMA node terminology
table: use NUMA node terminology
rcu: use NUMA node terminology
pdump: use NUMA node terminology
pdcp: use NUMA node terminology
latencystats: use NUMA node terminology
gpudev: use NUMA node terminology
dmadev: use NUMA node terminology
dispatcher: use NUMA node terminology
vhost: use NUMA node terminology
baseband/acc: use NUMA node terminology baseband/fpga_5gnr_fec: use NUMA node terminology baseband/fpga_lte_fec: use NUMA node terminology baseband/null: use NUMA node terminology baseband/turbo_sw: use NUMA node terminology bus/auxiliary: use NUMA node terminology bus/dpaa: use NUMA node terminology
bus/fslmc: use NUMA node terminology
bus/ifpga: use NUMA node terminology
bus/pci: use NUMA node terminology
bus/platform: use NUMA node terminology bus/vdev: use NUMA node terminology
bus/vmbus: use NUMA node terminology common/cnxk: use NUMA node terminology common/nitrox: use NUMA node terminology common/zsda: use NUMA node terminology compress/isal: use NUMA node terminology compress/mlx5: use NUMA node terminology compress/nitrox: use NUMA node terminology compress/octeontx: use NUMA node terminology compress/uadk: use NUMA node terminology compress/zlib: use NUMA node terminology compress/zsda: use NUMA node terminologycrypto/armv8: use NUMA node terminologycrypto/bcmfs: use NUMA node terminologycrypto/caam_jr: use NUMA node terminologycrypto/ccp: use NUMA node terminologycrypto/cnxk: use NUMA node terminologycrypto/dpaa2_sec: use NUMA node terminologycrypto/dpaa_sec: use NUMA node terminologycrypto/ionic: use NUMA node terminologycrypto/ipsec_mb: use NUMA node terminologycrypto/mlx5: use NUMA node terminologycrypto/mvsam: use NUMA node terminologycrypto/nitrox: use NUMA node terminologycrypto/null: use NUMA node terminologycrypto/octeontx: use NUMA node terminologycrypto/openssl: use NUMA node terminologycrypto/scheduler: use NUMA node terminologycrypto/uadk: use NUMA node terminologycrypto/virtio: use NUMA node terminologycrypto/zsda: use NUMA node terminology dma/ae4dma: use NUMA node terminology
dma/cnxk: use NUMA node terminology
dma/dpaa: use NUMA node terminology
dma/dpaa2: use NUMA node terminology dma/hisi_acc: use NUMA node terminology dma/idxd: use NUMA node terminology dma/imx_edma5: use NUMA node terminology dma/odm: use NUMA node terminology
dma/skeleton: use NUMA node terminology event/cnxk: use NUMA node terminology event/dlb2: use NUMA node terminology event/dpaa: use NUMA node terminology event/dpaa2: use NUMA node terminology event/dsw: use NUMA node terminology event/octeontx: use NUMA node terminology event/opdl: use NUMA node terminology event/skeleton: use NUMA node terminology event/sw: use NUMA node terminology mempool/bucket: use NUMA node terminology mempool/cnxk: use NUMA node terminology
ml/cnxk: use NUMA node terminologynet/af_packet: use NUMA node terminologynet/af_xdp: use NUMA node terminology
net/ark: use NUMA node terminology
net/atlantic: use NUMA node terminology
net/avp: use NUMA node terminology
net/axgbe: use NUMA node terminology
net/bnx2x: use NUMA node terminology
net/bnxt: use NUMA node terminology
net/bonding: use NUMA node terminology
net/cnxk: use NUMA node terminology
net/cxgbe: use NUMA node terminology
net/dpaa: use NUMA node terminology
net/dpaa2: use NUMA node terminology
net/ena: use NUMA node terminology
net/enetc: use NUMA node terminology net/enetfec: use NUMA node terminology
net/enic: use NUMA node terminology net/failsafe: use NUMA node terminology
net/gve: use NUMA node terminology
net/hinic: use NUMA node terminology
net/hinic3: use NUMA node terminology
net/hns3: use NUMA node terminology
net/intel: use NUMA node terminology
net/ionic: use NUMA node terminology
net/mana: use NUMA node terminology
net/memif: use NUMA node terminology
net/mlx4: use NUMA node terminology
net/mvneta: use NUMA node terminology
net/mvpp2: use NUMA node terminology
net/nbl: use NUMA node terminology
net/netvsc: use NUMA node terminology
net/nfb: use NUMA node terminology
net/nfp: use NUMA node terminology
net/ngbe: use NUMA node terminology
net/ntnic: use NUMA node terminology
net/null: use NUMA node terminologynet/octeon_ep: use NUMA node terminology net/octeontx: use NUMA node terminology net/pcap: use NUMA node terminology
net/pfe: use NUMA node terminology
net/qede: use NUMA node terminology
net/r8169: use NUMA node terminology
net/ring: use NUMA node terminology
net/rnp: use NUMA node terminology
net/sfc: use NUMA node terminology
net/softnic: use NUMA node terminology
net/sxe2: use NUMA node terminology
net/tap: use NUMA node terminology
net/thunderx: use NUMA node terminology net/txgbe: use NUMA node terminology
net/vhost: use NUMA node terminology
net/virtio: use NUMA node terminology net/vmxnet3: use NUMA node terminology
net/xsc: use NUMA node terminology
net/zxdh: use NUMA node terminology raw/cnxk_bphy: use NUMA node terminology raw/cnxk_gpio: use NUMA node terminology raw/cnxk_rvu_lf: use NUMA node terminology raw/dpaa2_cmdif: use NUMA node terminology raw/gdtc: use NUMA node terminology
raw/ifpga: use NUMA node terminology
raw/ntb: use NUMA node terminology
raw/skeleton: use NUMA node terminology regex/cn9k: use NUMA node terminology regex/mlx5: use NUMA node terminology
vdpa/mlx5: use NUMA node terminology
drivers: use NUMA node terminology
drivers: use NUMA node terminology
test: use NUMA node terminology
app/testpmd: use NUMA node terminology app/proc-info: use NUMA node terminology app/graph: use NUMA node terminology
app/pdump: use NUMA node terminology app/dumpcap: use NUMA node terminology app/test-mldev: use NUMA node terminology app/test-eventdev: use NUMA node terminology app/test-compress-perf: use NUMA node terminology app/test-crypto-perf: use NUMA node terminology app/test-bbdev: use NUMA node terminology app/test-security-perf: use NUMA node terminology app/test-regex: use NUMA node terminology app/test-flow-perf: use NUMA node terminology examples/bbdev_app: use NUMA node terminology examples/bond: use NUMA node terminology examples/distributor: use NUMA node terminology examples/dma: use NUMA node terminology examples/ethtool: use NUMA node terminology examples/eventdev_pipeline: use NUMA node terminology examples/fips_validation: use NUMA node terminology examples/flow_filtering: use NUMA node terminology examples/ip_fragmentation: use NUMA node terminology examples/ip_reassembly: use NUMA node terminology examples/ipsec-secgw: use NUMA node terminology examples/ipv4_multicast: use NUMA node terminology examples/l2fwd: use NUMA node terminology examples/l2fwd-cat: use NUMA node terminology examples/l2fwd-crypto: use NUMA node terminology examples/l2fwd-event: use NUMA node terminology examples/l2fwd-jobstats: use NUMA node terminology examples/l2fwd-keepalive: use NUMA node terminology examples/l2fwd-macsec: use NUMA node terminology examples/l3fwd: use NUMA node terminology examples/l3fwd-graph: use NUMA node terminology examples/l3fwd-power: use NUMA node terminology examples/link_status_interrupt: use NUMA node terminology examples/multi_process: use NUMA node terminology examples/ntb: use NUMA node terminology examples/packet_ordering: use NUMA node terminology examples/pipeline: use NUMA node terminology examples/ptpclient: use NUMA node terminology examples/ptp_tap_relay_sw: use NUMA node terminology examples/qos_meter: use NUMA node terminology examples/qos_sched: use NUMA node terminology examples/rxtx_callbacks: use NUMA node terminology examples/server_node_efd: use NUMA node terminology examples/skeleton: use NUMA node terminology examples/vhost: use NUMA node terminology examples/vhost_crypto: use NUMA node terminology examples/vm_power_manager: use NUMA node terminology examples/vmdq: use NUMA node terminology examples/vmdq_dcb: use NUMA node terminology
eal: deprecate legacy socket API aliases
doc: use NUMA node terminology
test-dma-perf: use NUMA node terminology test/memzone: fix NUMA node terminology rename
examples: fix NUMA node terminology residueapp/dumpcap/main.c | 4 +- app/graph/ethdev.c | 4 +- app/graph/graph.c | 4 +- app/graph/l2fwd.c | 2 +- app/graph/l3fwd.c | 10 +- app/pdump/main.c | 12 +- app/proc-info/main.c | 10 +- app/test-acl/main.c | 6 +- app/test-bbdev/test_bbdev.c | 38 ++-- app/test-bbdev/test_bbdev_perf.c | 96 ++++---- .../comp_perf_test_common.c | 44 ++-- .../comp_perf_test_cyclecount.c | 6 +- .../comp_perf_test_throughput.c | 6 +- .../comp_perf_test_verify.c | 4 +- app/test-compress-perf/main.c | 22 +- app/test-crypto-perf/cperf_test_common.c | 6 +- app/test-crypto-perf/main.c | 54 ++--- app/test-dma-perf/benchmark.c | 8 +- app/test-eventdev/evt_common.h | 2 +- app/test-eventdev/evt_options.c | 8 +- app/test-eventdev/evt_options.h | 2 +- app/test-eventdev/test_order_common.c | 14 +- app/test-eventdev/test_perf_common.c | 36 +-- app/test-eventdev/test_pipeline_common.c | 14 +- app/test-flow-perf/main.c | 10 +- app/test-mldev/ml_options.c | 14 +- app/test-mldev/ml_options.h | 4 +- app/test-mldev/test_common.c | 10 +- app/test-mldev/test_device_ops.c | 10 +- app/test-mldev/test_inference_common.c | 26 +-- app/test-mldev/test_model_ops.c | 4 +- app/test-pmd/cmdline.c | 26 +-- app/test-pmd/config.c | 10 +- app/test-pmd/noisy_vnf.c | 2 +- app/test-pmd/parameters.c | 46 ++-- app/test-pmd/testpmd.c | 122 +++++----- app/test-pmd/testpmd.h | 20 +- app/test-regex/main.c | 6 +- app/test-sad/main.c | 2 +- app/test-security-perf/test_security_perf.c | 10 +- app/test/sample_packet_forward.c | 10 +- app/test/test_acl.c | 8 +- app/test/test_bitratestats.c | 2 +- app/test/test_bpf.c | 8 +- app/test/test_cksum.c | 2 +- app/test/test_compressdev.c | 22 +- app/test/test_cryptodev.c | 50 ++--- app/test/test_cryptodev_asym.c | 12 +- app/test/test_cryptodev_crosscheck.c | 10 +- app/test/test_distributor.c | 14 +- app/test/test_distributor_perf.c | 6 +- app/test/test_dmadev.c | 4 +- app/test/test_efd.c | 64 +++--- app/test/test_efd_perf.c | 22 +- app/test/test_ethdev_api.c | 6 +- app/test/test_event_crypto_adapter.c | 14 +- app/test/test_event_dma_adapter.c | 6 +- app/test/test_event_eth_rx_adapter.c | 8 +- app/test/test_event_eth_tx_adapter.c | 6 +- app/test/test_event_ring.c | 14 +- app/test/test_event_timer_adapter.c | 6 +- app/test/test_event_vector_adapter.c | 8 +- app/test/test_eventdev.c | 16 +- app/test/test_external_mem.c | 18 +- app/test/test_fib.c | 48 ++-- app/test/test_fib6.c | 66 +++--- app/test/test_fib6_perf.c | 2 +- app/test/test_fib_perf.c | 2 +- app/test/test_func_reentrancy.c | 16 +- app/test/test_graph.c | 6 +- app/test/test_graph_feature_arc.c | 2 +- app/test/test_graph_perf.c | 6 +- app/test/test_hash.c | 72 +++--- app/test/test_hash_multiwriter.c | 2 +- app/test/test_hash_perf.c | 4 +- app/test/test_hash_readwrite.c | 2 +- app/test/test_hash_readwrite_lf_perf.c | 2 +- app/test/test_ipfrag.c | 6 +- app/test/test_ipsec.c | 12 +- app/test/test_ipsec_perf.c | 12 +- app/test/test_ipsec_sad.c | 24 +- app/test/test_latencystats.c | 2 +- app/test/test_link_bonding.c | 22 +- app/test/test_link_bonding_mode4.c | 16 +- app/test/test_link_bonding_rssconf.c | 8 +- app/test/test_lpm.c | 64 +++--- app/test/test_lpm6.c | 70 +++--- app/test/test_lpm6_perf.c | 2 +- app/test/test_lpm_perf.c | 4 +- app/test/test_malloc.c | 152 ++++++------- app/test/test_malloc_perf.c | 2 +- app/test/test_mbuf.c | 18 +- app/test/test_member.c | 6 +- app/test/test_member_perf.c | 6 +- app/test/test_mempool.c | 40 ++-- app/test/test_mempool_perf.c | 10 +- app/test/test_memzone.c | 121 +++++----- app/test/test_metrics.c | 2 +- app/test/test_mp_secondary.c | 8 +- app/test/test_net_ether.c | 2 +- app/test/test_pcapng.c | 2 +- app/test/test_pdcp.c | 14 +- app/test/test_pdump.c | 2 +- app/test/test_per_lcore.c | 4 +- app/test/test_pmd_af_packet.c | 10 +- app/test/test_pmd_memif.c | 2 +- app/test/test_pmd_pcap.c | 6 +- app/test/test_pmd_perf.c | 72 +++--- app/test/test_pmd_ring.c | 2 +- app/test/test_pmd_ring_perf.c | 2 +- app/test/test_pmd_tap.c | 6 +- app/test/test_rcu_qsbr.c | 2 +- app/test/test_rcu_qsbr_perf.c | 2 +- app/test/test_reassembly.c | 4 +- app/test/test_reassembly_perf.c | 4 +- app/test/test_reorder.c | 20 +- app/test/test_rib.c | 20 +- app/test/test_rib6.c | 20 +- app/test/test_ring.c | 28 +-- app/test/test_ring.h | 6 +- app/test/test_ring_perf.c | 20 +- app/test/test_security.c | 2 +- app/test/test_security_inline_macsec.c | 8 +- app/test/test_security_inline_proto.c | 12 +- app/test/test_stack.c | 10 +- app/test/test_stack_perf.c | 14 +- app/test/test_timer_secondary.c | 4 +- app/test/virtual_pmd.c | 32 +-- app/test/virtual_pmd.h | 2 +- doc/api/doxy-api.conf.in | 1 + doc/guides/prog_guide/bbdev.rst | 14 +- doc/guides/prog_guide/compressdev.rst | 4 +- .../prog_guide/env_abstraction_layer.rst | 32 +-- .../eventdev/event_timer_adapter.rst | 2 +- .../eventdev/event_vector_adapter.rst | 2 +- doc/guides/prog_guide/eventdev/eventdev.rst | 2 +- doc/guides/prog_guide/gpudev.rst | 2 +- doc/guides/prog_guide/ptr_compress_lib.rst | 2 +- doc/guides/rel_notes/deprecation.rst | 27 +++ doc/guides/rel_notes/release_26_11.rst | 25 ++- drivers/baseband/acc/acc_common.h | 4 +- drivers/baseband/acc/rte_acc100_pmd.c | 44 ++-- drivers/baseband/acc/rte_vrb_pmd.c | 46 ++-- .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 24 +- drivers/baseband/fpga_lte_fec/fpga_lte_fec.c | 24 +- drivers/baseband/la12xx/bbdev_la12xx.c | 2 +- drivers/baseband/null/bbdev_null.c | 26 +-- .../baseband/turbo_sw/bbdev_turbo_software.c | 54 ++--- drivers/bus/auxiliary/auxiliary_common.c | 2 +- drivers/bus/auxiliary/linux/auxiliary.c | 2 +- drivers/bus/dpaa/dpaa_bus.c | 2 +- drivers/bus/fslmc/fslmc_bus.c | 2 +- drivers/bus/ifpga/ifpga_bus.c | 2 +- drivers/bus/pci/bsd/pci.c | 2 +- drivers/bus/pci/linux/pci.c | 2 +- drivers/bus/pci/pci_common.c | 2 +- drivers/bus/pci/windows/pci.c | 2 +- drivers/bus/platform/platform.c | 2 +- drivers/bus/vdev/vdev.c | 4 +- drivers/bus/vmbus/linux/vmbus_bus.c | 2 +- drivers/bus/vmbus/vmbus_channel.c | 2 +- drivers/bus/vmbus/vmbus_common.c | 2 +- drivers/common/cnxk/roc_platform.c | 2 +- drivers/common/cnxk/roc_platform.h | 2 +- .../common/mlx5/linux/mlx5_common_auxiliary.c | 6 +- drivers/common/mlx5/linux/mlx5_nl.c | 4 +- drivers/common/mlx5/mlx5_common.c | 4 +- drivers/common/mlx5/mlx5_common_mr.c | 16 +- drivers/common/mlx5/mlx5_common_mr.h | 2 +- drivers/common/mlx5/mlx5_common_utils.c | 6 +- drivers/common/mlx5/mlx5_devx_cmds.c | 50 ++--- drivers/common/mlx5/mlx5_malloc.c | 10 +- drivers/common/mlx5/mlx5_malloc.h | 4 +- drivers/common/mlx5/windows/mlx5_common_os.c | 4 +- drivers/common/nitrox/nitrox_device.c | 2 +- drivers/common/nitrox/nitrox_qp.c | 16 +- drivers/common/nitrox/nitrox_qp.h | 2 +- drivers/common/qat/qat_device.c | 2 +- drivers/common/qat/qat_qp.c | 22 +- drivers/common/qat/qat_qp.h | 2 +- drivers/common/zsda/zsda_device.c | 4 +- drivers/common/zsda/zsda_qp.c | 18 +- drivers/common/zsda/zsda_qp.h | 4 +- drivers/compress/isal/isal_compress_pmd.c | 4 +- drivers/compress/isal/isal_compress_pmd_ops.c | 26 +-- drivers/compress/mlx5/mlx5_compress.c | 22 +- drivers/compress/nitrox/nitrox_comp.c | 22 +- drivers/compress/nitrox/nitrox_comp_reqmgr.c | 22 +- drivers/compress/nitrox/nitrox_comp_reqmgr.h | 2 +- drivers/compress/octeontx/otx_zip_pmd.c | 18 +- drivers/compress/qat/qat_comp.c | 14 +- drivers/compress/qat/qat_comp.h | 2 +- drivers/compress/qat/qat_comp_pmd.c | 36 +-- drivers/compress/qat/qat_comp_pmd.h | 2 +- drivers/compress/uadk/uadk_compress_pmd.c | 14 +- drivers/compress/zlib/zlib_pmd.c | 2 +- drivers/compress/zlib/zlib_pmd_ops.c | 16 +- drivers/compress/zsda/zsda_comp_pmd.c | 14 +- drivers/crypto/armv8/rte_armv8_pmd.c | 6 +- drivers/crypto/armv8/rte_armv8_pmd_ops.c | 12 +- drivers/crypto/bcmfs/bcmfs_qp.c | 16 +- drivers/crypto/bcmfs/bcmfs_qp.h | 2 +- drivers/crypto/bcmfs/bcmfs_sym_pmd.c | 12 +- drivers/crypto/caam_jr/caam_jr.c | 8 +- drivers/crypto/ccp/ccp_dev.c | 14 +- drivers/crypto/ccp/ccp_pmd_ops.c | 14 +- drivers/crypto/ccp/rte_ccp_pmd.c | 10 +- drivers/crypto/cnxk/cn10k_cryptodev.c | 2 +- drivers/crypto/cnxk/cn20k_cryptodev.c | 2 +- drivers/crypto/cnxk/cn9k_cryptodev.c | 2 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 12 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 4 +- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 8 +- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +- drivers/crypto/ionic/ionic_crypto.h | 6 +- drivers/crypto/ionic/ionic_crypto_main.c | 42 ++-- drivers/crypto/ionic/ionic_crypto_ops.c | 8 +- drivers/crypto/ionic/ionic_crypto_vdev.c | 2 +- drivers/crypto/ipsec_mb/ipsec_mb_ops.c | 22 +- drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 +- drivers/crypto/ipsec_mb/ipsec_mb_private.h | 4 +- drivers/crypto/ipsec_mb/pmd_aesni_gcm.c | 6 +- drivers/crypto/ipsec_mb/pmd_aesni_mb.c | 2 +- drivers/crypto/ipsec_mb/pmd_snow3g.c | 2 +- drivers/crypto/ipsec_mb/pmd_zuc.c | 2 +- drivers/crypto/mlx5/mlx5_crypto.c | 2 +- drivers/crypto/mlx5/mlx5_crypto_gcm.c | 18 +- drivers/crypto/mlx5/mlx5_crypto_xts.c | 12 +- drivers/crypto/mvsam/rte_mrvl_pmd.c | 8 +- drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 8 +- drivers/crypto/nitrox/nitrox_sym.c | 12 +- drivers/crypto/nitrox/nitrox_sym_reqmgr.c | 4 +- drivers/crypto/nitrox/nitrox_sym_reqmgr.h | 2 +- drivers/crypto/null/null_crypto_pmd.c | 4 +- drivers/crypto/null/null_crypto_pmd_ops.c | 12 +- drivers/crypto/octeontx/otx_cryptodev.c | 2 +- .../crypto/octeontx/otx_cryptodev_hw_access.c | 2 +- drivers/crypto/octeontx/otx_cryptodev_ops.c | 6 +- drivers/crypto/openssl/rte_openssl_pmd.c | 4 +- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 12 +- drivers/crypto/qat/asym/qat_asym.c | 2 +- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c | 2 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c | 6 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 2 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 4 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen5.c | 2 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen6.c | 2 +- .../crypto/qat/dev/qat_crypto_pmd_gen_lce.c | 2 +- drivers/crypto/qat/dev/qat_sym_pmd_gen1.c | 2 +- drivers/crypto/qat/qat_crypto.c | 4 +- drivers/crypto/qat/qat_crypto.h | 2 +- drivers/crypto/qat/qat_sym.c | 2 +- .../scheduler/rte_cryptodev_scheduler.c | 16 +- drivers/crypto/scheduler/scheduler_failover.c | 4 +- .../crypto/scheduler/scheduler_multicore.c | 12 +- .../scheduler/scheduler_pkt_size_distr.c | 8 +- drivers/crypto/scheduler/scheduler_pmd.c | 24 +- drivers/crypto/scheduler/scheduler_pmd_ops.c | 10 +- .../crypto/scheduler/scheduler_roundrobin.c | 4 +- drivers/crypto/uadk/uadk_crypto_pmd.c | 12 +- drivers/crypto/virtio/virtio_cryptodev.c | 14 +- drivers/crypto/virtio/virtio_cryptodev.h | 2 +- drivers/crypto/virtio/virtio_user_cryptodev.c | 2 +- drivers/crypto/virtio/virtqueue.c | 2 +- drivers/crypto/zsda/zsda_crypto_pmd.c | 12 +- drivers/dma/ae4dma/ae4dma_dmadev.c | 6 +- drivers/dma/cnxk/cnxk_dmadev.c | 2 +- drivers/dma/dpaa/dpaa_qdma.c | 2 +- drivers/dma/dpaa2/dpaa2_qdma.c | 4 +- drivers/dma/hisi_acc/hisi_acc_dmadev.c | 2 +- drivers/dma/idxd/idxd_bus.c | 2 +- drivers/dma/idxd/idxd_common.c | 2 +- drivers/dma/imx_edma5/imx_edma5_dmadev.c | 8 +- drivers/dma/odm/odm.c | 4 +- drivers/dma/skeleton/skeleton_dmadev.c | 26 +-- drivers/dma/skeleton/skeleton_dmadev.h | 2 +- drivers/event/cnxk/cn10k_eventdev.c | 4 +- drivers/event/cnxk/cn20k_eventdev.c | 4 +- drivers/event/cnxk/cn9k_eventdev.c | 8 +- drivers/event/cnxk/cnxk_eventdev.c | 2 +- drivers/event/cnxk/cnxk_eventdev_adptr.c | 2 +- drivers/event/cnxk/cnxk_eventdev_selftest.c | 2 +- drivers/event/cnxk/cnxk_tim_evdev.c | 4 +- drivers/event/dlb2/dlb2.c | 8 +- drivers/event/dlb2/dlb2_priv.h | 4 +- drivers/event/dlb2/dlb2_selftest.c | 2 +- drivers/event/dlb2/dlb2_xstats.c | 8 +- drivers/event/dlb2/pf/dlb2_pf.c | 14 +- drivers/event/dpaa/dpaa_eventdev.c | 2 +- drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- drivers/event/dpaa2/dpaa2_eventdev_selftest.c | 2 +- drivers/event/dsw/dsw_evdev.c | 6 +- drivers/event/octeontx/ssovf_evdev.c | 6 +- drivers/event/octeontx/ssovf_evdev_selftest.c | 2 +- drivers/event/octeontx/ssovf_worker.c | 2 +- drivers/event/octeontx/timvf_evdev.c | 2 +- drivers/event/opdl/opdl_evdev.c | 16 +- drivers/event/opdl/opdl_ring.c | 6 +- drivers/event/opdl/opdl_ring.h | 2 +- drivers/event/opdl/opdl_test.c | 2 +- drivers/event/skeleton/skeleton_eventdev.c | 18 +- drivers/event/sw/event_ring.h | 4 +- drivers/event/sw/sw_evdev.c | 32 +-- drivers/event/sw/sw_evdev_selftest.c | 2 +- drivers/event/sw/sw_evdev_xstats.c | 4 +- drivers/mempool/bucket/rte_mempool_bucket.c | 14 +- drivers/mempool/cnxk/cn10k_mempool_ops.c | 2 +- drivers/mempool/cnxk/cnxk_mempool.c | 2 +- .../mempool/octeontx/rte_mempool_octeontx.c | 4 +- drivers/mempool/ring/rte_mempool_ring.c | 2 +- drivers/mempool/stack/rte_mempool_stack.c | 2 +- drivers/ml/cnxk/cn10k_ml_dev.c | 2 +- drivers/ml/cnxk/cnxk_ml_ops.c | 12 +- drivers/ml/cnxk/mvtvm_ml_dev.c | 2 +- drivers/net/af_packet/rte_eth_af_packet.c | 22 +- drivers/net/af_xdp/rte_eth_af_xdp.c | 34 +-- drivers/net/ark/ark_ethdev.c | 4 +- drivers/net/ark/ark_ethdev_rx.c | 14 +- drivers/net/ark/ark_ethdev_rx.h | 2 +- drivers/net/ark/ark_ethdev_tx.c | 14 +- drivers/net/ark/ark_ethdev_tx.h | 2 +- drivers/net/atlantic/atl_ethdev.h | 4 +- drivers/net/atlantic/atl_rxtx.c | 24 +- drivers/net/avp/avp_ethdev.c | 16 +- drivers/net/axgbe/axgbe_rxtx.c | 16 +- drivers/net/axgbe/axgbe_rxtx.h | 4 +- drivers/net/bnx2x/bnx2x.c | 2 +- drivers/net/bnx2x/bnx2x_rxtx.c | 22 +- drivers/net/bnx2x/bnx2x_rxtx.h | 4 +- drivers/net/bnxt/bnxt_ethdev.c | 6 +- drivers/net/bnxt/bnxt_mpc.c | 38 ++-- drivers/net/bnxt/bnxt_reps.c | 32 +-- drivers/net/bnxt/bnxt_reps.h | 4 +- drivers/net/bnxt/bnxt_ring.c | 12 +- drivers/net/bnxt/bnxt_ring.h | 2 +- drivers/net/bnxt/bnxt_rxq.c | 10 +- drivers/net/bnxt/bnxt_rxq.h | 2 +- drivers/net/bnxt/bnxt_rxr.c | 22 +- drivers/net/bnxt/bnxt_rxr.h | 2 +- drivers/net/bnxt/bnxt_txq.c | 14 +- drivers/net/bnxt/bnxt_txq.h | 2 +- drivers/net/bnxt/bnxt_txr.c | 18 +- drivers/net/bnxt/bnxt_txr.h | 2 +- drivers/net/bnxt/bnxt_vnic.c | 2 +- drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c | 2 +- drivers/net/bnxt/tf_ulp/ulp_matcher.c | 4 +- drivers/net/bonding/eth_bond_private.h | 2 +- drivers/net/bonding/rte_eth_bond.h | 4 +- drivers/net/bonding/rte_eth_bond_8023ad.c | 14 +- drivers/net/bonding/rte_eth_bond_alb.c | 4 +- drivers/net/bonding/rte_eth_bond_api.c | 4 +- drivers/net/bonding/rte_eth_bond_args.c | 14 +- drivers/net/bonding/rte_eth_bond_flow.c | 2 +- drivers/net/bonding/rte_eth_bond_pmd.c | 36 +-- drivers/net/cnxk/cnxk_eswitch.c | 2 +- drivers/net/cnxk/cnxk_ethdev_sec.c | 6 +- drivers/net/cnxk/cnxk_lookup.c | 2 +- drivers/net/cnxk/cnxk_rep.h | 4 +- drivers/net/cnxk/cnxk_rep_ops.c | 8 +- drivers/net/cxgbe/base/adapter.h | 6 +- drivers/net/cxgbe/cxgbe_ethdev.c | 16 +- drivers/net/cxgbe/cxgbe_main.c | 18 +- drivers/net/cxgbe/cxgbe_pfvf.h | 4 +- drivers/net/cxgbe/cxgbevf_main.c | 4 +- drivers/net/cxgbe/sge.c | 28 +-- drivers/net/dpaa/dpaa_ethdev.c | 6 +- drivers/net/dpaa2/dpaa2_ethdev.c | 6 +- drivers/net/dpaa2/dpaa2_tm.c | 6 +- drivers/net/ena/base/ena_plat_dpdk.h | 6 +- drivers/net/ena/ena_ethdev.c | 42 ++-- drivers/net/ena/ena_ethdev.h | 2 +- drivers/net/enetc/enetc.h | 4 +- drivers/net/enetc/enetc4_ethdev.c | 4 +- drivers/net/enetc/enetc_ethdev.c | 4 +- drivers/net/enetfec/enet_ethdev.c | 4 +- drivers/net/enic/base/vnic_cq.c | 8 +- drivers/net/enic/base/vnic_cq.h | 4 +- drivers/net/enic/base/vnic_dev.c | 4 +- drivers/net/enic/base/vnic_dev.h | 2 +- drivers/net/enic/base/vnic_rq.c | 6 +- drivers/net/enic/base/vnic_rq.h | 2 +- drivers/net/enic/base/vnic_wq.c | 8 +- drivers/net/enic/base/vnic_wq.h | 2 +- drivers/net/enic/enic.h | 4 +- drivers/net/enic/enic_ethdev.c | 8 +- drivers/net/enic/enic_fm_flow.c | 2 +- drivers/net/enic/enic_main.c | 32 +-- drivers/net/enic/enic_sriov.c | 10 +- drivers/net/enic/enic_vf_representor.c | 8 +- drivers/net/failsafe/failsafe.c | 6 +- drivers/net/failsafe/failsafe_ether.c | 4 +- drivers/net/failsafe/failsafe_intr.c | 2 +- drivers/net/failsafe/failsafe_ops.c | 12 +- drivers/net/failsafe/failsafe_private.h | 4 +- drivers/net/gve/base/gve_osdep.h | 2 +- drivers/net/gve/gve_ethdev.c | 14 +- drivers/net/gve/gve_ethdev.h | 8 +- drivers/net/gve/gve_rx.c | 16 +- drivers/net/gve/gve_rx_dqo.c | 24 +- drivers/net/gve/gve_tx.c | 18 +- drivers/net/gve/gve_tx_dqo.c | 16 +- drivers/net/hinic/base/hinic_compat.h | 6 +- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 6 +- drivers/net/hinic/base/hinic_pmd_eqs.c | 2 +- drivers/net/hinic/base/hinic_pmd_hwdev.c | 20 +- drivers/net/hinic/base/hinic_pmd_mbox.c | 2 +- drivers/net/hinic/base/hinic_pmd_wq.c | 10 +- drivers/net/hinic/base/hinic_pmd_wq.h | 2 +- drivers/net/hinic/hinic_pmd_ethdev.c | 26 +-- drivers/net/hinic/hinic_pmd_rx.c | 16 +- drivers/net/hinic/hinic_pmd_rx.h | 4 +- drivers/net/hinic/hinic_pmd_tx.c | 8 +- drivers/net/hinic/hinic_pmd_tx.h | 4 +- drivers/net/hinic3/base/hinic3_cmdq.c | 2 +- drivers/net/hinic3/base/hinic3_eqs.c | 2 +- drivers/net/hinic3/base/hinic3_hwdev.c | 4 +- drivers/net/hinic3/base/hinic3_hwdev.h | 2 +- drivers/net/hinic3/base/hinic3_mbox.c | 4 +- drivers/net/hinic3/base/hinic3_wq.c | 2 +- drivers/net/hinic3/hinic3_ethdev.c | 38 ++-- drivers/net/hns3/hns3_cmd.c | 2 +- drivers/net/hns3/hns3_fdir.c | 2 +- drivers/net/hns3/hns3_rxtx.c | 44 ++-- drivers/net/hns3/hns3_rxtx.h | 6 +- drivers/net/intel/cpfl/cpfl_ethdev.c | 4 +- drivers/net/intel/cpfl/cpfl_representor.c | 4 +- drivers/net/intel/cpfl/cpfl_rxtx.c | 74 +++---- drivers/net/intel/cpfl/cpfl_rxtx.h | 4 +- drivers/net/intel/e1000/e1000_ethdev.h | 8 +- drivers/net/intel/e1000/em_rxtx.c | 8 +- drivers/net/intel/e1000/igb_rxtx.c | 8 +- drivers/net/intel/e1000/igc_txrx.c | 8 +- drivers/net/intel/e1000/igc_txrx.h | 4 +- drivers/net/intel/fm10k/fm10k_ethdev.c | 28 +-- drivers/net/intel/i40e/i40e_ethdev.c | 4 +- drivers/net/intel/i40e/i40e_ethdev.h | 2 +- drivers/net/intel/i40e/i40e_fdir.c | 8 +- drivers/net/intel/i40e/i40e_flow_ethertype.c | 2 +- drivers/net/intel/i40e/i40e_rxtx.c | 44 ++-- drivers/net/intel/i40e/i40e_rxtx.h | 4 +- drivers/net/intel/i40e/i40e_vf_representor.c | 4 +- drivers/net/intel/iavf/iavf_osdep.c | 2 +- drivers/net/intel/iavf/iavf_rxtx.c | 32 +-- drivers/net/intel/iavf/iavf_rxtx.h | 4 +- .../net/intel/ice/ice_dcf_vf_representor.c | 4 +- drivers/net/intel/ice/ice_fdir_filter.c | 8 +- drivers/net/intel/ice/ice_osdep.h | 2 +- drivers/net/intel/ice/ice_rxtx.c | 46 ++-- drivers/net/intel/ice/ice_rxtx.h | 4 +- drivers/net/intel/idpf/idpf_common_rxtx.c | 6 +- drivers/net/intel/idpf/idpf_common_rxtx.h | 2 +- drivers/net/intel/idpf/idpf_osdep.h | 2 +- drivers/net/intel/idpf/idpf_rxtx.c | 60 ++--- drivers/net/intel/idpf/idpf_rxtx.h | 4 +- drivers/net/intel/ipn3ke/ipn3ke_ethdev.c | 2 +- drivers/net/intel/ipn3ke/ipn3ke_representor.c | 4 +- drivers/net/intel/ixgbe/ixgbe_ethdev.c | 2 +- drivers/net/intel/ixgbe/ixgbe_ethdev.h | 4 +- drivers/net/intel/ixgbe/ixgbe_rxtx.c | 32 +-- .../net/intel/ixgbe/ixgbe_vf_representor.c | 4 +- drivers/net/ionic/ionic_lif.c | 38 ++-- drivers/net/ionic/ionic_lif.h | 4 +- drivers/net/ionic/ionic_main.c | 6 +- drivers/net/ionic/ionic_rxtx.c | 12 +- drivers/net/ionic/ionic_rxtx.h | 4 +- drivers/net/mana/mana.c | 54 ++--- drivers/net/mana/mr.c | 4 +- drivers/net/memif/memif_socket.c | 2 +- drivers/net/memif/rte_eth_memif.c | 4 +- drivers/net/mlx4/mlx4.c | 8 +- drivers/net/mlx4/mlx4_mr.c | 14 +- drivers/net/mlx4/mlx4_utils.c | 14 +- drivers/net/mlx5/hws/mlx5dr_internal.h | 4 +- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 8 +- drivers/net/mlx5/linux/mlx5_os.c | 14 +- drivers/net/mlx5/linux/mlx5_verbs.c | 6 +- drivers/net/mlx5/linux/mlx5_vlan_os.c | 2 +- drivers/net/mlx5/mlx5.c | 16 +- drivers/net/mlx5/mlx5_devx.c | 12 +- drivers/net/mlx5/mlx5_ethdev.c | 6 +- drivers/net/mlx5/mlx5_flow.c | 29 +-- drivers/net/mlx5/mlx5_flow_aso.c | 8 +- drivers/net/mlx5/mlx5_flow_dv.c | 32 +-- drivers/net/mlx5/mlx5_flow_flex.c | 4 +- drivers/net/mlx5/mlx5_flow_geneve.c | 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 48 ++-- drivers/net/mlx5/mlx5_flow_meter.c | 14 +- drivers/net/mlx5/mlx5_flow_quota.c | 6 +- drivers/net/mlx5/mlx5_flow_verbs.c | 2 +- drivers/net/mlx5/mlx5_hws_cnt.c | 30 +-- drivers/net/mlx5/mlx5_nta_sample.c | 16 +- drivers/net/mlx5/mlx5_nta_split.c | 2 +- drivers/net/mlx5/mlx5_rss.c | 4 +- drivers/net/mlx5/mlx5_rxq.c | 24 +- drivers/net/mlx5/mlx5_stats.c | 2 +- drivers/net/mlx5/mlx5_trigger.c | 2 +- drivers/net/mlx5/mlx5_tx.c | 2 +- drivers/net/mlx5/mlx5_txq.c | 13 +- drivers/net/mlx5/mlx5_utils.c | 30 +-- drivers/net/mlx5/windows/mlx5_flow_os.c | 4 +- drivers/net/mlx5/windows/mlx5_os.c | 8 +- drivers/net/mvneta/mvneta_ethdev.c | 2 +- drivers/net/mvneta/mvneta_rxtx.c | 4 +- drivers/net/mvpp2/mrvl_ethdev.c | 6 +- drivers/net/mvpp2/mrvl_flow.c | 8 +- drivers/net/mvpp2/mrvl_mtr.c | 4 +- drivers/net/mvpp2/mrvl_qos.c | 4 +- drivers/net/mvpp2/mrvl_tm.c | 6 +- drivers/net/nbl/nbl_common/nbl_common.c | 2 +- drivers/net/nbl/nbl_dev/nbl_dev.c | 8 +- drivers/net/nbl/nbl_dev/nbl_dev.h | 4 +- drivers/net/nbl/nbl_hw/nbl_txrx.c | 14 +- drivers/net/nbl/nbl_include/nbl_include.h | 4 +- drivers/net/netvsc/hn_ethdev.c | 6 +- drivers/net/netvsc/hn_rxtx.c | 30 +-- drivers/net/netvsc/hn_var.h | 10 +- drivers/net/netvsc/hn_vf.c | 8 +- drivers/net/nfb/nfb_ethdev.c | 2 +- drivers/net/nfb/nfb_rx.c | 8 +- drivers/net/nfb/nfb_rx.h | 2 +- drivers/net/nfb/nfb_tx.c | 8 +- drivers/net/nfb/nfb_tx.h | 2 +- drivers/net/nfp/flower/nfp_conntrack.c | 2 +- drivers/net/nfp/flower/nfp_flower.c | 16 +- drivers/net/nfp/flower/nfp_flower_flow.c | 10 +- .../net/nfp/flower/nfp_flower_representor.c | 20 +- drivers/net/nfp/nfd3/nfp_nfd3.h | 2 +- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 12 +- drivers/net/nfp/nfdk/nfp_nfdk.h | 2 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 12 +- drivers/net/nfp/nfp_net_common.c | 2 +- drivers/net/nfp/nfp_net_flow.c | 2 +- drivers/net/nfp/nfp_rxtx.c | 18 +- drivers/net/nfp/nfp_rxtx.h | 4 +- drivers/net/nfp/nfpcore/nfp_sync.c | 2 +- drivers/net/ngbe/ngbe_ethdev.c | 2 +- drivers/net/ngbe/ngbe_ethdev.h | 4 +- drivers/net/ngbe/ngbe_rxtx.c | 28 +-- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 4 +- .../link_mgmt/link_100g/nt4ga_link_100g.c | 2 +- .../link_agx_100g/nt4ga_agx_link_100g.c | 2 +- .../flow_api/profile_inline/flm_age_queue.c | 2 +- .../flow_api/profile_inline/flm_evt_queue.c | 2 +- .../flow_api/profile_inline/flm_lrn_queue.c | 2 +- drivers/net/ntnic/ntnic_ethdev.c | 24 +- drivers/net/ntnic/ntutil/nt_util.c | 4 +- drivers/net/null/rte_eth_null.c | 14 +- drivers/net/octeon_ep/otx_ep_common.h | 4 +- drivers/net/octeon_ep/otx_ep_ethdev.c | 12 +- drivers/net/octeon_ep/otx_ep_rxtx.c | 32 +-- drivers/net/octeontx/octeontx_ethdev.c | 40 ++-- drivers/net/pcap/pcap_ethdev.c | 14 +- drivers/net/pfe/pfe_ethdev.c | 4 +- drivers/net/qede/base/bcm_osal.c | 12 +- drivers/net/qede/qede_filter.c | 2 +- drivers/net/qede/qede_rxtx.c | 54 ++--- drivers/net/qede/qede_rxtx.h | 4 +- drivers/net/r8169/r8169_ethdev.h | 4 +- drivers/net/r8169/r8169_hw.c | 2 +- drivers/net/r8169/r8169_rxtx.c | 16 +- drivers/net/ring/rte_eth_ring.c | 20 +- drivers/net/rnp/base/rnp_osdep.h | 2 +- drivers/net/rnp/rnp_ethdev.c | 4 +- drivers/net/rnp/rnp_rxtx.c | 40 ++-- drivers/net/rnp/rnp_rxtx.h | 4 +- drivers/net/sfc/sfc.c | 20 +- drivers/net/sfc/sfc.h | 4 +- drivers/net/sfc/sfc_dp_rx.h | 4 +- drivers/net/sfc/sfc_dp_tx.h | 4 +- drivers/net/sfc/sfc_ef100_rx.c | 10 +- drivers/net/sfc/sfc_ef100_tx.c | 10 +- drivers/net/sfc/sfc_ef10_essb_rx.c | 10 +- drivers/net/sfc/sfc_ef10_rx.c | 10 +- drivers/net/sfc/sfc_ef10_tx.c | 14 +- drivers/net/sfc/sfc_ethdev.c | 16 +- drivers/net/sfc/sfc_ev.c | 10 +- drivers/net/sfc/sfc_ev.h | 2 +- drivers/net/sfc/sfc_mae.c | 2 +- drivers/net/sfc/sfc_mae_counter.c | 26 +-- drivers/net/sfc/sfc_mcdi.c | 2 +- drivers/net/sfc/sfc_port.c | 10 +- drivers/net/sfc/sfc_repr.c | 20 +- drivers/net/sfc/sfc_repr_proxy.c | 18 +- drivers/net/sfc/sfc_rx.c | 26 +-- drivers/net/sfc/sfc_rx.h | 2 +- drivers/net/sfc/sfc_service.c | 22 +- drivers/net/sfc/sfc_service.h | 2 +- drivers/net/sfc/sfc_sw_stats.c | 4 +- drivers/net/sfc/sfc_tbl_meta_cache.c | 2 +- drivers/net/sfc/sfc_tso.c | 6 +- drivers/net/sfc/sfc_tx.c | 28 +-- drivers/net/sfc/sfc_tx.h | 4 +- drivers/net/softnic/rte_eth_softnic.c | 6 +- drivers/net/softnic/rte_eth_softnic_thread.c | 4 +- drivers/net/sxe2/sxe2_ethdev_repr.c | 2 +- drivers/net/sxe2/sxe2_mp.c | 2 +- drivers/net/sxe2/sxe2_rx.c | 16 +- drivers/net/sxe2/sxe2_rx.h | 2 +- drivers/net/sxe2/sxe2_tx.c | 16 +- drivers/net/sxe2/sxe2_tx.h | 2 +- drivers/net/tap/rte_eth_tap.c | 22 +- drivers/net/thunderx/nicvf_ethdev.c | 24 +- drivers/net/txgbe/txgbe_ethdev.c | 6 +- drivers/net/txgbe/txgbe_ethdev.h | 4 +- drivers/net/txgbe/txgbe_rxtx.c | 34 +-- drivers/net/vhost/rte_eth_vhost.c | 28 +-- drivers/net/virtio/virtio_ethdev.c | 4 +- drivers/net/virtio/virtio_ethdev.h | 4 +- drivers/net/virtio/virtio_rxtx.c | 6 +- .../net/virtio/virtio_user/virtio_user_dev.c | 2 +- drivers/net/virtio/virtqueue.c | 6 +- drivers/net/vmxnet3/vmxnet3_ethdev.c | 14 +- drivers/net/vmxnet3/vmxnet3_ethdev.h | 4 +- drivers/net/vmxnet3/vmxnet3_rxtx.c | 8 +- drivers/net/xsc/xsc_ethdev.c | 4 +- drivers/net/xsc/xsc_rx.c | 2 +- drivers/net/xsc/xsc_rxtx.h | 6 +- drivers/net/xsc/xsc_tx.c | 4 +- drivers/net/xsc/xsc_vfio.c | 18 +- drivers/net/xsc/xsc_vfio_mbox.c | 6 +- drivers/net/zxdh/zxdh_ethdev.c | 18 +- drivers/net/zxdh/zxdh_queue.c | 4 +- drivers/net/zxdh/zxdh_queue.h | 4 +- drivers/raw/cnxk_bphy/cnxk_bphy.c | 2 +- drivers/raw/cnxk_bphy/cnxk_bphy_cgx.c | 2 +- drivers/raw/cnxk_gpio/cnxk_gpio.c | 4 +- drivers/raw/cnxk_rvu_lf/cnxk_rvu_lf.c | 2 +- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 10 +- drivers/raw/gdtc/gdtc_rawdev.c | 6 +- drivers/raw/ifpga/afu_pmd_core.c | 14 +- drivers/raw/ifpga/base/ifpga_defines.h | 2 +- drivers/raw/ifpga/base/ifpga_fme.c | 4 +- drivers/raw/ifpga/base/ifpga_hw.h | 2 +- drivers/raw/ifpga/ifpga_rawdev.c | 10 +- drivers/raw/ntb/ntb.c | 26 +-- drivers/raw/skeleton/skeleton_rawdev.c | 10 +- drivers/raw/skeleton/skeleton_rawdev_test.c | 14 +- drivers/regex/cn9k/cn9k_regexdev.c | 6 +- drivers/regex/mlx5/mlx5_regex_control.c | 6 +- drivers/vdpa/mlx5/mlx5_vdpa_cthread.c | 2 +- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 4 +- examples/bbdev_app/main.c | 18 +- examples/bond/main.c | 12 +- examples/distributor/main.c | 30 +-- examples/dma/dmafwd.c | 8 +- examples/ethtool/ethtool-app/main.c | 6 +- examples/ethtool/lib/rte_ethtool.c | 4 +- .../pipeline_worker_generic.c | 6 +- .../eventdev_pipeline/pipeline_worker_tx.c | 6 +- examples/fips_validation/fips_dev_self_test.c | 10 +- examples/fips_validation/main.c | 14 +- examples/flow_filtering/main.c | 6 +- examples/ip_fragmentation/main.c | 10 +- examples/ip_reassembly/main.c | 18 +- examples/ipsec-secgw/event_helper.c | 14 +- examples/ipsec-secgw/ipsec-secgw.c | 132 +++++------ examples/ipsec-secgw/ipsec-secgw.h | 2 +- examples/ipsec-secgw/ipsec.h | 10 +- examples/ipsec-secgw/ipsec_worker.c | 56 ++--- examples/ipsec-secgw/rt.c | 22 +- examples/ipsec-secgw/sa.c | 30 +-- examples/ipsec-secgw/sad.c | 12 +- examples/ipsec-secgw/sad.h | 2 +- examples/ipsec-secgw/sp4.c | 12 +- examples/ipsec-secgw/sp6.c | 12 +- examples/ipv4_multicast/main.c | 14 +- examples/l2fwd-cat/l2fwd-cat.c | 12 +- examples/l2fwd-crypto/main.c | 38 ++-- examples/l2fwd-event/l2fwd_common.c | 4 +- examples/l2fwd-event/l2fwd_poll.c | 4 +- examples/l2fwd-event/main.c | 4 +- examples/l2fwd-jobstats/main.c | 10 +- examples/l2fwd-keepalive/main.c | 10 +- examples/l2fwd-macsec/main.c | 12 +- examples/l2fwd/main.c | 10 +- examples/l3fwd-graph/main.c | 24 +- examples/l3fwd-power/main.c | 32 +-- examples/l3fwd/l3fwd.h | 2 +- examples/l3fwd/l3fwd_acl.c | 26 +-- examples/l3fwd/l3fwd_em.c | 8 +- examples/l3fwd/l3fwd_event.h | 2 +- examples/l3fwd/l3fwd_fib.c | 4 +- examples/l3fwd/l3fwd_lpm.c | 4 +- examples/l3fwd/main.c | 16 +- examples/link_status_interrupt/main.c | 10 +- .../client_server_mp/mp_client/client.c | 4 +- .../client_server_mp/mp_server/init.c | 14 +- examples/multi_process/simple_mp/main.c | 6 +- examples/multi_process/symmetric_mp/main.c | 6 +- examples/ntb/ntb_fwd.c | 14 +- examples/packet_ordering/main.c | 16 +- examples/pipeline/obj.c | 12 +- examples/ptp_tap_relay_sw/ptp_tap_relay_sw.c | 6 +- examples/ptpclient/ptpclient.c | 6 +- examples/qos_meter/main.c | 14 +- examples/qos_sched/args.c | 4 +- examples/qos_sched/init.c | 8 +- examples/rxtx_callbacks/main.c | 12 +- examples/server_node_efd/efd_node/node.c | 6 +- examples/server_node_efd/efd_server/init.c | 22 +- examples/server_node_efd/efd_server/main.c | 8 +- examples/skeleton/basicfwd.c | 12 +- examples/vhost/main.c | 6 +- examples/vhost_crypto/main.c | 26 +-- examples/vm_power_manager/main.c | 6 +- examples/vmdq/main.c | 6 +- examples/vmdq_dcb/main.c | 6 +- lib/acl/acl.h | 4 +- lib/acl/acl_gen.c | 10 +- lib/acl/rte_acl.c | 14 +- lib/acl/rte_acl.h | 14 +- lib/bbdev/bbdev_trace.h | 4 +- lib/bbdev/rte_bbdev.c | 26 +-- lib/bbdev/rte_bbdev.h | 36 ++- lib/bbdev/rte_bbdev_op.h | 6 +- lib/bbdev/rte_bbdev_pmd.h | 2 +- lib/compressdev/rte_comp.c | 4 +- lib/compressdev/rte_comp.h | 4 +- lib/compressdev/rte_compressdev.c | 35 +-- lib/compressdev/rte_compressdev.h | 35 ++- lib/compressdev/rte_compressdev_internal.h | 2 +- lib/compressdev/rte_compressdev_pmd.c | 10 +- lib/compressdev/rte_compressdev_pmd.h | 12 +- lib/cryptodev/cryptodev_pmd.c | 14 +- lib/cryptodev/cryptodev_pmd.h | 24 +- lib/cryptodev/cryptodev_trace.h | 18 +- lib/cryptodev/cryptodev_trace_points.c | 4 +- lib/cryptodev/rte_crypto.h | 4 +- lib/cryptodev/rte_cryptodev.c | 63 +++--- lib/cryptodev/rte_cryptodev.h | 56 +++-- lib/dispatcher/rte_dispatcher.c | 12 +- lib/distributor/rte_distributor.c | 6 +- lib/distributor/rte_distributor.h | 4 +- lib/distributor/rte_distributor_single.c | 4 +- lib/distributor/rte_distributor_single.h | 4 +- lib/dmadev/rte_dmadev.c | 4 +- lib/eal/common/eal_common_dynmem.c | 174 +++++++-------- lib/eal/common/eal_common_lcore.c | 85 ++++--- lib/eal/common/eal_common_memalloc.c | 38 ++-- lib/eal/common/eal_common_memory.c | 52 ++--- lib/eal/common/eal_common_memzone.c | 38 ++-- lib/eal/common/eal_common_options.c | 12 +- lib/eal/common/eal_common_thread.c | 34 +-- lib/eal/common/eal_hugepages.h | 2 +- lib/eal/common/eal_internal_cfg.h | 2 +- lib/eal/common/eal_memalloc.h | 10 +- lib/eal/common/eal_memcfg.h | 2 +- lib/eal/common/eal_private.h | 12 +- lib/eal/common/eal_thread.h | 6 +- lib/eal/common/malloc_heap.c | 204 +++++++++-------- lib/eal/common/malloc_heap.h | 12 +- lib/eal/common/malloc_mp.c | 10 +- lib/eal/common/malloc_mp.h | 4 +- lib/eal/common/rte_malloc.c | 156 ++++++++----- lib/eal/freebsd/eal.c | 12 +- lib/eal/freebsd/eal_lcore.c | 2 +- lib/eal/freebsd/eal_memalloc.c | 4 +- lib/eal/freebsd/eal_memory.c | 2 +- lib/eal/include/eal_trace_internal.h | 16 +- lib/eal/include/rte_lcore.h | 71 +++++- lib/eal/include/rte_malloc.h | 208 ++++++++++++++++-- lib/eal/include/rte_memory.h | 30 ++- lib/eal/include/rte_memzone.h | 22 +- lib/eal/include/rte_service_component.h | 12 +- lib/eal/linux/eal.c | 16 +- lib/eal/linux/eal_hugepage_info.c | 40 ++-- lib/eal/linux/eal_lcore.c | 2 +- lib/eal/linux/eal_memalloc.c | 40 ++-- lib/eal/linux/eal_memory.c | 78 +++---- lib/eal/windows/eal_hugepages.c | 12 +- lib/eal/windows/eal_lcore.c | 42 ++-- lib/eal/windows/eal_memalloc.c | 40 ++-- lib/eal/windows/eal_memory.c | 10 +- lib/eal/windows/eal_windows.h | 18 +- lib/efd/rte_efd.c | 104 ++++----- lib/efd/rte_efd.h | 38 ++-- lib/ethdev/ethdev_driver.c | 10 +- lib/ethdev/ethdev_driver.h | 10 +- lib/ethdev/ethdev_pci.h | 8 +- lib/ethdev/ethdev_private.c | 2 +- lib/ethdev/ethdev_trace.h | 6 +- lib/ethdev/ethdev_trace_points.c | 4 +- lib/ethdev/ethdev_vdev.h | 2 +- lib/ethdev/rte_ethdev.c | 31 ++- lib/ethdev/rte_ethdev.h | 39 +++- lib/ethdev/rte_ethdev_telemetry.c | 2 +- lib/eventdev/event_timer_adapter_pmd.h | 4 +- lib/eventdev/event_vector_adapter_pmd.h | 4 +- lib/eventdev/eventdev_pmd.h | 10 +- lib/eventdev/eventdev_pmd_pci.h | 4 +- lib/eventdev/eventdev_pmd_vdev.h | 12 +- lib/eventdev/eventdev_trace.h | 14 +- lib/eventdev/eventdev_trace_points.c | 4 +- lib/eventdev/rte_event_crypto_adapter.c | 30 +-- lib/eventdev/rte_event_dma_adapter.c | 38 ++-- lib/eventdev/rte_event_eth_rx_adapter.c | 68 +++--- lib/eventdev/rte_event_eth_tx_adapter.c | 30 +-- lib/eventdev/rte_event_ring.c | 6 +- lib/eventdev/rte_event_ring.h | 8 +- lib/eventdev/rte_event_timer_adapter.c | 16 +- lib/eventdev/rte_event_timer_adapter.h | 11 +- lib/eventdev/rte_event_vector_adapter.c | 12 +- lib/eventdev/rte_event_vector_adapter.h | 11 +- lib/eventdev/rte_eventdev.c | 33 +-- lib/eventdev/rte_eventdev.h | 25 ++- lib/fib/dir24_8.c | 14 +- lib/fib/dir24_8.h | 2 +- lib/fib/rte_fib.c | 14 +- lib/fib/rte_fib.h | 6 +- lib/fib/rte_fib6.c | 14 +- lib/fib/rte_fib6.h | 6 +- lib/fib/trie.c | 14 +- lib/fib/trie.h | 2 +- lib/gpudev/gpudev.c | 2 +- lib/graph/graph.c | 14 +- lib/graph/graph_debug.c | 2 +- lib/graph/graph_feature_arc.c | 4 +- lib/graph/graph_pcap.c | 2 +- lib/graph/graph_populate.c | 4 +- lib/graph/graph_private.h | 4 +- lib/graph/graph_stats.c | 18 +- lib/graph/rte_graph.h | 21 +- lib/graph/rte_graph_model_mcore_dispatch.c | 4 +- lib/graph/rte_graph_worker_common.h | 10 +- lib/gro/gro_tcp4.c | 14 +- lib/gro/gro_tcp4.h | 6 +- lib/gro/gro_tcp6.c | 14 +- lib/gro/gro_tcp6.h | 6 +- lib/gro/gro_udp4.c | 14 +- lib/gro/gro_udp4.h | 6 +- lib/gro/gro_vxlan_tcp4.c | 14 +- lib/gro/gro_vxlan_tcp4.h | 6 +- lib/gro/gro_vxlan_udp4.c | 14 +- lib/gro/gro_vxlan_udp4.h | 6 +- lib/gro/rte_gro.c | 8 +- lib/gro/rte_gro.h | 17 +- lib/hash/rte_cuckoo_hash.c | 28 +-- lib/hash/rte_fbk_hash.c | 2 +- lib/hash/rte_fbk_hash.h | 10 +- lib/hash/rte_hash.h | 10 +- lib/ip_frag/rte_ip_frag.h | 8 +- lib/ip_frag/rte_ip_frag_common.c | 12 +- lib/ipsec/ipsec_sad.c | 6 +- lib/ipsec/rte_ipsec_sad.h | 11 +- lib/latencystats/rte_latencystats.c | 2 +- lib/lpm/rte_lpm.c | 16 +- lib/lpm/rte_lpm.h | 6 +- lib/lpm/rte_lpm6.c | 10 +- lib/lpm/rte_lpm6.h | 6 +- lib/mbuf/rte_mbuf.c | 12 +- lib/mbuf/rte_mbuf.h | 18 +- lib/mbuf/rte_mbuf_dyn.c | 2 +- lib/mbuf/rte_mbuf_pool_ops.c | 4 +- lib/member/rte_member.c | 8 +- lib/member/rte_member.h | 20 +- lib/member/rte_member_heap.h | 18 +- lib/member/rte_member_ht.c | 4 +- lib/member/rte_member_sketch.c | 24 +- lib/member/rte_member_vbf.c | 4 +- lib/mempool/mempool_trace.h | 4 +- lib/mempool/rte_mempool.c | 60 ++--- lib/mempool/rte_mempool.h | 38 ++-- lib/metrics/rte_metrics.c | 4 +- lib/metrics/rte_metrics.h | 4 +- lib/metrics/rte_metrics_telemetry.c | 4 +- lib/mldev/rte_mldev.c | 24 +- lib/mldev/rte_mldev.h | 33 +-- lib/mldev/rte_mldev_core.h | 10 +- lib/mldev/rte_mldev_pmd.c | 10 +- lib/mldev/rte_mldev_pmd.h | 10 +- lib/node/ip4_lookup.c | 4 +- lib/node/ip4_lookup_fib.c | 10 +- lib/node/ip6_lookup.c | 4 +- lib/node/ip6_lookup_fib.c | 10 +- lib/node/kernel_rx.c | 4 +- lib/node/node_mbuf_dynfield.c | 2 +- lib/node/udp4_input.c | 8 +- lib/pdcp/rte_pdcp.c | 4 +- lib/pdump/rte_pdump.c | 2 +- lib/rawdev/rte_rawdev.c | 25 ++- lib/rawdev/rte_rawdev.h | 38 +++- lib/rawdev/rte_rawdev_pmd.h | 8 +- lib/rcu/rte_rcu_qsbr.c | 2 +- lib/regexdev/rte_regexdev.c | 2 +- lib/reorder/rte_reorder.c | 4 +- lib/reorder/rte_reorder.h | 4 +- lib/rib/rte_rib.c | 8 +- lib/rib/rte_rib.h | 6 +- lib/rib/rte_rib6.c | 8 +- lib/rib/rte_rib6.h | 6 +- lib/ring/rte_ring.c | 12 +- lib/ring/rte_ring.h | 8 +- lib/ring/rte_ring_elem.h | 8 +- lib/stack/rte_stack.c | 4 +- lib/stack/rte_stack.h | 8 +- lib/table/rte_swx_table_em.c | 2 +- lib/table/rte_swx_table_learner.c | 2 +- lib/table/rte_swx_table_selector.c | 2 +-
Quoted 9 lines
lib/table/rte_swx_table_wm.c | 4 +- lib/timer/rte_timer.c | 2 +- lib/vhost/iotlb.c | 2 +- lib/vhost/rte_vhost_crypto.h | 4 +- lib/vhost/vhost.c | 4 +- lib/vhost/vhost_crypto.c | 16 +- lib/vhost/vhost_user.c | 22 +- 905 files changed, 6113 insertions(+), 5439 deletions(-)
Maybe a single coccinelle script would help here? Rather than trying to look at so many patches.
Quoted 58 lines · Stephen Hemminger
Quoted 55 lines · On Tue, 3 Nov 2026 22:49:18 +0800 Chengwen Feng <[email protected]>…
From: Chengwen Feng <[email protected]>
The DPDK tree conflates CPU sockets with NUMA memory nodes: public APIs, structure fields and macros are named after "socket" although they actually identify a NUMA node (e.g.
rte_socket_id(), thesocket_idfield ofrte_memzone,SOCKET_ID_ANY). This naming misleads application developers and pollutes vendor code that targets NUMA topologies.This series renames the terminology tree-wide:
Foundation (EAL):
- New NUMA-aware functions are added:rte_numa_id(),rte_numa_count(),rte_numa_id_by_idx(),rte_lcore_to_numa_id(),rte_malloc_heap_numa_is_external(), and friends.
-SOCKET_ID_ANYbecomesRTE_NUMA_ID_ANY;SOCKET_ID_ANYis kept as a deprecated macro alias.
- Thesocket_idfields of the public structures are renamed tonuma_id, keepingsocket_idas a deprecated union alias (so field offsets, and therefore ABI layout, are unchanged). Affected structures includerte_memzone,rte_memseg,rte_memseg_list,rte_mempool,rte_hash_parameters,rte_graph,rte_service_spec,rte_acl_param,rte_gro_param,rte_ipsec_sad_conf, rte_member_*, rte_bbdev_*,rte_cryptodev_config,rte_compressdev_config, rte_event_*,rte_ml_dev_config, rte_rawdev* -- seedoc/guides/rel_notes/deprecation.rstfor the full list.Libraries:
- Library-specific APIs follow the same pattern: ethdev, cryptodev, compressdev, rawdev, mldev, bbdev and eventdev gain NUMA-named device APIs (e.g.rte_event_dev_numa_id()) with the socket variants kept as deprecated aliases.Drivers, applications, examples and documentation:
- One commit per unit; in-tree users are updated in the same commit as the unit they belong to, moving from libs to drivers and then to app/examples.
- The programming guides and API docs are updated to the new names.Compatibility notes:
- The deprecated aliases preserve source compatibility for external applications for one release; they will be removed in a future release, as recorded indeprecation.rst.
- No ABI break: the deprecated union alias keeps the layout identical.
- Device arguments and command-line options that literally use the "socket" name (e.g. --socket-mem, --socket-limit, the socket_id= parameter of the bbdev/compressdev vdevs) are intentionally NOT renamed to avoid breaking user scripts; their documentation still describes the existing parameter names. Feedback on whether/how to migrate these user-facing names is welcome.This series is based on v26.11-rc2 and developped by AI.
...
Quoted 9 lines
Quoted 6 lines
lib/vhost/rte_vhost_crypto.h | 4 +- lib/vhost/vhost.c | 4 +- lib/vhost/vhost_crypto.c | 16 +- lib/vhost/vhost_user.c | 22 +- 905 files changed, 6113 insertions(+), 5439 deletions(-)Maybe a single coccinelle script would help here? Rather than trying to look at so many patches.
A coccinelle script is a helpful idea. I will try to prepare one.
Quoted 70 lines · fengchengwen
Quoted 58 lines · Stephen Hemminger
Quoted 55 lines · On Tue, 3 Nov 2026 22:49:18 +0800 Chengwen Feng <[email protected]>…
From: Chengwen Feng <[email protected]>
The DPDK tree conflates CPU sockets with NUMA memory nodes: public APIs, structure fields and macros are named after "socket" although they actually identify a NUMA node (e.g.
rte_socket_id(), thesocket_idfield ofrte_memzone,SOCKET_ID_ANY). This naming misleads application developers and pollutes vendor code that targets NUMA topologies.This series renames the terminology tree-wide:
Foundation (EAL):
- New NUMA-aware functions are added:rte_numa_id(),rte_numa_count(),rte_numa_id_by_idx(),rte_lcore_to_numa_id(),rte_malloc_heap_numa_is_external(), and friends.
-SOCKET_ID_ANYbecomesRTE_NUMA_ID_ANY;SOCKET_ID_ANYis kept as a deprecated macro alias.
- Thesocket_idfields of the public structures are renamed tonuma_id, keepingsocket_idas a deprecated union alias (so field offsets, and therefore ABI layout, are unchanged). Affected structures includerte_memzone,rte_memseg,rte_memseg_list,rte_mempool,rte_hash_parameters,rte_graph,rte_service_spec,rte_acl_param,rte_gro_param,rte_ipsec_sad_conf, rte_member_*, rte_bbdev_*,rte_cryptodev_config,rte_compressdev_config, rte_event_*,rte_ml_dev_config, rte_rawdev* -- seedoc/guides/rel_notes/deprecation.rstfor the full list.Libraries:
- Library-specific APIs follow the same pattern: ethdev, cryptodev, compressdev, rawdev, mldev, bbdev and eventdev gain NUMA-named device APIs (e.g.rte_event_dev_numa_id()) with the socket variants kept as deprecated aliases.Drivers, applications, examples and documentation:
- One commit per unit; in-tree users are updated in the same commit as the unit they belong to, moving from libs to drivers and then to app/examples.
- The programming guides and API docs are updated to the new names.Compatibility notes:
- The deprecated aliases preserve source compatibility for external applications for one release; they will be removed in a future release, as recorded indeprecation.rst.
- No ABI break: the deprecated union alias keeps the layout identical.
- Device arguments and command-line options that literally use the "socket" name (e.g. --socket-mem, --socket-limit, the socket_id= parameter of the bbdev/compressdev vdevs) are intentionally NOT renamed to avoid breaking user scripts; their documentation still describes the existing parameter names. Feedback on whether/how to migrate these user-facing names is welcome.This series is based on v26.11-rc2 and developped by AI.
...
Quoted 7 lines
Quoted 6 lines
lib/vhost/rte_vhost_crypto.h | 4 +- lib/vhost/vhost.c | 4 +- lib/vhost/vhost_crypto.c | 16 +- lib/vhost/vhost_user.c | 22 +- 905 files changed, 6113 insertions(+), 5439 deletions(-)
Quoted 4 lines
Quoted 2 lines
Maybe a single coccinelle script would help here? Rather than trying to look at so many patches.
A coccinelle script is a helpful idea. I will try to prepare one.
Well, maybe.
But never a 200+ patches series again.
Putting aside the way it was submitted, it seems this change is only cosmetic, and it was not announced in a *previous* deprecation notice.
Why do we need this change?
Why now, in this release?
Signature · 1 line
David Marchand
04/11/2026 10:29, David Marchand:
Quoted 10 lines · fengchengwen
Quoted 8 lines · Stephen Hemminger
Quoted 5 lines
Quoted 2 lines
From: Chengwen Feng <[email protected]>
905 files changed, 6113 insertions(+), 5439 deletions(-)Maybe a single coccinelle script would help here? Rather than trying to look at so many patches.
A coccinelle script is a helpful idea. I will try to prepare one.
Quoted 8 lines
Well, maybe.
But never a 200+ patches series again.Putting aside the way it was submitted, it seems this change is only cosmetic, and it was not announced in a *previous* deprecation notice.
Why do we need this change?
Why now, in this release?
I assume it is not for 26.11.
Chengwen wanted to fix the namespace of SOCKET_ID_ANY, adding RTE_. And I told him that we should avoid changing this API 2 times when we will want to fix the terminology
around CPU socket and NUMA memory domain.
I think we should do both at once.
That's why we see this big change.
BUT
It would be more efficient for such a change to discuss it first. Then once we agree on the names and usage,
we should make it in a way it can be reproduced, maintained and ease future backport of patches containing the new terminology. A coccinelle script looks appropriate.
And of course, the patch series should not have so many patches, it does not make sense.
A mechanical change should come in one patch.
If the series deserves several different mechanical changes, few patches should be sent for them, not hundreds.
Sorry for not giving these advices earlier.
Quoted 33 lines · Thomas Monjalon
04/11/2026 10:29, David Marchand:
Quoted 11 lines · fengchengwen
Quoted 5 lines · Stephen Hemminger
Quoted 2 lines
From: Chengwen Feng <[email protected]>
905 files changed, 6113 insertions(+), 5439 deletions(-)Maybe a single coccinelle script would help here? Rather than trying to look at so many patches.
A coccinelle script is a helpful idea. I will try to prepare one.
Quoted 9 lines
Well, maybe.
But never a 200+ patches series again.Putting aside the way it was submitted, it seems this change is only cosmetic, and it was not announced in a *previous* deprecation notice.
Why do we need this change?
Why now, in this release?I assume it is not for 26.11.
Chengwen wanted to fix the namespace ofSOCKET_ID_ANY, addingRTE_. And I told him that we should avoid changing this API 2 times when we will want to fix the terminology
around CPU socket and NUMA memory domain.
I think we should do both at once.
That's why we see this big change.BUT
Quoted 11 lines
It would be more efficient for such a change to discuss it first. Then once we agree on the names and usage,
we should make it in a way it can be reproduced, maintained and ease future backport of patches containing the new terminology. A coccinelle script looks appropriate.
And of course, the patch series should not have so many patches, it does not make sense.
A mechanical change should come in one patch.
If the series deserves several different mechanical changes, few patches should be sent for them, not hundreds.
Thanks Thomas for explaining the background of this change.
This series was AI-generated following the one commit per moduleconvention
to support per-subsystem review, with the expectationthat these commits
would be squashed before merge.
I understand this split imposed heavy CI load now, and I will adjustthe patch organisation in the next version.
Moving forward, I will prepare a coccinelle script for the mechanicalconversion and follow the deprecation process before formal submission.
v2 cover use NUMA node terminology
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
This is a new version of the "use NUMA node terminology" series, which converted the whole tree to the NUMA node terminology (about 227 patches).
Following the review feedback, this version takes a staged approach. This series only contains the groundwork, there is no tree-wide replacement patch:
1/2 doc: deprecate socket terminology in favor of NUMA node 2/2 cocci: add script for NUMA node terminology renames
The deprecation notice announces the socket_id to numa_node field renames of the public structures and the deprecation of the socket-named functions, the rte_malloc_socket_stats structure and the SOCKET_ID_ANY macro. The old names are kept as deprecated aliases for one release, giving applications a full release window to migrate.
Once the notice has completed a release cycle, the coccinelle script will be used to generate a single tree-wide conversion patch, instead of the previous large series of small patches which overloaded the CI.
The script covers the mechanical source renames: API function call sites, macros, the rte_malloc_socket_stats structure, and socket_id member accesses. Coccinelle cannot express every needed change: designated initializers, union field declarations, documentation and string literals require manual adjustments; it also silently skips functions whose signature carries attribute macros it does not know (e.g. __rte_unused). The same applies to the fields named "socket" in rte_graph and rte_bbdev_queue_conf, where a generic rename rule would over-match.
The replacement names follow the libnuma node semantics while keeping the existing DPDK memory allocation model: bare node getters (rte_numa_node(), rte_numa_node_count(), rte_numa_node_by_idx(), rte_cpu_numa_node(), rte_lcore_to_numa_node()), an rte_malloc_onnode() allocation family shaped after libnuma's numa_alloc_onnode(), and rte_malloc_heap_get_numa_node().
Series-changes: 2
- only the deprecation notice and the coccinelle script, the tree-wide conversion patch will be submitted after the notice completes a release cycle
- keep old names as deprecated aliases for one release window
- cover the full rename set in the script (malloc family, rte_cpu_socket_id, rte_cryptodev_socket_id, rte_ml_dev_socket_id, rte_malloc_socket_stats)
- use a "Terminology change" tag in the deprecation notice as the rename spans several libraries
- name the replacements after libnuma semantics (rte_numa_node(), rte_malloc_onnode(), ...)
Chengwen Feng (2):
doc: deprecate socket terminology in favor of NUMA node
cocci: add script for NUMA node terminology renames
devtools/cocci/socket_to_numa_node.cocci | 152 +++++++++++++++++++++++ doc/guides/rel_notes/deprecation.rst | 35 ++++++ 2 files changed, 187 insertions(+) create mode 100644 devtools/cocci/socket_to_numa_node.cocci
Signature · 1 line
2.55.0
PATCH v2 1/2 doc: deprecate socket terminology in favor of NUMA node
From: Chengwen Feng <[email protected]>
Announce the rename of the socket_id fields of the public structures to numa_node, and the deprecation of the socket-named functions and macros across several libraries, keeping them as deprecated aliases for one release.
This notice starts the deprecation process of the NUMA node terminology migration discussed on the mailing list. The mechanical conversion will be submitted as a single patch, produced with the coccinelle script added by the next patch, once this notice completes a release cycle.
--- doc/guides/rel_notes/deprecation.rst | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
doc/guides/rel_notes/deprecation.rst +35 -0
@@ -16,6 +16,41 @@ Other API and ABI deprecation notices are to be posted below. Deprecation Notices ------------------- +* Terminology change: The public structures use ``socket_id`` to refer to a NUMA node, + which conflates CPU sockets with NUMA memory nodes. + The field is renamed to ``numa_node``, keeping ``socket_id`` + as a deprecated union alias. + Affected structures include: ``rte_acl_param``, ``rte_bbdev_data``, + ``rte_bbdev_info``, ``rte_bbdev_queue_conf``, ``rte_compressdev_config``, + ``rte_cryptodev_config``, ``rte_event_timer_adapter_conf``, + ``rte_event_vector_adapter_conf``, ``rte_fbk_hash_params``, + ``rte_graph``, ``rte_graph_cluster_stats_param``, ``rte_graph_param``, + ``rte_gro_param``, ``rte_hash_parameters``, ``rte_ipsec_sad_conf``, + ``rte_member_parameters``, ``rte_member_setsum``, ``rte_memseg``, + ``rte_memseg_list``, ``rte_memzone``, ``rte_ml_dev_config``, + ``rte_mempool``, ``rte_rawdev``, ``rte_rawdev_info`` and + ``rte_service_spec``. + The fields of ``rte_graph`` and ``rte_bbdev_queue_conf`` are named + ``socket`` rather than ``socket_id``; their deprecated aliases keep + that name. + Applications should switch to ``numa_node``. + +* Terminology change: The legacy socket-named functions + ``rte_socket_id()``, ``rte_socket_count()``, ``rte_socket_id_by_idx()``, + ``rte_cpu_socket_id()``, ``rte_lcore_to_socket_id()``, + the ``rte_malloc_socket()`` family, + ``rte_malloc_heap_get_socket()``, ``rte_malloc_get_socket_stats()``, + ``rte_malloc_heap_socket_is_external()``, ``rte_eth_dev_socket_id()``, + ``rte_cryptodev_socket_id()``, ``rte_compressdev_socket_id()``, + ``rte_event_dev_socket_id()``, ``rte_rawdev_socket_id()`` and + ``rte_ml_dev_socket_id()`` + are deprecated aliases of their NUMA-named replacements, + and will be removed in a future release. + The ``rte_malloc_socket_stats`` structure is renamed to + ``rte_malloc_numa_stats``, keeping the old name as a deprecated + typedef alias. + The ``SOCKET_ID_ANY`` macro is deprecated; use ``RTE_NUMA_NODE_ANY``. + * kvargs: The function ``rte_kvargs_process`` will get a new parameter for returning key match count. It will ease handling of no-match case.
Signature · 1 line
2.55.0
PATCH v2 2/2 cocci: add script for NUMA node terminology renames
In reply to Chengwen FengFrom: Chengwen Feng <[email protected]>
Add a coccinelle script that codifies the socket to NUMA node rename rules of the migration announced in the deprecation notice.
The script is not applied now. Once the deprecation notice has completed a release cycle, it will be used to generate a single tree-wide conversion patch.
Coccinelle cannot express every needed change: designated initializers, union field declarations, documentation and string literals require manual adjustments. It also silently skips functions whose signature carries unknown attribute macros (e.g. __rte_unused).
--- devtools/cocci/socket_to_numa_node.cocci | 152 +++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 devtools/cocci/socket_to_numa_node.cocci
devtools/cocci/socket_to_numa_node.cocci new file +152 -0
@@ -0,0 +1,152 @@ +// Convert the socket terminology to NUMA node terminology. +// +// This script codifies the rename rules of the socket to NUMA node +// terminology migration announced in +// doc/guides/rel_notes/deprecation.rst. The tree is not converted +// yet: once the deprecation notice has completed a release cycle, +// this script is used to generate a single tree-wide conversion +// patch. +// +// Coccinelle cannot express every needed change: designated +// initializers, union field declarations, documentation and string +// literals require manual adjustments. +// +// Coccinelle also silently skips functions whose signature carries +// unknown attribute macros (e.g. __rte_unused); call sites inside +// such functions need manual conversion as well. +// +// The socket_id names are kept as deprecated aliases, applications +// get one release to switch (see deprecation.rst). + +// Union member of the public structures. +@@ +expression E; +@@ +-E.socket_id ++E.numa_node + +@@ +expression E; +@@ +-E->socket_id ++E->numa_node + +// EAL APIs. +@@ +@@ +-SOCKET_ID_ANY ++RTE_NUMA_NODE_ANY + +@@ +@@ +-rte_socket_id() ++rte_numa_node() + +@@ +@@ +-rte_socket_count() ++rte_numa_node_count() + +@@ +expression E; +@@ +-rte_socket_id_by_idx(E) ++rte_numa_node_by_idx(E) + +@@ +expression E; +@@ +-rte_cpu_socket_id(E) ++rte_cpu_numa_node(E) + +@@ +expression E; +@@ +-rte_lcore_to_socket_id(E) ++rte_lcore_to_numa_node(E) + +// Legacy malloc APIs. +@@ +expression E1, E2, E3, E4; +@@ +-rte_malloc_socket(E1, E2, E3, E4) ++rte_malloc_onnode(E1, E2, E3, E4) + +@@ +expression E1, E2, E3, E4; +@@ +-rte_zmalloc_socket(E1, E2, E3, E4) ++rte_zmalloc_onnode(E1, E2, E3, E4) + +@@ +expression E1, E2, E3, E4, E5; +@@ +-rte_calloc_socket(E1, E2, E3, E4, E5) ++rte_calloc_onnode(E1, E2, E3, E4, E5) + +@@ +expression E1, E2, E3, E4; +@@ +-rte_realloc_socket(E1, E2, E3, E4) ++rte_realloc_onnode(E1, E2, E3, E4) + +@@ +expression E; +@@ +-rte_malloc_heap_get_socket(E) ++rte_malloc_heap_get_numa_node(E) + +@@ +expression E1, E2; +@@ +-rte_malloc_get_socket_stats(E1, E2) ++rte_malloc_get_numa_stats(E1, E2) + +@@ +expression E; +@@ +-rte_malloc_heap_socket_is_external(E) ++rte_malloc_heap_numa_is_external(E) + +@@ +@@ +-struct rte_malloc_socket_stats ++struct rte_malloc_numa_stats + +// Device APIs (the same pattern applies to every library that +// exposed a device socket API). +@@ +expression E; +@@ +-rte_eth_dev_socket_id(E) ++rte_eth_dev_numa_node(E) + +@@ +expression E; +@@ +-rte_cryptodev_socket_id(E) ++rte_cryptodev_numa_node(E) + +@@ +expression E; +@@ +-rte_event_dev_socket_id(E) ++rte_event_dev_numa_node(E) + +@@ +expression E; +@@ +-rte_compressdev_socket_id(E) ++rte_compressdev_numa_node(E) + +@@ +expression E; +@@ +-rte_rawdev_socket_id(E) ++rte_rawdev_numa_node(E) + +@@ +expression E; +@@ +-rte_ml_dev_socket_id(E) ++rte_ml_dev_numa_node(E)
Signature · 1 line
2.55.0
Re: [PATCH v2 0/2] use NUMA node terminology
In reply to Chengwen FengQuoted 56 lines · Chengwen Feng
From: Chengwen Feng <[email protected]>
This is a new version of the "use NUMA node terminology" series, which converted the whole tree to the NUMA node terminology (about 227 patches).
Following the review feedback, this version takes a staged approach. This series only contains the groundwork, there is no tree-wide replacement patch:
1/2 doc: deprecate socket terminology in favor of NUMA node 2/2 cocci: add script for NUMA node terminology renames
The deprecation notice announces the
socket_idtonuma_nodefield renames of the public structures and the deprecation of the socket-named functions, therte_malloc_socket_statsstructure and theSOCKET_ID_ANYmacro. The old names are kept as deprecated aliases for one release, giving applications a full release window to migrate.Once the notice has completed a release cycle, the coccinelle script will be used to generate a single tree-wide conversion patch, instead of the previous large series of small patches which overloaded the CI.
The script covers the mechanical source renames: API function call sites, macros, the
rte_malloc_socket_statsstructure, andsocket_idmember accesses. Coccinelle cannot express every needed change: designated initializers, union field declarations, documentation and string literals require manual adjustments; it also silently skips functions whose signature carries attribute macros it does not know (e.g.__rte_unused). The same applies to the fields named "socket" inrte_graphandrte_bbdev_queue_conf, where a generic rename rule would over-match.The replacement names follow the libnuma node semantics while keeping the existing DPDK memory allocation model: bare node getters (
rte_numa_node(),rte_numa_node_count(),rte_numa_node_by_idx(),rte_cpu_numa_node(),rte_lcore_to_numa_node()), anrte_malloc_onnode()allocation family shaped after libnuma'snuma_alloc_onnode(), andrte_malloc_heap_get_numa_node().Series-changes: 2
- only the deprecation notice and the coccinelle script, the tree-wide conversion patch will be submitted after the notice completes a release cycle
- keep old names as deprecated aliases for one release window
- cover the full rename set in the script (malloc family,rte_cpu_socket_id,rte_cryptodev_socket_id,rte_ml_dev_socket_id,rte_malloc_socket_stats)
- use a "Terminology change" tag in the deprecation notice as the rename spans several libraries
- name the replacements after libnuma semantics (rte_numa_node(),rte_malloc_onnode(), ...)
Quoted 4 lines
Chengwen Feng (2):
doc: deprecate socket terminology in favor of NUMA node
cocci: add script for NUMA node terminology renames
I worry a bit about the churn and compatibilty issues such a widespread rename sould cause. These are some very widely used, common APIs that have been around since the earliest days of DPDK. At minimum I think we need to keep the old functions around for well longer than just one release window after deprecation - a multi-year deprecation and removal plan would be better to avoid suddenly breaking every DPDK end-application out there.
/Bruce
Re: [PATCH v2 0/2] use NUMA node terminology
Quoted 61 lines · Bruce Richardson
Quoted 56 lines · Chengwen Feng
From: Chengwen Feng <[email protected]>
This is a new version of the "use NUMA node terminology" series, which converted the whole tree to the NUMA node terminology (about 227 patches).
Following the review feedback, this version takes a staged approach. This series only contains the groundwork, there is no tree-wide replacement patch:
1/2 doc: deprecate socket terminology in favor of NUMA node 2/2 cocci: add script for NUMA node terminology renames
The deprecation notice announces the
socket_idtonuma_nodefield renames of the public structures and the deprecation of the socket-named functions, therte_malloc_socket_statsstructure and theSOCKET_ID_ANYmacro. The old names are kept as deprecated aliases for one release, giving applications a full release window to migrate.Once the notice has completed a release cycle, the coccinelle script will be used to generate a single tree-wide conversion patch, instead of the previous large series of small patches which overloaded the CI.
The script covers the mechanical source renames: API function call sites, macros, the
rte_malloc_socket_statsstructure, andsocket_idmember accesses. Coccinelle cannot express every needed change: designated initializers, union field declarations, documentation and string literals require manual adjustments; it also silently skips functions whose signature carries attribute macros it does not know (e.g.__rte_unused). The same applies to the fields named "socket" inrte_graphandrte_bbdev_queue_conf, where a generic rename rule would over-match.The replacement names follow the libnuma node semantics while keeping the existing DPDK memory allocation model: bare node getters (
rte_numa_node(),rte_numa_node_count(),rte_numa_node_by_idx(),rte_cpu_numa_node(),rte_lcore_to_numa_node()), anrte_malloc_onnode()allocation family shaped after libnuma'snuma_alloc_onnode(), andrte_malloc_heap_get_numa_node().Series-changes: 2
- only the deprecation notice and the coccinelle script, the tree-wide conversion patch will be submitted after the notice completes a release cycle
- keep old names as deprecated aliases for one release window
- cover the full rename set in the script (malloc family,rte_cpu_socket_id,rte_cryptodev_socket_id,rte_ml_dev_socket_id,rte_malloc_socket_stats)
- use a "Terminology change" tag in the deprecation notice as the rename spans several libraries
- name the replacements after libnuma semantics (rte_numa_node(),rte_malloc_onnode(), ...)Quoted 4 lines
Chengwen Feng (2):
doc: deprecate socket terminology in favor of NUMA node
cocci: add script for NUMA node terminology renames
Quoted 7 lines
I worry a bit about the churn and compatibilty issues such a widespread rename sould cause. These are some very widely used, common APIs that have been around since the earliest days of DPDK. At minimum I think we need to keep the old functions around for well longer than just one release window after deprecation - a multi-year deprecation and removal plan would be better to avoid suddenly breaking every DPDK end-application out there.
Might an alternative solution be to just document that DPDK historically uses "socket" as a synonym for numa node, even though such a term is inaccurate. Just accept the less-than-optimal naming as a historical oddity?
/Bruce
Re: [PATCH v2 0/2] use NUMA node terminology
Quoted 70 lines · Bruce Richardson
Quoted 61 lines · Bruce Richardson
Quoted 56 lines · Chengwen Feng
From: Chengwen Feng <[email protected]>
This is a new version of the "use NUMA node terminology" series, which converted the whole tree to the NUMA node terminology (about 227 patches).
Following the review feedback, this version takes a staged approach. This series only contains the groundwork, there is no tree-wide replacement patch:
1/2 doc: deprecate socket terminology in favor of NUMA node 2/2 cocci: add script for NUMA node terminology renames
The deprecation notice announces the
socket_idtonuma_nodefield renames of the public structures and the deprecation of the socket-named functions, therte_malloc_socket_statsstructure and theSOCKET_ID_ANYmacro. The old names are kept as deprecated aliases for one release, giving applications a full release window to migrate.Once the notice has completed a release cycle, the coccinelle script will be used to generate a single tree-wide conversion patch, instead of the previous large series of small patches which overloaded the CI.
The script covers the mechanical source renames: API function call sites, macros, the
rte_malloc_socket_statsstructure, andsocket_idmember accesses. Coccinelle cannot express every needed change: designated initializers, union field declarations, documentation and string literals require manual adjustments; it also silently skips functions whose signature carries attribute macros it does not know (e.g.__rte_unused). The same applies to the fields named "socket" inrte_graphandrte_bbdev_queue_conf, where a generic rename rule would over-match.The replacement names follow the libnuma node semantics while keeping the existing DPDK memory allocation model: bare node getters (
rte_numa_node(),rte_numa_node_count(),rte_numa_node_by_idx(),rte_cpu_numa_node(),rte_lcore_to_numa_node()), anrte_malloc_onnode()allocation family shaped after libnuma'snuma_alloc_onnode(), andrte_malloc_heap_get_numa_node().Series-changes: 2
- only the deprecation notice and the coccinelle script, the tree-wide conversion patch will be submitted after the notice completes a release cycle
- keep old names as deprecated aliases for one release window
- cover the full rename set in the script (malloc family,rte_cpu_socket_id,rte_cryptodev_socket_id,rte_ml_dev_socket_id,rte_malloc_socket_stats)
- use a "Terminology change" tag in the deprecation notice as the rename spans several libraries
- name the replacements after libnuma semantics (rte_numa_node(),rte_malloc_onnode(), ...)Quoted 4 lines
Chengwen Feng (2):
doc: deprecate socket terminology in favor of NUMA node
cocci: add script for NUMA node terminology renamesQuoted 7 lines
I worry a bit about the churn and compatibilty issues such a widespread rename sould cause. These are some very widely used, common APIs that have been around since the earliest days of DPDK. At minimum I think we need to keep the old functions around for well longer than just one release window after deprecation - a multi-year deprecation and removal plan would be better to avoid suddenly breaking every DPDK end-application out there.
Quoted 4 lines
Might an alternative solution be to just document that DPDK historically uses "socket" as a synonym for numa node, even though such a term is inaccurate. Just accept the less-than-optimal naming as a historical oddity?
I share the concern about compatibility impact given how ubiquitous these APIs are. It is important to separate two steps:
1) Updating DPDK internal code to use the new NUMA naming via the cocci script
2) Removing the deprecated socket-named aliases for applications
The first step only cleans the in-tree codebase. The old aliases can stay present for applications for a multi-year period, and their removal can be scheduled independently, not immediately after one release cycle.
Keeping the existing names and only updating documentation is a pragmatic option, but it does not resolve the recurring confusion between CPU socket and NUMA node. This mismatch still misleads new developers and triggers topology-related bugs.
I am willing to follow community consensus on the deprecation timeline and the overall approach.
Quoted 3 lines
/Bruce
Re: [PATCH v2 0/2] use NUMA node terminology
Quoted 85 lines · fengchengwen
Quoted 70 lines · Bruce Richardson
Quoted 61 lines · Bruce Richardson
Quoted 56 lines · Chengwen Feng
From: Chengwen Feng <[email protected]>
This is a new version of the "use NUMA node terminology" series, which converted the whole tree to the NUMA node terminology (about 227 patches).
Following the review feedback, this version takes a staged approach. This series only contains the groundwork, there is no tree-wide replacement patch:
1/2 doc: deprecate socket terminology in favor of NUMA node 2/2 cocci: add script for NUMA node terminology renames
The deprecation notice announces the
socket_idtonuma_nodefield renames of the public structures and the deprecation of the socket-named functions, therte_malloc_socket_statsstructure and theSOCKET_ID_ANYmacro. The old names are kept as deprecated aliases for one release, giving applications a full release window to migrate.Once the notice has completed a release cycle, the coccinelle script will be used to generate a single tree-wide conversion patch, instead of the previous large series of small patches which overloaded the CI.
The script covers the mechanical source renames: API function call sites, macros, the
rte_malloc_socket_statsstructure, andsocket_idmember accesses. Coccinelle cannot express every needed change: designated initializers, union field declarations, documentation and string literals require manual adjustments; it also silently skips functions whose signature carries attribute macros it does not know (e.g.__rte_unused). The same applies to the fields named "socket" inrte_graphandrte_bbdev_queue_conf, where a generic rename rule would over-match.The replacement names follow the libnuma node semantics while keeping the existing DPDK memory allocation model: bare node getters (
rte_numa_node(),rte_numa_node_count(),rte_numa_node_by_idx(),rte_cpu_numa_node(),rte_lcore_to_numa_node()), anrte_malloc_onnode()allocation family shaped after libnuma'snuma_alloc_onnode(), andrte_malloc_heap_get_numa_node().Series-changes: 2
- only the deprecation notice and the coccinelle script, the tree-wide conversion patch will be submitted after the notice completes a release cycle
- keep old names as deprecated aliases for one release window
- cover the full rename set in the script (malloc family,rte_cpu_socket_id,rte_cryptodev_socket_id,rte_ml_dev_socket_id,rte_malloc_socket_stats)
- use a "Terminology change" tag in the deprecation notice as the rename spans several libraries
- name the replacements after libnuma semantics (rte_numa_node(),rte_malloc_onnode(), ...)Quoted 4 lines
Chengwen Feng (2):
doc: deprecate socket terminology in favor of NUMA node
cocci: add script for NUMA node terminology renamesQuoted 7 lines
I worry a bit about the churn and compatibilty issues such a widespread rename sould cause. These are some very widely used, common APIs that have been around since the earliest days of DPDK. At minimum I think we need to keep the old functions around for well longer than just one release window after deprecation - a multi-year deprecation and removal plan would be better to avoid suddenly breaking every DPDK end-application out there.
Quoted 4 lines
Might an alternative solution be to just document that DPDK historically uses "socket" as a synonym for numa node, even though such a term is inaccurate. Just accept the less-than-optimal naming as a historical oddity?
I share the concern about compatibility impact given how ubiquitous these APIs are. It is important to separate two steps:
1) Updating DPDK internal code to use the new NUMA naming via the cocci script
2) Removing the deprecated socket-named aliases for applicationsThe first step only cleans the in-tree codebase. The old aliases can stay present for applications for a multi-year period, and their removal can be scheduled independently, not immediately after one release cycle.
Quoted 7 lines
Keeping the existing names and only updating documentation is a pragmatic option, but it does not resolve the recurring confusion between CPU socket and NUMA node. This mismatch still misleads new developers and triggers topology-related bugs.
I am willing to follow community consensus on the deprecation timeline and the overall approach.
Yes, good point about the first option being entirely safe, and only the second affecting compatibility. Therefore, I'm ok with adding the new versions of the functions/macros etc. with the new names.
/Bruce