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 DA56B42ABE; Tue, 9 May 2023 16:52:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7816342D31; Tue, 9 May 2023 16:52:28 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 1ADBA41151 for ; Tue, 9 May 2023 16:52:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683643946; x=1715179946; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=vfQm1bK3CKLmSMDED+lal4pHKoCPpcCJQS+hR6VyK7I=; b=LTg8OitoIfXuXm6GMOECb+3sBVQR18UKuwfREzUwnhHFTGy9YtZWfUZE SgOLi3rF5LDeRrdgmrDm8pTjUM1muvgBIgG3ekYMTJijyqk9dGDMivtsd ixck9mDUYn6z9wUP87kJ3Qnl/YV6XlX8i855mfIGew+Yhjm0gyjEjEBIa wtYj3DKNLWRzCm2Md3S6xHcmZtqg0QhRjNofrhcIeazEzgRI7c51Ybqi5 sauYHdzwkdvOFKSYtIVXcuVjpXxOR2WRK8Qp+vSC3VF50rNOvkcIJyrmh q+S6MM7nCUjgvm1saLRcuLncCmh/DEQYUFxvA/ZjmauMDc9LoDJ3mwqV8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="413220283" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="413220283" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 07:52:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="945314433" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="945314433" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 09 May 2023 07:52:24 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 9 May 2023 07:52:24 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 9 May 2023 07:52:24 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.171) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 9 May 2023 07:52:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mlVDNwFwVoRgyQVN9fbGeCVUkO32sSWJc+fS/kuXKKN3HN97VETq5On75W/bGYha16V6w1KPNR4ZxLC62SI1LmkDJAOFp1Ol6lakohSnWYG/jOHGA73/rUzMKSerDkTIj3b3BF8b3fDdTMeNZzUa/piNPgrehO8C/omKwovlmpreghRdd7cBXNggPg7AphgW0qm4MXkFwrYGARFp4kCmkl/LzCDIKPGWKRPuvebUYaJxqmWzVjilbe2GBdeLcseFNPY8tt7f3Lc/Snp2jyDoxofk6lbXNxwDK+c4i8Iyns3xXb4UXL/pHQsnPlK1MwhY8HRtsw2MStnt8QMktK2ezA== 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=jwdijLuUReNCI2C/H+m/fsTIt01CU8G7zPce60+sVjs=; b=XMSE2B6MsJuW3yU9Gx+1Qmnlsb0HCf8dC7fkZxvHOxT4G5OHbk6oQ447yHV+ypQYNdM17JoSruc7s7LFowRDISQGZJUFtnjarHq/MPX/QIWsfnQRfBXpuwHbHle5cqwPPH6p6S90jLZo5yqOrrIQrx8oQ64gB54Tr6kf38CtjQVk3onRO2VAfPLeWImgWh2x7dwSB7/KCtcuuDjuOAUjmLjccXtMyx/cNtgYl7KaYxMbVtD97vw1St4Pc6nh5ebrORnuybwv1DqU4xJrl9n/tvYH+bi+E7+1IimFogDW6KwipGROC+oO8TwwJjSxn4t8W9aY05uFX4Ywwe3IC+MvQQ== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by BL1PR11MB5303.namprd11.prod.outlook.com (2603:10b6:208:31b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18; Tue, 9 May 2023 14:52:22 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::b8f3:958:d2c5:2232]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::b8f3:958:d2c5:2232%7]) with mapi id 15.20.6363.029; Tue, 9 May 2023 14:52:21 +0000 Date: Tue, 9 May 2023 15:52:14 +0100 From: Bruce Richardson To: Gilbert Carrillo CC: "dev@dpdk.org" Subject: Re: DPDK 22.11 Troubleshooting Message-ID: References: Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO2P265CA0162.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::30) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|BL1PR11MB5303:EE_ X-MS-Office365-Filtering-Correlation-Id: d1e301df-73d1-4fe0-6966-08db509cfe37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: srmTK722HMetl4yFBUbA35LGyhWYJuF53cK8/QJFWikiRX+rNLQtovRyEvsDTL8mrGnLYEU34NnKvUKb1sD3Zb5oG5feZ7siscNv3rFwwFJk3bg7w8fexcV8ojbxSeDYpkm3nXaeewQJoVdS9Hi36w4btD809ZQer7aXl6QRoePL6v61RNEU2wBszHhAg13m8g44gNgsBoJblPi02IySrimvm0zjZBEczFpFltiAprv4q3+QMvzrBiCW8dwo/n2SDVVgFjePMQwL68y/CP3uq/YglE2GgfrqesAkfWeNqsmDYDzj5LaXOm9PSXxUbnrnyOEBItqooKjQdzsdg7317w0QR/NuuEKCQViYREbrHcPhOblfQRZCxX1fYl5wl9WxGnBvLehKJV2DiDIBBVfJOU5+FADgYr/JP06EdIdcxOPbwVTCq+zoCGvSgMZlIYD0kkMHJoMeYuyVWoLW/KpRa9f5Y6pmbv9kYBGy7uDqVRXU1oSMA3gz8aOta1wCcoxX6zEdoDk8zdeK5wvuj+8EOdApC3Xb+UQ4u8T5elAKKj+cWNp1zqBRtOSsaS2C59IX X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(366004)(376002)(136003)(346002)(39860400002)(396003)(451199021)(83380400001)(186003)(66556008)(66946007)(66476007)(6916009)(44832011)(6666004)(4326008)(316002)(38100700002)(41300700001)(5660300002)(86362001)(7116003)(82960400001)(8936002)(8676002)(478600001)(26005)(6506007)(6512007)(6486002)(53546011)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?F2KLujkjT5as751nLLu9gZlxllyEZ+eJWSoR7LHznDwPwSBm4TewKwMm6h82?= =?us-ascii?Q?a80yBh9Y0hhUVfB771xwK68FIBiW+J0CkmDyyW9HEPZ3ljnPivCaDBU5WWAI?= =?us-ascii?Q?xEqbX7jQ+jNnzuzI6xD6R7Pr9l056/bo5UOthoPHO42wJ+mOrbZrEp4I3y8L?= =?us-ascii?Q?1A8fpDP09sxD4iTTAHfvOn1li5ywjEkhfU0J8DjtK7cWxVoowoVRFKiOUjnE?= =?us-ascii?Q?DsST8zjcJURWqkhl0yvVKkpeJRIL8a8c5PGC8Ml5p/dkgyuqVgcpK65sMk6q?= =?us-ascii?Q?xGGGiePPXWw42C1EZ1UZOkrD3qxKF7ay3Sy0GtJyncM/cPREAEByP1loYfR+?= =?us-ascii?Q?3REAr3l5fWezpw+UPxBD0U6CmXT25gZuw9k+MPQWmG4seKuoRw/IXn337ElS?= =?us-ascii?Q?NpCNHjSUv8AEan2yVydRta/JWzq7a2k960MW9vXLIIKGuaOmnItY2dyQz2ID?= =?us-ascii?Q?csrlDkJhc+z/Uf5nxweLpFB2pFK7Pk/l5s2p1ZyKz5CwpRPejGd+/8VvWDJf?= =?us-ascii?Q?8AEXixxRECoAw0fMyftzXgMuCdnUGhe4bj8LDWn5tEjyyBEddcDy4GSV64t9?= =?us-ascii?Q?l1TmX6uDNNhxOlRgOdoRgn01mTmJDNEr6aVT26XEf/sD3tP28vGkv76iaubF?= =?us-ascii?Q?qUE/cxe8+S3uY+C5+UfxBvwuRg0AjdNQHO33ga8dYrEQhN7XGiTUWPwEcB4+?= =?us-ascii?Q?aMSoMmPSgXoSKOm+BE6hsLAPtdcEk8T1pu2yoX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-ascii?Q?Mw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: d1e301df-73d1-4fe0-6966-08db509cfe37 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2023 14:52:21.5995 (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: yYF1D2amPD2bLbIuesVHsmvycm3gVkxQlqd+s0kx0RBl2XyTGABThWSq8SqdI/Nhc718JfUvhaLOwDUNVMKnsww7bPIKSS+OZqYHLpv/3w4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5303 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 On Tue, May 09, 2023 at 02:16:39PM +0000, Gilbert Carrillo wrote: > > > -----Original Message----- > From: Bruce Richardson > 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: > > > > > > -----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 > > > > On Wed, May 03, 2023 at 04:53:20PM +0000, Gilbert Carrillo wrote: > > > Make static returns an error (see attached). > > > > > > v/R, > > > Gilbert > > > > > > > To help investigate this issue, can you perhaps include the text of the full build output when you run "make static". On my system I see libelf listed on the linker flags when I run "make static", and things link properly. I'm wondering how my setup may differ from yours. > > > > /Bruce > > > > > -----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 > > > > > > On Wed, May 03, 2023 at 04:22:05PM +0000, Gilbert Carrillo wrote: > > > > Hi Bruce, > > > > > > > > Thank you for the response. > > > > > > > > There is no errors when I run the makefile, however I do see a difference in the programs. I don't believe the makefile is linking all the libraries together as intended. > > > > > > > > For example, when I run the ethtool sample program and compile it using meson, it works fine and rte_eth_dev_count_avail() returns the correct amount. However, when I compile ethtool with the makefile and run it rte_eth_dev_count_avail() returns 0. > > > > > > > > > > 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". > > > > > > /Bruce > > > > Bruce, > > > > I had multiple versions of DPDK installed and I was linking the wrong one. I was able to compile my application with CMAKE successfully. > > > > 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 attaching an mbuf to the external buffer? But I wasn't sure if this was truly zero copy. > > > Attaching an mbuf to an external buffer would not involve any copy of the data itself, so should be zero-copy. Each mbuf header contains a buffer pointer, which normally points just to the end of the header structure, but which can point to any other location in memory. > > /Bruce > > > Thank you, Bruce. Is attaching an mbuf to my external buffer the only way to achieve this zero copy DMA? I also read that there is a function rte_pktmbuf_read() that can read the data from my FPGA directly to my external buffer, but I don't think this method is zero copy since it requires the CPU to copy the data. > Can you set up your FPGA to DMA directly to a DPDK buffer? This is the method used by all DPDK devices: NICS, crypto accelerators, DMA accelerators, etc. /Bruce