[PATCH v1 19/20] drivers: add testpmd commands for private features
Stephen Hemminger
stephen at networkplumber.org
Mon Jun 1 00:31:55 CEST 2026
On Sun, 31 May 2026 02:46:24 +0800
liujie5 at linkdatatechnology.com wrote:
> +RTE_EXPORT_INTERNAL_SYMBOL(sxe2_common_mem_event_cb)
> +void
> +sxe2_common_mem_event_cb(enum rte_mem_event type,
> + const void *addr, size_t size, void *arg __rte_unused)
> +{
> + struct sxe2_common_device *cdev = NULL;
> +
> + if (rte_eal_process_type() != RTE_PROC_PRIMARY)
> + goto l_end;
> +
> + (void)pthread_mutex_lock(&sxe2_common_devices_list_lock);
Cast to (void) is unnecessary clutter here.
More information about the dev
mailing list