From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 72EE1A04A8; Tue, 25 Jan 2022 04:26:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2D7F411F3; Tue, 25 Jan 2022 04:26:22 +0100 (CET) Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) by mails.dpdk.org (Postfix) with ESMTP id A47CA40E09 for ; Tue, 25 Jan 2022 04:26:21 +0100 (CET) Received: by mail-qv1-f42.google.com with SMTP id d8so2882200qvv.2 for ; Mon, 24 Jan 2022 19:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eCb9jwJsgoDM8bkHdeBMf5e0APovHq/5eBvHFLLWzR0=; b=T3BWCZRqiRvXa3x5Xtg6hxcfZO3N6j+olDndiwrRVbFuzoOVrn7y5xEUzDiBpuZigc kMKJcXNaKKkiZZuh3z1dmx7lmfYgH8eKz/zrwYDW0yFeda8jfA7VdWEDRXurRUbnag+m zQQoy/N3HRiDT7t/XQzLBaTu4fx20c+FFgU479mOP85H3vHFjWeb/JLHY+Ar6EjcUjMb GxBus0FJrpvZx6EoI5iP+HT6NzcaimFRM2ETQWERfH05HT9SQF04huhvT85JMAQ7c9Ab q/5nI7DMhgnshuAsJn+z5r0c2qPaq+5EJfQxF/Ll8jTWVL3wC73WG9TeDjgAMPDpSEnn H8dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eCb9jwJsgoDM8bkHdeBMf5e0APovHq/5eBvHFLLWzR0=; b=22kyqZSh8zA8Z3tIC+iFAZ46PMAqlnFxBRd0nMXs4HpU2jRFc55NXT8R/ATpXAeTEd rjv2vAUWE/k/x1LtF61o5bL058mxrJTniARxW/wi9xTYs2gJC7Foo0UC7zW0TXSWTBzS LfPlGh+2L1Nvu+93Sm1bzHzUGKSKrFaMXtbsDzG+QIbnQeytLNswmW4CTKBXuNCB1cMv IVbPm9egID0JO9bwjgH6EnYQCmrUeUHXvXx2+IBnvu+5GLRJO83PsHBwgVjSEAtVEumF lA6Tf7RQPjfPot4kLFHx2P6xlaqxds4IeJgnDHN/ftZJUp4yoNsZ8aapgiNFTUwB88TN 5rOg== X-Gm-Message-State: AOAM533NELfnYBzydgW9Gy39O25mNX7SOWxqZDI9DTO//paPOav5OGGJ 4ivUqqte8hAM1hSbO3uj8oNPd5zf2tY= X-Google-Smtp-Source: ABdhPJxUZiI0DYpZAjaGY845U1RjQD39t25eM4aaEMEH38LCQOh265wusjMLusXXFQIEhLQuOK5wEQ== X-Received: by 2002:a05:6214:2264:: with SMTP id gs4mr17704223qvb.18.1643081180797; Mon, 24 Jan 2022 19:26:20 -0800 (PST) Received: from lvdi-01-iad-l.blue.trinitycyber.com ([38.142.224.194]) by smtp.gmail.com with ESMTPSA id bk41sm8628633qkb.24.2022.01.24.19.26.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jan 2022 19:26:20 -0800 (PST) From: Ben Magistro To: dev@dpdk.org Cc: ben.magistro@trinitycyber.com, stephen@networkplumber.org, Ben Magistro Subject: [PATCH] app/dumpcap: allow help/version without primary process Date: Tue, 25 Jan 2022 03:25:45 +0000 Message-Id: <20220125032545.7704-1-koncept1@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Currently dumpcap tries to initialize dpdk before parsing command line arguments, this makes it impossible to check version or help without having the primary process running already. Signed-off-by: Ben Magistro --- app/dumpcap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index c5fe440302..1cc7e80d5d 100644 --- a/app/dumpcap/main.c +++ b/app/dumpcap/main.c @@ -781,8 +781,8 @@ int main(int argc, char **argv) progname = argv[0]; - dpdk_init(); parse_opts(argc, argv); + dpdk_init(); if (filter_str) compile_filter(); -- 2.27.0