From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=at4bGTz+g8y3T5mMILEaHBMJ2bXlA0RdWl9TFBrePsg=; b=N11y5sJ+DFlpjHzQFwrZ0qanDF8ZBh6wpG+3QZQFLZsN/2iHyu3wYSt/Tsfx+mmIJD 6pFNzoJpc28xnCJ6uft326oE2ivcys7wIcuccL2tUb1lkpbrzp9i7QSTa/SMCgA+JsTr 4ZkG5GlFHvVpz+uFQz3994hL29V3jbr/+ZFvKSQEkpb7ZHehyGNwH7JkxyyuhRerZgrz FSC/dH6UcFShWXLrDScdikrQIFsHpHfyg2n1rRi8SQuOQPJwrNIimlf2xpHBksfb6d37 soZUfvz/IhI9KcUaPA9jGavS6QeXhP870iCxTMO18kgNo298RaQo6x66SOSrhR/ZVAdu VF1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=at4bGTz+g8y3T5mMILEaHBMJ2bXlA0RdWl9TFBrePsg=; b=R59w9LgseOWMxa+pdPkT8wZLiJAhzPEm2F9oB8r9R0ceyU9Y7AxceEQSfUAnxB/dcf i5mgISX1pCu2CPMAET8TfIoiEmEdIkG3pAaznn+Cl48LEwWFOtteXtwAsqugjbdwKyb9 oW0TQ7V1tlw8Vpg9gVzO4yGaqNxk6Z6orOZLExrD7Qy1XZZqfjsF/u3JvZ9gvkKHvTSR 2RFz3me5JRS1bNLBWQpHqiJQietZORdxVY0iT8AMDRrMnrlT5yLBKAVW8Ec/T8jK54J3 7FvAvVG1GM/jVcvUtluFkXMLiWValMgu1g4hgHqqUvBgo16/MFLE31wMv4+i3CnrL1EW rghQ== X-Gm-Message-State: AHQUAubNnA+X7WdKlQZHIRmG6MrR48BjuEdDirVyezqFR3cIxjeRLxPf ys99xRSkEylazdXA9RI8qH/CML5S6cA= X-Google-Smtp-Source: AHgI3IbQuI43ig3JAdM5S2h8Po+zhj6zooP3gQ0F2kPfTmZwp4ygEonnxJbuTS3D9+gG8ceKKnLniQ== X-Received: by 2002:a65:5184:: with SMTP id h4mr26497344pgq.32.1551216868187; Tue, 26 Feb 2019 13:34:28 -0800 (PST) Received: from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id h75sm22191108pfd.150.2019.02.26.13.34.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 13:34:27 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 26 Feb 2019 13:34:20 -0800 Message-Id: <20190226213424.10567-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190226213424.10567-1-stephen@networkplumber.org> References: <20190226213424.10567-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 1/5] eal: drop unused RTE_PROC_PRIMARY_OR macros X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2019 21:34:29 -0000 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