From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH 1/5] eal: drop unused RTE_PROC_PRIMARY_OR macros Date: Tue, 26 Feb 2019 13:34:20 -0800 Message-ID: <20190226213424.10567-2-stephen@networkplumber.org> References: <20190226213424.10567-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by dpdk.org (Postfix) with ESMTP id 4D29F326C for ; Tue, 26 Feb 2019 22:34:29 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id s22so6867818pfh.4 for ; Tue, 26 Feb 2019 13:34:29 -0800 (PST) In-Reply-To: <20190226213424.10567-1-stephen@networkplumber.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" No usage in current DPDK code base. Signed-off-by: Stephen Hemminger --- 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 a9724dc9181c..5e16a4f86b70 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.17.1