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 2A83342AC7; Wed, 10 May 2023 11:51:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD7C5406BA; Wed, 10 May 2023 11:51:01 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2048.outbound.protection.outlook.com [40.107.100.48]) by mails.dpdk.org (Postfix) with ESMTP id 2A48141151 for ; Tue, 9 May 2023 16:16:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kJJRri/1XA8SI2K/uIWItY+WmtcpNsMD5kqwROea7EPu5hUIgWb7zO626KgoIgO+rftQaEBFA7iznj65CkTv8m04ta4k49HJPSFIf2ODG0rx/UjFD63Gr0BcBToNiqBtLvrHugnnqOmZLAAPhJLmj0ZwYjR/YZ63v3/1xaYa2aCyTKcitF6MOLVaYQ2LY+P3qc8fSydW8tx2YCyMRb9n4iOdD51moMgM98TvPfetOTT69tfQSbaw5vsDBeiPDMhBVFl1WoAFgz72e1MTuYISO2niXdVzHvoPXCRF+O+SsOuKH9aHXwZbvqo9kIHjzvrESsrAUneGFUyB+cFH96ApUw== 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=leDFOcnMB6iRK3eTvo7AP4wwCw4UI0aU+z/S8E4L2Q8=; b=GE1iAn3RK/voDf66guj2zrRrysY/QvQqnUbbrhg6+r8U+Tt5XanaA40ViDlRLPVZmI5QkVNdpoMltQ43PmozB/j5NKYW0VtOxHRglUaFliQchyGUd9NRIur+v/tOwRZOaAIjTYjvtldGdC66F16H3WJd0TvFK76itfMHDi0GDk3kxh+GejkEOw9jppCU35m/dVd6eb5i79A1qNI/niD5AmxqmDPOdq22JlBJDuhbmbPPZQjH/IXYMwHuVek23LfZwXo+mojxh6pIlQN/uFo2Nkqmm69HNeAhz8mdW4LmvJte12KzH//0LmWMkHGYu/NICrK9LwbAULm3NA2AszTi9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ampex.com; dmarc=pass action=none header.from=ampex.com; dkim=pass header.d=ampex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=DeltaInfoSys.onmicrosoft.com; s=selector1-DeltaInfoSys-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=leDFOcnMB6iRK3eTvo7AP4wwCw4UI0aU+z/S8E4L2Q8=; b=W+XlNn6aTEUrP9PVldOtKyipyuTU+wamMQn/PKc5Xz8maYt76EQHDwQHz6riXePLQdRyJ1Lm3iywNhDsR0+S0yX6N7NRoPGgj0MyDAFIz7elxE9x2+X30q2N8MCOVOkLGjZT2xuVr8JpDSrv6bw/xsNC5JQr+iazczQyOyAZuGb0Drv7IB+ZSLNu6hwzgMiocL0iikJZd4xphWqzfQCZSBB1Cr/IPuABJ17kGyCKYItCsV2iFIjNFRoHX/FyH/41TuNf3T5bjsFigBZediwCaDGTF6rFa09AUUYAYQq20cVvzqizBAoEVf1+Hz0VsgeOOtuCeHsHpwyaveENNkJolQ== Received: from SN7PR20MB6109.namprd20.prod.outlook.com (2603:10b6:806:32d::14) by SJ2PR20MB6095.namprd20.prod.outlook.com (2603:10b6:a03:4ff::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.27; Tue, 9 May 2023 14:16:40 +0000 Received: from SN7PR20MB6109.namprd20.prod.outlook.com ([fe80::c03f:f6fe:7fb3:532a]) by SN7PR20MB6109.namprd20.prod.outlook.com ([fe80::c03f:f6fe:7fb3:532a%7]) with mapi id 15.20.6363.032; Tue, 9 May 2023 14:16:39 +0000 From: Gilbert Carrillo To: Bruce Richardson CC: "dev@dpdk.org" Subject: RE: DPDK 22.11 Troubleshooting Thread-Topic: DPDK 22.11 Troubleshooting Thread-Index: Adl8e6aD0X9iZ5agRWC2mH9co7M0fABHYZUAABBH7tAAALZ3gAAAobCAAADlnoABCEG94AAVlf2AAAl/D6A= Date: Tue, 9 May 2023 14:16:39 +0000 Message-ID: References: In-Reply-To: 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=ampex.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR20MB6109:EE_|SJ2PR20MB6095:EE_ x-ms-office365-filtering-correlation-id: faf8287c-2b30-4fbe-4c91-08db50980199 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wwLJcOPlNct52CIrkgKVuJWfYTZ2Wg8UkP7P7/tBTvmOTT4frcpdo8BVp9K8NbbH5tuhkSsm3IlY2j2F1yD2nPyMGKDo/7FI9FqKw0HU87KaNs8jqxXa6eFh3xKB0LiaxOKLCbVTY2ElWTUwks4Dx97tQGUKEKUVfj8UU/sue6ryvzH4WumsdyZC0djt5es8GrFS7l3MioiFKdMToPeOw5zS153/RKytzejEOgDsznZirCvbu4QIr+zoU3dSTHV4t7VfXFKZ2OrXgTq6Mwx6ZB6bhZ5T16OdT6c0aztBCAGUKPlPd/Qy9iqCylydSZoQOdbL5uBVt43qC+QwAW8AEfzcTd4Jww1c86GyorKttTrNNcCKEDh07+x1GjUUv0PduaSGflG/syu7NsJtw+aytmsGVJluWTxAHTq3/zpsaleKYgQCScWGKaQZ1SmG1EpxEm7UZNJXzeoek2GmxDqGd1bZs8tAbGp6XUztZFNHG78/gkPu6XUnlYNHY+0jN4T+hLH2frWbTPCtn6mIkeNvhM2VRqft695HxLev77XJeKhDCZXiIb8AooIO+wj29wNu9GZODguRxb2p4sF5XSlzK60uoe/xPfc1unZEVagzu9o7EQBWR6wg9//wKEf+2L3j x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR20MB6109.namprd20.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(366004)(136003)(376002)(346002)(396003)(39840400004)(451199021)(7696005)(4326008)(66946007)(66446008)(64756008)(66556008)(6916009)(478600001)(76116006)(316002)(71200400001)(66476007)(33656002)(86362001)(83380400001)(9686003)(26005)(53546011)(6506007)(7116003)(8936002)(2906002)(5660300002)(122000001)(55016003)(41300700001)(8676002)(38100700002)(38070700005)(186003)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FX4XUSLDUeu9SOXqhgm3Khu+EvDbx4+bAhgVSZs+fklsY5rq5H90ZMuiF72J?= =?us-ascii?Q?ZL+TOAiy5v+jfYYLMkL28RNfRBr2xiGc+vfHQPK489xA+Fi45MkPrp3r5QIP?= =?us-ascii?Q?CM67TpHHmcJkQPknCBgADiRdmefG4p4hpDnTK1kJ9uewZWkfeWBL6IA1qntW?= =?us-ascii?Q?/ct8z1V49YUhDpEqwtq1rcenrtJditt0XTsmov0HwS47HMFhKxR8SdumDyvd?= =?us-ascii?Q?6L1v+eEX5GxRm0sK6k6R4EgPX6YF/Tza6s6bA7tRqxpdtDbf2ojbnLv1sdja?= =?us-ascii?Q?d4iCcQ9MBo+JY+15wWhlOzF1prAT7jjpWKQj80QO64irbs1cF4kYI509krNS?= =?us-ascii?Q?w0lgUUWpe/eYE/EoC6vGUHxhQt3SHUaqEqubV7w9rU72DM6ZRc7pJ2Magvet?= =?us-ascii?Q?/Dp3tZXtAY0dUolLLX3ZqYj09SXPwR7vpz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ascii?Q?FaupGHfrr3ksYLi7r0g6CyzBHgkXN6r154BN4vqKjoisOJQ08DlBkuLq/Naz?= =?us-ascii?Q?ouNqfRoUNagjZplkgzS5WSLA97DIfdZdEHTF7h8U3dakT6E+TBNVDqQVjqzo?= =?us-ascii?Q?LG/l9swihc+QHiy8HwszLU3zdUsSckEulyG1P7RZPMdLngbQGYL1/QZ0AKht?= =?us-ascii?Q?IEN0KVyI3mDWpC2dE0loGDfYq+sDARzFuqEE2naAI1E23IqJq32CJB5YJoqP?= =?us-ascii?Q?TegbBzXZm4wzM8ItQ7o=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ampex.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR20MB6109.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: faf8287c-2b30-4fbe-4c91-08db50980199 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2023 14:16:39.5058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f19deace-5d78-4e17-894b-8b30e355df0b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: W+5luFyLMx4aF1pi/RuL0VK7L+RRQ8sDkdABgrdbZo8cAFPpveDlDcLrLy4yROJLDt3oH7Sa8Fqys4yLzTIlMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR20MB6095 X-Mailman-Approved-At: Wed, 10 May 2023 11:51:00 +0200 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 -----Original Message----- From: Bruce Richardson =20 Sent: Tuesday, May 9, 2023 3:43 AM To: Gilbert Carrillo Cc: dev@dpdk.org Subject: Re: DPDK 22.11 Troubleshooting On Mon, May 08, 2023 at 11:26:59PM +0000, Gilbert Carrillo wrote: >=20 >=20 > -----Original Message----- > From: Bruce Richardson > Sent: Wednesday, May 3, 2023 11:18 AM > To: Gilbert Carrillo > Cc: dev@dpdk.org > Subject: Re: DPDK 22.11 Troubleshooting >=20 > On Wed, May 03, 2023 at 04:53:20PM +0000, Gilbert Carrillo wrote: > > Make static returns an error (see attached). > >=20 > > v/R, > > Gilbert > > >=20 > To help investigate this issue, can you perhaps include the text of the f= ull build output when you run "make static". On my system I see libelf list= ed on the linker flags when I run "make static", and things link properly. = I'm wondering how my setup may differ from yours. >=20 > /Bruce > =20 > > -----Original Message----- > > From: Bruce Richardson > > Sent: Wednesday, May 3, 2023 10:35 AM > > To: Gilbert Carrillo > > Cc: dev@dpdk.org > > Subject: Re: DPDK 22.11 Troubleshooting > >=20 > > On Wed, May 03, 2023 at 04:22:05PM +0000, Gilbert Carrillo wrote: > > > Hi Bruce, > > >=20 > > > Thank you for the response. > > >=20 > > > There is no errors when I run the makefile, however I do see a differ= ence in the programs. I don't believe the makefile is linking all the libra= ries together as intended. > > >=20 > > > For example, when I run the ethtool sample program and compile it usi= ng meson, it works fine and rte_eth_dev_count_avail() returns the correct a= mount. However, when I compile ethtool with the makefile and run it rte_eth= _dev_count_avail() returns 0. > > >=20 > >=20 > > Note that by default the meson build will statically link the examples,= while the makefile will dynamically load the drivers at runtime. That may = explain the difference. Can you try building and running using "make static= " rather than just "make". > >=20 > > /Bruce >=20 > Bruce, >=20 > I had multiple versions of DPDK installed and I was linking the wrong one= . I was able to compile my application with CMAKE successfully. >=20 > I had one last quick question. I am trying to achieve zero copy DMA from = my FPGA to my external buffer. Is this possible? I saw methods such as atta= ching an mbuf to the external buffer? But I wasn't sure if this was truly z= ero copy. >=20 Attaching an mbuf to an external buffer would not involve any copy of the d= ata itself, so should be zero-copy. Each mbuf header contains a buffer poin= ter, which normally points just to the end of the header structure, but whi= ch can point to any other location in memory. /Bruce Thank you, Bruce. Is attaching an mbuf to my external buffer the only way t= o achieve this zero copy DMA? I also read that there is a function rte_pktm= buf_read() that can read the data from my FPGA directly to my external buff= er, but I don't think this method is zero copy since it requires the CPU to= copy the data.=20 /Gilbert