From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 430BDA10DA for ; Fri, 2 Aug 2019 04:52:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 38E911C204; Fri, 2 Aug 2019 04:52:10 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by dpdk.org (Postfix) with ESMTP id 778651C1ED for ; Fri, 2 Aug 2019 04:52:04 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id m30so35207777pff.8 for ; Thu, 01 Aug 2019 19:52:04 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=QpCO5D5WJ6edy8yJuOwA4VXwhfKciwovvuTBGpYDeU0=; b=lSG2kb16yDPa/pKfwr8yqBaxloBYv3RUT6o9lMvSDBaV6pLGd42uUhEZZjKyj6hIPv nDF3GmMWvfGtcR6v1MySp/ob44CLy5/hk+SKbIupYmNyqcxk5Oh7Ml3NbOf7+lNT4rqw 126YUiQBQp9SsApv+jt7Mq4wrpg/NaUCArx5DNTLfbPa685Tm1UqUOTHZoewjCoFJMY8 UQOAbhBv09CXqCzqJnVskmO5fBG/wP6H5+yb73KvizYCVTGqrxU7bKXo362A7d7rZ0KE d8gCUVkj1LBn2j91uJmQMMTopC1jjJvyHz3HEWtBG4/MZfz+nvNC9AVnjHxB+jogedOV Dr/A== 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:mime-version:content-transfer-encoding; bh=QpCO5D5WJ6edy8yJuOwA4VXwhfKciwovvuTBGpYDeU0=; b=MTeCH9mucUaWvtv+IChHAZZr3oaJAjUc+xmjYzsInuEYF0azdN/4JvlhuvrU9yXjH4 jCNfSx6s/r/05j4FlNkr1BhnLIMnNXwBAJH+hwtQslsAqPTLtREXAgId5rexGc3X9HM6 1Um3pJgdk37lH2Ee8mJHQGidv9Z+6LkeqDs9UbQCDDKsPGPUN/McfIMvZkorTBatm1wB 1pklSmIWgEzDpc0OfM1OOtEtGdk7Xir+NCvpuMc0KBecOiLPsyY3dtI0s+KQ42hZWW+a FollhFS4sfeXG2udTbgLuNmHDSKecfViU1nwh+Lwab7y8HQvalNXSNbIp25ueCZsqFlY xgpQ== X-Gm-Message-State: APjAAAW72eU027S+AgD4jWIgpCo+f6xLt5/eoKjWLcWIFcsxieZK+BH9 ReHyLjN86bYSbMqk3SxGbxXa7hTX X-Google-Smtp-Source: APXvYqxCWoAJYyQEF9xZ2Byk9e8NfWh89t/G3oeMwgPVaYZsRKnIBvc5WnEXqsDIyqhIOZFLB8Sffg== X-Received: by 2002:a63:1341:: with SMTP id 1mr14594036pgt.48.1564714323175; Thu, 01 Aug 2019 19:52:03 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s24sm73911995pfh.133.2019.08.01.19.52.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 19:52:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 1 Aug 2019 19:51:53 -0700 Message-Id: <20190802025154.328-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190802025154.328-1-stephen@networkplumber.org> References: <20190802025154.328-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 2/3] testpmd: block secondary process 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since testpmd has several issues which keep it from working correctly as a secondary process; abort if user tries to do it, rather than running into later problems. Signed-off-by: Stephen Hemminger --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 159c2ef05b6c..d0142cae68d7 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -3243,6 +3243,9 @@ main(int argc, char** argv) if (diag < 0) rte_panic("Cannot init EAL\n"); + if (rte_eal_process_type() == RTE_PROC_SECONDARY) + rte_panic("Secondary process type not supported.\n"); + ret = register_eth_event_callback(); if (ret != 0) rte_panic("Cannot register for ethdev events"); -- 2.20.1