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 06F92A0543; Tue, 4 Oct 2022 17:25:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A81B540DFB; Tue, 4 Oct 2022 17:25:29 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 3BF7140DDC for ; Tue, 4 Oct 2022 17:25:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664897128; x=1696433128; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=k8HoIUCFP2bPUilU0ozrI9fMZRSW6ROXdf1fk3hGUiQ=; b=HSb4SsK14ezk2is844wliJCjHR9zwYLMxHI8Cvj1j0wGmc3iom3IWzvq 0E9+jf150TGuSNP3ApNpkUXrMFJzHo8MKW+nTwFyTz43ytbjHq5T2HvMe I22LofZ/IiYnUappE25LPl/13Muo2wqG0bJyLe1TfAXGtaZ1LGh/GUUGt x4Lq3iNYRFzJRfnmjX8H4/GvuDsr/Rea5GinELBq9XeSRmBU39KCuAH86 LWXlqWWcAQ0aYRixqcQGv1nfbB87cbE7qoy3icyPyharyFRP70r1/ZvbY 2RBed8EBsICSh7xPjmw59eKT8xM6eUO0NeZJkeDDuOxfMMHEQViVyGiXx A==; X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="329345169" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="329345169" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 08:25:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="952809564" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="952809564" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga005.fm.intel.com with ESMTP; 04 Oct 2022 08:25:26 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 4 Oct 2022 08:25:24 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 4 Oct 2022 08:25:24 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 4 Oct 2022 08:25:24 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 4 Oct 2022 08:25:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e0AMdcCrA74VVjFVstD7iaBJtSQU6EL40cVqhoefk39XzeSv7guYFcSXxBSNM6Pgq9rbQB1EDQBKLtFbfEs40pMJlECTEgwnDSZg/575dLPnWG71r4+lO9hfb4fXdO0duc5aCYg7DLJJCTrQNU1TkGgI8eninNPyQQZ4Ad+And5iyc30KEZQo/TpYOIv4WCfm9TB/kWGgZikfsPlVDBpy1Ye5z/p/Nld/Ijq1CTwKmq3LIvdhfBRvK7jPXX7Zlf+u91OvdkWDjroySs9exqQNU329FK7TmMHy2uc7b9a5jiHviSRDZW5m1WOF26d8jDoC74Wls0UQrBVdDD1NzJmhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FnlFNX1HZRK0chL/34aEBSCdMJwtEP/pwZIMNsozQBw=; b=mplxtI99bC5LcGzipD41xnvz7k3JiKonlXtUixjxODYoZ6P6GlX5EGnptI/lD+NcMEbI978C2CSamd2zPIkf5tTQtyMs/97+rQ6jeZV2ZhpVP/iFiZjPyxFFqyJBI8SdI2uFKgIQeAaM5QmpNKjYq4ayxiYHbnnW6zrChx/Evcwe7xSOEmiAeQ4PwSsINEbz9h0LW3LYgbfPeyls9mrsmU4miZYi/jpzz121MktuD5hnK+XKl8Z7PpeLhKvBvbL3XFhZNABBMXyJNzxpPvSzmx8e7gSxC6kS+jFIKcc2RojedYIaI/5nnAQ8Fex7x/Mvs0OlS9LaW4QoyofxQcKsVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM6PR11MB3737.namprd11.prod.outlook.com (2603:10b6:5:144::28) by IA0PR11MB7355.namprd11.prod.outlook.com (2603:10b6:208:433::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Tue, 4 Oct 2022 15:25:13 +0000 Received: from DM6PR11MB3737.namprd11.prod.outlook.com ([fe80::b02e:f3a3:c41f:8675]) by DM6PR11MB3737.namprd11.prod.outlook.com ([fe80::b02e:f3a3:c41f:8675%5]) with mapi id 15.20.5676.030; Tue, 4 Oct 2022 15:25:12 +0000 From: "Kaur, Arshdeep" To: Stephen Hemminger CC: "koncept1@gmail.com" , "Pattan, Reshma" , "Chintalapalle, Balaji" , "Beadle, Michael" , "dev@dpdk.org" Subject: RE: [PATCH] dumpcap: fix list interfaces Thread-Topic: [PATCH] dumpcap: fix list interfaces Thread-Index: AQHY0TdgoSj2e8zV+UG7BBm5fWVJs63+ZfaQ Date: Tue, 4 Oct 2022 15:25:12 +0000 Message-ID: References: <20220925233410.98051-1-stephen@networkplumber.org> In-Reply-To: <20220925233410.98051-1-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR11MB3737:EE_|IA0PR11MB7355:EE_ x-ms-office365-filtering-correlation-id: d06b7329-6606-447c-f20c-08daa61ca1ad x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sXueYP6tsPrIQfWm5V31uch55OX5Hf2SRMUk8I8vswEsl9pdnVLltmPjEVvoO1o3j2Iy0kg/Ksj1L9LABIST8bcC2rw2qUFQkuG23RI+hqYrOkUni1r7KK08DMlsx1wg1/liFUEUvAPaSw2/tnZPQ2LsP6Zxnp1QGjf/EmtIMFbDwGQa0/V9bvxIeTh11Wf9TGP85t6RKDYmLZm6Z0aGitbm0Wn4xvXdMxpC07Q29MwBqLFD8r8PhIDo4qE2tNMdpntMCvbgQI1pmL4+m3Z1IWtOy0QH0LujGz1KA4IoHRJGiEz4GXCkCMFtKdbGBkI6IZVu8daSdeQn/rvMcJ9CWA+kGp9gYZaCqoZ2qml4F3IDK1OB6L+CxuGq1ljVG6JjubPsIqPZLYp8BO/QKhPDZQHIxahiYYu+ZpeNYah4D9H2jC63Gvko/0M78iVxkRpHW5TORfGW+7ix7T00aEIXa5X054R+EFCstTHMrA3flq/LpU/niGj47AmNZX3X/c1NDsL/ypv43/A0EJ2EjtYQA9ZWwsJf5gNihY6pGeWKjs9gk1a3WdbKTW6MTzwvOR3ZL4Y5fWPasJjFIhEorQFffjzI4tly4gN0fBghbqqrZfiFOQq83ekP2IkDFKVYqij+1q7udGzIWs9UEEyH0EQKVa2MzBoxaEZfboelGVQwfx16YR1ofoWWwVs/cBdw//AGr2Yu6KfQoIF9xxykQ6rwzFbctf67ZQwI4lsxBkzW8lgOk2Q6Vdzb7CneDssiFdOHkOVgN1+l/7iQaG61hwgsyw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3737.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(346002)(39860400002)(136003)(366004)(376002)(451199015)(8936002)(86362001)(2906002)(52536014)(6506007)(5660300002)(53546011)(9686003)(478600001)(71200400001)(7696005)(26005)(76116006)(83380400001)(38070700005)(186003)(4326008)(41300700001)(122000001)(38100700002)(66556008)(66446008)(6916009)(66946007)(64756008)(54906003)(316002)(82960400001)(66476007)(55016003)(8676002)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?IUmKtUMEHic1ewOds2IX+W828g++auArrB4fnk26hIrcerWZGo/SakTeF+Yk?= =?us-ascii?Q?lTp0JFWtF4zd/ecW/0sGfiL5Fa5OBJ2/3jVwuXq0QIX1foFbR2bGUhxZzOgq?= =?us-ascii?Q?McQwpBSVf5OZMfsOuapB/FQAsqtjsj91U3NIUmmf7IxLILbSmKi8lwbRN6ua?= =?us-ascii?Q?CMFQn3bH+wgpd+g3lOlCosKf/Btfv6X7mgPq3WvC0LeEZEkTj97+S3OVplbV?= =?us-ascii?Q?GJxmSZIskZmYrsDfSfcHvk9honW/EKPcNUcePHE3jG7ux2g7GZtkGmdP4yCn?= =?us-ascii?Q?DOHybQur8INNF0ObT5jKmDjhfV3vS257nfyzxfzySEju8MgXeYNgfyF+5KnR?= =?us-ascii?Q?xG82zhilaLiOBNZS4gO3vNj3oZ76sCSP9M1MQ5yMCP8clRxkEdo9hOQm+673?= =?us-ascii?Q?FUgUzjBmlwjyGzNk8o7+4B0QounHw7twAXNPYiNTMgSJuZo9vyxyve/ngDD/?= =?us-ascii?Q?kQMsHEhUQz526DEJFPuJugLYONuIBS42DimGV87k+wNN7cm4obvDVYIj276t?= =?us-ascii?Q?OqvaQUZoEAg25FyMVH/SFhgUBB2KzirBBRFrRbA6rvStQN4ozIFZ63Ffr7yH?= =?us-ascii?Q?tjr/Fz2JRFFq2RilnPZI9lzFW5wke8PebHJifxMrUc/G0jSZ0ylYFh4PzmWI?= =?us-ascii?Q?w0ir/lsrmzW7KuXZ4dFalZHTK4rsQXwzO8ldTb7IWsBEYUFX8TtFr3qc09Jg?= =?us-ascii?Q?U7JET6TQBIe965qPaz46sIqhmuzqr6XoQQF/dDQ2b7ZWTF3JpnpgmgPjsgU6?= =?us-ascii?Q?su1H66IZsveyqErudSsvSXU1IsI03yNQsByHdiBU0Z6GS0NFzxGgPS1gwLJy?= =?us-ascii?Q?soAqnyC3e8+VzvTg+IvIYZQh6FKuKtMT4nlosX/QqxVjKK9nBUAm5+600ZUi?= =?us-ascii?Q?sLO+WZndm92lDL/+cfBZoPhGzID+qoAA8RkaIDt8FzeYtT4UUQUeHBbosLzw?= =?us-ascii?Q?N45PWWv64S6MFnq1WfJxELy0VliLJqFri0Z2VGvueVnNDtc2rZpw0dClUv32?= =?us-ascii?Q?PZoqc10+GKsRFBPXlhxQnST0Oi1c4ViiirW18CFPGsNKZCMQi5rQ/peSUIPD?= =?us-ascii?Q?OgCXo12R6E4Eo/E3HMdbe8HURJTQrs1TQ26pHPpuOZ+i9MmFlCIiPFFkbiqb?= =?us-ascii?Q?9TrVvWUqeZxIiFIDrzbx1GP+FJkz+sOsHTFIIGkllqHTsGRQAP0BEUX8qxif?= =?us-ascii?Q?MZMF4lYVerT4D346ONnTyPKcvBlzW2erHjLh1XTakk4tB71lP3YYAUFMDcKZ?= =?us-ascii?Q?IPWCZ37Orek46yhKyDdHD4K3EfJC3kMXwJbxLKeJnU/i8JVTqbTbiqLN65+r?= =?us-ascii?Q?lTKXxu9hbURNUGPFKDH5GbrCUea9eZ43rU5lz2Hd0vzseg+p1CggR4DdOMs1?= =?us-ascii?Q?I9247+HMXMRCmSKoIBYoguumGh5UlAY4TBkLeuyCAR9KFF2kDU5SPH/9dYJo?= =?us-ascii?Q?yDlkVtTu1YlCMeiPPAid3ZY+rwBCNDQYmNJk1Ctq8V7BGsEOKd/rmuroGYvC?= =?us-ascii?Q?5Fb7e2TuPdcKgqYjOJdcIVZCwqT5US76y4H6nu1eoZdxj220mm6R7gPviPXM?= =?us-ascii?Q?Bd8HVek0v8i4YGixrhvd73Db0JfbL1H3A0swI/df?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3737.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d06b7329-6606-447c-f20c-08daa61ca1ad X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2022 15:25:12.7704 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hJ5ZPJe+pJiFNvqXyMlFDn31lhMI3lcKNO20sYyMtgcpmQQ07MElxAtPk886qGr/x8XPKixMEpF2L3ADkVF3Iw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7355 X-OriginatorOrg: intel.com 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 Hi Stephen, I tested the patch. "-D" option is now working properly. But I am facing an issue in this. Using "-D" provides me with the interfaces available. For me these are "000= 0:18:01.0" and "0000:18:09.0": ./dpdk-dumpcap -D --file-prefix wls_1 FlexRAN SDK bblib_lte_ldpc_decoder version #DIRTY# FlexRAN SDK bblib_lte_ldpc_encoder version #DIRTY# FlexRAN SDK bblib_lte_LDPC_ratematch version #DIRTY# FlexRAN SDK bblib_lte_rate_dematching_5gnr version #DIRTY# FlexRAN SDK bblib_lte_turbo version #DIRTY# FlexRAN SDK bblib_lte_crc version #DIRTY# FlexRAN SDK bblib_lte_rate_matching version #DIRTY# FlexRAN SDK bblib_common version #DIRTY# FlexRAN SDK bblib_srs_fft_cestimate_5gnr version #DIRTY# FlexRAN SDK bblib_mldts_process_5gnr version #DIRTY# EAL: 0000:18:01.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:18:01.1 cannot be used EAL: 0000:18:09.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:18:09.1 cannot be used EAL: 0000:18:11.0 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:18:11.0 cannot be used EAL: 0000:18:11.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:18:11.1 cannot be used EAL: 0000:18:19.0 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:18:19.0 cannot be used EAL: 0000:18:19.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:18:19.1 cannot be used EAL: 0000:af:01.0 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:01.0 cannot be used EAL: 0000:af:01.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:01.1 cannot be used EAL: 0000:af:09.0 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:09.0 cannot be used EAL: 0000:af:09.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:09.1 cannot be used EAL: 0000:af:11.0 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:11.0 cannot be used EAL: 0000:af:11.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:11.1 cannot be used EAL: 0000:af:19.0 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:19.0 cannot be used EAL: 0000:af:19.1 cannot find TAILQ entry for PCI device! EAL: Requested device 0000:af:19.1 cannot be used 0. 0000:18:01.0 1. 0000:18:09.0 But when I use these same interfaces to capture, they are not available: ./dpdk-dumpcap -i 0000:18:01.0 -c 500 -s 9600 -w capture1.pacp --file-prefi= x wls_1 FlexRAN SDK bblib_lte_ldpc_decoder version #DIRTY# FlexRAN SDK bblib_lte_ldpc_encoder version #DIRTY# FlexRAN SDK bblib_lte_LDPC_ratematch version #DIRTY# FlexRAN SDK bblib_lte_rate_dematching_5gnr version #DIRTY# FlexRAN SDK bblib_lte_turbo version #DIRTY# FlexRAN SDK bblib_lte_crc version #DIRTY# FlexRAN SDK bblib_lte_rate_matching version #DIRTY# FlexRAN SDK bblib_common version #DIRTY# FlexRAN SDK bblib_srs_fft_cestimate_5gnr version #DIRTY# FlexRAN SDK bblib_mldts_process_5gnr version #DIRTY# EAL: Error - exiting with code: 1 Cause: Specified port_number "0000:18:01.0" is not a valid number ./dpdk-dumpcap -i 0000:18:09.0 -c 500 -s 9600 -w capture2.pacp --file-prefi= x wls_1 FlexRAN SDK bblib_lte_ldpc_decoder version #DIRTY# FlexRAN SDK bblib_lte_ldpc_encoder version #DIRTY# FlexRAN SDK bblib_lte_LDPC_ratematch version #DIRTY# FlexRAN SDK bblib_lte_rate_dematching_5gnr version #DIRTY# FlexRAN SDK bblib_lte_turbo version #DIRTY# FlexRAN SDK bblib_lte_crc version #DIRTY# FlexRAN SDK bblib_lte_rate_matching version #DIRTY# FlexRAN SDK bblib_common version #DIRTY# FlexRAN SDK bblib_srs_fft_cestimate_5gnr version #DIRTY# FlexRAN SDK bblib_mldts_process_5gnr version #DIRTY# EAL: Error - exiting with code: 1 Cause: Specified port_number "0000:18:09.0" is not a valid number According to me, select_interface() has same issue that dump_interfaces() h= ad. So we need to add a flag for this in similar way and handle select_inte= rface() in main after parse_opts, dpdk_init and dump_interfaces. I tested this changes and it works for me. But I am not sure how it will af= fect entire dumpcap. Please let me know your thoughts about it. Thanks and regards, Arshdeep Kaur > -----Original Message----- > From: Stephen Hemminger > Sent: Monday, September 26, 2022 5:04 AM > To: dev@dpdk.org > Cc: Stephen Hemminger ; > koncept1@gmail.com; Pattan, Reshma > Subject: [PATCH] dumpcap: fix list interfaces >=20 > The change to do argument process before EAL init broke the support of > list-interfaces option. Fix by setting flag and doing list-interfaces lat= er. >=20 > Fixes: a8dde09f97df ("app/dumpcap: allow help/version without primary > process") > Cc: koncept1@gmail.com > Signed-off-by: Stephen Hemminger > --- > app/dumpcap/main.c | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-) >=20 > diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index > a6041d4ff495..490a0f050bc8 100644 > --- a/app/dumpcap/main.c > +++ b/app/dumpcap/main.c > @@ -63,6 +63,8 @@ static unsigned int ring_size =3D 2048; static const c= har > *capture_comment; static uint32_t snaplen =3D > RTE_MBUF_DEFAULT_BUF_SIZE; static bool dump_bpf; > +static bool show_interfaces; > + > static struct { > uint64_t duration; /* nanoseconds */ > unsigned long packets; /* number of packets in file */ @@ -256,7 > +258,7 @@ static void select_interface(const char *arg) } >=20 > /* Display list of possible interfaces that can be used. */ -static void > show_interfaces(void) > +static void dump_interfaces(void) > { > char name[RTE_ETH_NAME_MAX_LEN]; > uint16_t p; > @@ -266,6 +268,8 @@ static void show_interfaces(void) > continue; > printf("%u. %s\n", p, name); > } > + > + exit(0); > } >=20 > static void compile_filter(void) > @@ -353,8 +357,8 @@ static void parse_opts(int argc, char **argv) > dump_bpf =3D true; > break; > case 'D': > - show_interfaces(); > - exit(0); > + show_interfaces =3D true; > + break; > case 'f': > filter_str =3D optarg; > break; > @@ -529,9 +533,6 @@ static void dpdk_init(void) >=20 > if (rte_eal_init(eal_argc, eal_argv) < 0) > rte_exit(EXIT_FAILURE, "EAL init failed: is primary process > running?\n"); > - > - if (rte_eth_dev_count_avail() =3D=3D 0) > - rte_exit(EXIT_FAILURE, "No Ethernet ports found\n"); > } >=20 > /* Create packet ring shared between callbacks and process */ @@ -789,6 > +790,12 @@ int main(int argc, char **argv) > parse_opts(argc, argv); > dpdk_init(); >=20 > + if (show_interfaces) > + dump_interfaces(); > + > + if (rte_eth_dev_count_avail() =3D=3D 0) > + rte_exit(EXIT_FAILURE, "No Ethernet ports found\n"); > + > if (filter_str) > compile_filter(); >=20 > -- > 2.35.1