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 7A5A5A00C5 for ; Thu, 1 Dec 2022 17:39:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B19BF42D1A; Thu, 1 Dec 2022 17:39:14 +0100 (CET) Received: from vadc01-egs02.gd-ms.com (vadc01-egs02.gd-ms.com [137.100.132.44]) by mails.dpdk.org (Postfix) with ESMTP id E7BD440151 for ; Wed, 30 Nov 2022 14:35:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gd-ms.com; i=@gd-ms.com; q=dns/txt; s=esa; t=1669815329; x=1701351329; h=from:to:cc:subject:date:message-id:mime-version; bh=FbgnrOFQa7MZeXwSmEIEiZZWarK1upOQxZTlH6bRyDY=; b=VKfrFiSsch7zLbNUZYr9KGvInRNSn9ba99t6J87upKlUpoab92xBr4L4 QH+qMdmZT/Yx6OY+Tu88VSMgN5uLJo80RFz4ueUbu8xYqbCbGSlaZmDvX vpVfY4zHKPcggATDqgVfNCSsYtvMaqD/vMoCqAeF0kmlO8pIDuHcyZAdz kUBouI3rT8PRVy6ZjAVQCCXlY1WJB089NCDXwOCr3Zl/ZsGNyy4l6Kgip 6FUX9P9Ei/ojhNmqsGodcyvEm3QU67HUig/8RRNlmlOUGgRgXJSIwrGAC UNwPRCYA4NiK7PiNrJEYWk7q11ZG7WmIOcvn8XMFtGhE4wvkGXR3MG2N7 Q==; X-IronPort-AV: E=Sophos;i="5.96,206,1665460800"; d="scan'208,217";a="39127537" Received: from unknown (HELO eadc-e-fmsprd01.eadc-e.gd-ais.com) ([10.96.30.97]) by vadc01-egs02.gd-ms.com with ESMTP; 30 Nov 2022 08:35:28 -0500 Received: from VADC-MMB03.GD-MS.US (vadc-mmb03.gd-ms.us [10.132.100.63]) by eadc-e-fmsprd01.eadc-e.gd-ais.com (Postfix) with ESMTP id 1346DFB04FC; Wed, 30 Nov 2022 13:35:28 +0000 (UTC) Received: from VADC-MCA01.GD-MS.US (10.132.100.42) by VADC-MMB03.GD-MS.US (10.132.100.63) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 30 Nov 2022 08:35:27 -0500 Received: from USG02-BN3-obe.outbound.protection.office365.us (137.100.132.86) by VADC-MCA01.GD-MS.US (10.132.100.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42 via Frontend Transport; Wed, 30 Nov 2022 08:35:27 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=wIqA9Pxl8UG7BJoUeOaYoAkBgtKdWA/2XcXWTaM3oBuYQQSs/EsjCf4tVf9w+hNhacxxlngr2Nj/UO6hZC+6W3O1h5adrROkC63wtCM3GOQa/wuRtY2wezGIXEZK7tP/ZEu+z0zGi+anKcacJB51ZObn+baV42QZV6+IgHOkVz1YoUaEhLH5jmUrWeK3dF0+GzLFKcw/4H2oCpCdpjPu+0sjjABzgHOLxHSN2Oabk4pG+fiD6qG0cPe04sRxKBogNpYRtdtrANjLLPAXcxeVo9lvxiQ45OR56KvcvirORSFIA54y4YjvbXhddhpfsZsuJdRMrxwaiSC9/LxFu2ydxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; 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=3ne00cgk8ajlwd8BVN2qJhO6EBqfk1hgtjDWAxln/F8=; b=FLphqG2KraeZ5vEltPE7bTqMErQg4WOTLuwytbebqzhBQismlE/4SRE+n1Zza51EoSeOnOLYYEdVMI99Y1g5P4Lji2p9kCUBUfqCs2f0om8RZn1gZK+yylPOoPRgcFyY8xwnzN+z6UVr0QGESgbcrxrJZe81e1UrdOuTvldHo17UT+VD4Uj5cSrNpQ8N8cVoCeBZ0ZnXcysjHKAL6m+dYev4RIzMLQ3maPiv+TADz/kC8nE3w5rUY1HGzkg986BuVWWf8k/37cczWrmwR18yK8Rl3SdxZw6TdwhL9LKS7pDcxtsYoAd0IgeiMR919cNQKCb6350kAfKfvYVCE9KKWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gd-ms.com; dmarc=pass action=none header.from=gd-ms.com; dkim=pass header.d=gd-ms.com; arc=none Received: from BN0P110MB1627.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:187::12) by BN0P110MB1128.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:16c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Wed, 30 Nov 2022 13:35:26 +0000 Received: from BN0P110MB1627.NAMP110.PROD.OUTLOOK.COM ([fe80::7134:126b:9490:2675]) by BN0P110MB1627.NAMP110.PROD.OUTLOOK.COM ([fe80::7134:126b:9490:2675%5]) with mapi id 15.20.5834.022; Wed, 30 Nov 2022 13:35:26 +0000 From: "Kyle.Gagnon@gd-ms.com" To: "users@dpdk.org" CC: Kyle Gagnon Subject: DPDK Non-Supported Hardware Usage Question - Kyle Gagnon GDMS Thread-Topic: DPDK Non-Supported Hardware Usage Question - Kyle Gagnon GDMS Thread-Index: AdkEvY4JlLp2PnPzSN6Ra9HH7GXiNw== Date: Wed, 30 Nov 2022 13:35:26 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=gd-ms.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN0P110MB1627:EE_|BN0P110MB1128:EE_ x-ms-office365-filtering-correlation-id: 7a7b990d-0f73-4698-823a-08dad2d7bda2 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: I1bp9PTBGJm41nKRWPps0xRAzhy+xDUfXTpa8lh3VFs+GiMia11xSW8BpX+3EiWrWW/lmt+8pD946ejFVVuCwx828YrefpCCo1fzLCChPBRv8HTGE+25HdqXyuh8n1U7b4jczijqZBk4LFr9ix2C/xXt6n6g31iOnRgQ6myacBp0xgyvkHD0yE6Oq33Llo9+Wfa1ltuo23096nEQ5FFH74pMdIBo0leci2dLqFFDEEREg2/4i+Gd49SUa1ypXSMnMX5NUYQhCdN3v9FoBRE1QlaonId9IT6fXYs8VUzTQ6xrvlm96SU0l6kRAqt22S6HMxWrrtYzb/3ZRECPJL1C23NC1GyYK0gpQFu9OkPDm5S2G61905ve1+ZAGIx4Nwp96r4JUw03dk0587HFjMYyqg8eBKvtI2kK8WyYGYpOh640xOp7x7VXpkNiWL0O0cu7yVGF9jjo62napPhKqKu2zoo2BhQvyE4q+x9fanQGkUunPr3s/Fe8XBOLfR4Zc4kFImkdbZCo3DV7rx4U6UQLPMFIQnpXFdIjmL9ngS21C6QqDhqxeMGA647P6xCmCZ5NEjHWacCtclImEgbd/o9HV5Wuu+9N2qQl1yqkK7vNaKO161JC8EYe10bQW2hgR8wG x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN0P110MB1627.NAMP110.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(366004)(451199015)(71200400001)(498600001)(6916009)(33656002)(2906002)(9686003)(86362001)(6506007)(7696005)(40140700001)(52536014)(38070700005)(26005)(8936002)(55016003)(5660300002)(186003)(38100700002)(82960400001)(83380400001)(122000001)(76116006)(4326008)(64756008)(66946007)(66556008)(66446008)(66476007)(8676002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: AB74Ym0ZjARywUjjYIwi10rjCQ3vazxKnI8E0DpoHk8I3NjQJaO1pBYdHPc70WT6G//jtEqMbi3QHtGAWR69U/K+ohEvkM/FMJrIRccBLvSqChffXseXqbKSnzzSRReSJcnnJPtdt98yCPZmdOuEGIcVMFqNIpP/r3fWNMNXQcFhaxOHEuN/MMIx1XbNU77dXPNu8Nmao4phS1ZToFutGQuzysrCPLqN1dc354jMi2WmCUQ/PYsjLP72smQogriqlXkHOoxoy3ioUDYT0O6Lp7oluYr7qar/MU1Xj+LYH0Mustuqg2zuVQvwUnajf+6CEcd8fo5mGiIbKzL3iLkljuWjUjEVAYMZ97v8C7uqoroLyLAgYbbLTNXKKiKyBZx4TOvhEchVgkIfMvotplR30mDYURfFwTa5CvlI/LCa4HE= Content-Type: multipart/alternative; boundary="_000_BN0P110MB16274BB834A0A8E0A21F8CDBBE159BN0P110MB1627NAMP_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN0P110MB1627.NAMP110.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 7a7b990d-0f73-4698-823a-08dad2d7bda2 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2022 13:35:26.7066 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7c5a26cf-ddf0-400c-9703-4070b4e3a54d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0P110MB1128 X-OriginatorOrg: gd-ms.com X-TM-SNTS-SMTP: A0E5FB8BCBBF1B85EA2626E2E3A19D3048868EB7236F37EEF437B98A1A438BB12000:8 X-Content-Scanned: Fidelis Mail X-Mailman-Approved-At: Thu, 01 Dec 2022 17:39:13 +0100 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_BN0P110MB16274BB834A0A8E0A21F8CDBBE159BN0P110MB1627NAMP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello! My name is Kyle Gagnon and I work at General Dynamics Mission Systems. We a= re evaluating DPDK and its use. I am currently trying to get DPDK to work o= n a Xilinx ZCU102 evaluation board. The problem is that the NIC is an onboa= rd ethernet interface so it does not go through any PCI. I won't be able to= use an external NIC card so I have to work with what I have. I understand = that I can use the PCAP library PMD. Here is my question if you don't mind = helping me out! I am compiling DPDK through meson and then in a custom application I am wri= ting myself I have to use Makefiles. I need to statically link all of the l= ibraries. So I did that and wrote an extremely basic program that doesn't d= o much at all. Here it is (I am copying from another computer. This is a C+= + application and I am building it for ARM on an x86_64 Ubuntu WSL machine) DpdkEntry.cpp #include #include #include #include #include #include #include Int main(int argc, char **argv) { int returnVal; std::cout << "Setting up EAL environment\n"; returnVal =3D rte_eal_init(argc, argv); if (returnVal < 0) { rte_exit(EXIT_FAILURE, "Error with initializi= ng EAL\n"); } rte_eal_cleanup(); return 0; } When I run this application through a QEMU emulation of the ZCU102 board I = use the following command dpdk-test -l 0-3 -n 4 -vdev 'net_pcap0,iface=3Deth0' I have built librte_net_pcap and linked it in so it is in the application. = When I run the above command (using the above source code) I get the follow= ing: EAL: Detected CPU lcores: 4 EALL Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: failed to parse device "net_pcap0" EAL: Unable to parse device 'net_pcap0,iface=3Deth0' EAL: Error - exiting with code: 1 Cause: Error with initializing EAL When I run a testpmd with the same parameters on the same emulated board I = am able to use the ethernet port so what am I doing wrong with my custom co= de? I am going to forward this to my personal email in case I need to follo= w up with more information (the source code and building is on my personal = computer rather than my work computer). Thank you! Kyle Gagnon General Dynamics Mission Systems 150 Rustcraft Rd | Dedham, MA 02026 (781) 410 - 3820 | Kyle.Gagnon@gd-ms.com --_000_BN0P110MB16274BB834A0A8E0A21F8CDBBE159BN0P110MB1627NAMP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello!

 

My name is Kyle Gagnon and I work at General Dynamic= s Mission Systems. We are evaluating DPDK and its use. I am currently tryin= g to get DPDK to work on a Xilinx ZCU102 evaluation board. The problem is t= hat the NIC is an onboard ethernet interface so it does not go through any PCI. I won’t be able to use = an external NIC card so I have to work with what I have. I understand that = I can use the PCAP library PMD. Here is my question if you don’t mind= helping me out!

 

I am compiling DPDK through meson and then in a cust= om application I am writing myself I have to use Makefiles. I need to stati= cally link all of the libraries. So I did that and wrote an extremely basic= program that doesn’t do much at all. Here it is (I am copying from another computer. This is a C++ application = and I am building it for ARM on an x86_64 Ubuntu WSL machine)

 

DpdkEntry.cpp

 

#include <iostream>

#include <string>

 

#include <rte_eal.h>

#include <rte_ethdev.h>

#include <rte_cycles.h>

#include <rte_lcore.h>

#include <rte_mbuf.h>

 

Int main(int argc, char **argv) {

 

        &nbs= p;      int returnVal;

 

        &nbs= p;      std::cout << “Setting up EAL e= nvironment\n”;

 

        &nbs= p;      returnVal =3D rte_eal_init(argc, argv);

        &nbs= p;      if (returnVal < 0) {

        &nbs= p;            &= nbsp;        rte_exit(EXIT_FAILURE, R= 20;Error with initializing EAL\n”);

        &nbs= p;      }

 

        &nbs= p;      rte_eal_cleanup();

 

        &nbs= p;      return 0;

}

 

When I run this application through a QEMU emulation= of the ZCU102 board I use the following command

 

dpdk-test -l 0-3 -n 4 –vdev ‘net_pcap0,i= face=3Deth0’

 

I have built librte_net_pcap and linked it in so it = is in the application. When I run the above command (using the above source= code) I get the following:

 

EAL: Detected CPU lcores: 4

EALL Detected NUMA nodes: 1

EAL: Detected static linkage of DPDK

EAL: failed to parse device “net_pcap0”<= o:p>

EAL: Unable to parse device ‘net_pcap0,iface= =3Deth0’

EAL: Error – exiting with code: 1

  Cause: Error with initializing EAL=

 

When I run a testpmd with the same parameters on the= same emulated board I am able to use the ethernet port so what am I doing = wrong with my custom code? I am going to forward this to my personal email = in case I need to follow up with more information (the source code and building is on my personal computer rathe= r than my work computer).

 

Thank you!

Kyle Gagnon=

General Dynamics Mi= ssion Systems

150 Rustcraft Rd | Ded= ham, MA 02026

(781) 410 - 3820 | Kyl= e.Gagnon@gd-ms.com

 

--_000_BN0P110MB16274BB834A0A8E0A21F8CDBBE159BN0P110MB1627NAMP_--