On Wed, 3 Jun 2026 14:29:44 +0800 [email protected] wrote: > From: Jie Liu <[email protected]> > > Introduce private testpmd commands and implementation files to enable > debugging and testing of sxe2-specific hardware features (such as > packet scheduling reset, UDP tunnel configuration, and IPsec ingress/ > egress offloads) directly within the testpmd application. > > The parameters are parsed using the standard 'rte_kvargs' library during > the PCI/vdev probing phase. Documentation for these parameters is also > updated. > > During memory hotplug events, the SXE2 driver needs to track memory > segment layout changes to maintain internal DMA mappings. However, > existing memseg walk functions (rte_memseg_walk) acquire memory locks > and cannot be called from within memory event callbacks, leading to > potential deadlocks. > > This commit introduces sxe2_memseg_walk_cb() as a helper that walks > memory segments using the thread-unsafe variant > rte_memseg_walk_thread_unsafe(), which is safe to call from > memory-related callbacks [citation:1][citation:3][citation:5]. > > The implementation follows the standard rte_memseg_walk_t prototype, > processing each memseg to update driver-specific data structures. > > Signed-off-by: Jie Liu <[email protected]> > ---
WARNING: [TYPO_SPELLING] 'thw' may be misspelled - perhaps 'the'? # drivers/net/sxe2/sxe2_testpmd_lib.c:90: + cmdline_printf(cl, "\thw flow id: %d\n", hw_flow->flow_id); total: 0 errors, 1 warnings, 0 checks, 2371 lines checked 18/20 valid patches

