From e37aad5ed3f52be57a8b6e20809994c803578b13 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 26 Feb 2019 13:34:20 -0800 Subject: [PATCH] eal: drop unused macros for primary process check No usage in current DPDK code base. Signed-off-by: Stephen Hemminger Reviewed-by: Ferruh Yigit --- lib/librte_eal/common/include/rte_dev.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index a9724dc918..5e16a4f86b 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -76,21 +76,6 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...) #define RTE_PMD_DEBUG_TRACE(...) (void)0 #endif -/* Macros for checking for restricting functions to primary instance only */ -#define RTE_PROC_PRIMARY_OR_ERR_RET(retval) do { \ - if (rte_eal_process_type() != RTE_PROC_PRIMARY) { \ - RTE_PMD_DEBUG_TRACE("Cannot run in secondary processes\n"); \ - return retval; \ - } \ -} while (0) - -#define RTE_PROC_PRIMARY_OR_RET() do { \ - if (rte_eal_process_type() != RTE_PROC_PRIMARY) { \ - RTE_PMD_DEBUG_TRACE("Cannot run in secondary processes\n"); \ - return; \ - } \ -} while (0) - /* Macros to check for invalid function pointers */ #define RTE_FUNC_PTR_OR_ERR_RET(func, retval) do { \ if ((func) == NULL) { \ -- 2.20.1