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 1A175A0C41; Thu, 18 Nov 2021 11:45:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 823BA40687; Thu, 18 Nov 2021 11:45:49 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2042.outbound.protection.outlook.com [40.107.223.42]) by mails.dpdk.org (Postfix) with ESMTP id 9121840395 for ; Thu, 18 Nov 2021 11:45:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EzoSwhjNTaLvpjkX/Oto+P3bSREubfn+NexBokFDxYyCWWiruOrHhOpGJy2D9UFC+zSHZqWiybboHaGcBUAg1oU3ClGR0ztZgIO+FVGSn1/8upgJ/ehFk+sPZsUoGH0yucy4e1uUwYKHWPzzH3Aeaf4590/fpecIls6kGwjAuFSWNzpE1LMWQMfuhGfT/RJaJtQKWyjowQHUg1u825bs9/Q8O6u0IU8m4QSELippVFD4Ggf2TflkFM0+50cYekxj8jrNLX9X33D4Z8njeFFPGwew+hlHR0sPn3sAIqkjQtyPJHaVLhVvcg/O+ov4gQWX6CQYnBq1+RIkwqjentRyRA== 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=HoFtutNMP17dxCwy4kF1fM4T+uLHH4hnvlan1K08QXI=; b=FmqoDTwsDoEm0RfCYOuK0BJkNhmu3O8K2lt097Sv+QebqmtJS89+j+YgfTfJpd3aleLRBoHhI0DRqHePi5dUAkMDUwwoUIsnlTYDzpzR9Zh3ko6XXEGRSpDRqvOeU4Yd70LRgkRzpuwJG/VmbQwAnxkSw5FS3oI6KVdkjBXSpbwTj2lw4FLOw4NNzge9/s0d/NgR/QwYm4WIO4jHDXf7lKidnZsr1lo5F1yJMk6FYPyNSY1oh/DIugD7uJ2HuD7ES+r1Le+5iV99AkRzVg1R5y60rWhLIQucPYPu49qa0JUNM5MYrd1Cfjy9cSgF84ZDZFH4+UreVRZvdKrQ65XU7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HoFtutNMP17dxCwy4kF1fM4T+uLHH4hnvlan1K08QXI=; b=f1A9BcaLf/RMJqf7nFpdVkL/N0h45YfUFPiB5UpHV7Ec0dElp/vCkQLkHLwKWtzso0w2R4BRJnBVUQflDLeaM8Dpu/cPIWIyOoLNYgsFNwlrsQ3XTANW3zptZhzDhG/9uLskHb88JG1/ZvaQz9Sp7b2SWApMdP60ubOIx1FkgylrpZInz4gigSAAl0UVZvr74d3QC63VCNJcx58sXAynOYlcokgLehs0t/evLJtaRCUSKJXumKI0f/60BuDQ8rLhJMA+M6Tm1uzgZ6FO6PSAkUMtrl0zvAV2Y+rEP9BnZMPAvyR88vz3EmDT4V8Nly7e25O8oGt9ocdlW+jAA7tl3A== Received: from MW2PR16CA0029.namprd16.prod.outlook.com (2603:10b6:907::42) by DM6PR12MB2620.namprd12.prod.outlook.com (2603:10b6:5:42::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Thu, 18 Nov 2021 10:45:44 +0000 Received: from CO1NAM11FT008.eop-nam11.prod.protection.outlook.com (2603:10b6:907:0:cafe::71) by MW2PR16CA0029.outlook.office365.com (2603:10b6:907::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Thu, 18 Nov 2021 10:45:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT008.mail.protection.outlook.com (10.13.175.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4713.20 via Frontend Transport; Thu, 18 Nov 2021 10:45:41 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 18 Nov 2021 10:45:40 +0000 From: To: CC: Elena Agostini Subject: [PATCH v2 0/1] app/test-gpudev: introduce ethdev to rx/tx packets using GPU memory Date: Thu, 18 Nov 2021 18:56:12 +0000 Message-ID: <20211118185613.3246-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211118015228.30628-1-eagostini@nvidia.com> References: <20211118015228.30628-1-eagostini@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bea59b81-9b79-423b-276d-08d9aa80911b X-MS-TrafficTypeDiagnostic: DM6PR12MB2620: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +nXwvrsm7xtcTSdeoLz55lYJT546yAAmd6HBj/xvqrthBvMkgauXcgcltyP1OlTBvPexEsE6JvloXUWPyykjL0QnO02rzL84yiiQTZ25bFXQhHcYNuaZSJaEKZ4SSEq5ubCSJfBU68Nk7dGkzMI69fdCY6EGFUb/uMrJSHlg3y4vu1qxIiZ9sPJ/QubcMGQfuJZ0r54ChPK9x1khtdDMO0VDRoQ4N6Zgd3kQ/IXHO+Imn29Y5PpB+oBGm/ranUT7HUQ9f4UCUDTelIJNkRe04HahMxNkqkAJI4pbrBPTZmKGN5DSES8x8fuiZH5RPRr2Ov4hN8MAOJBbtwGbE1EOanRRtY/+onSIXJG3+3YIrZyitcUhX0/kisyrWv/Ki7hLi9NUMCnqYdguRj6szzf9bMLA4rQ5X6MZiRkqLpzDaFVIHhL2VeFTMpLgnBwhq9MQ78QrrrVSPdU4MmizTR411AcppRyQlkA1DNCrpzMWaDMhHJd9DW9KaNha4RPb8oLDHIteTXBLnBU8yhTohP5RJTN+VF0UiTNGIdWnVw7mQn2Fes5ueX5hDiOZ7/qGLKPF9HZwSiPV7wrjE6Fj+gjuthhel/9CGTMsdZnxUlv5VeoxEBLFfmXL5G/LRLuP+Ck87CzDgbAp1PG++//XZVB/sVx1vedJpi9pz8ZhIzzLq1ZAB7ENwf0aSFWXpQuFBhNOQG6OKyw9qtAyNS+Q1TEUOA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(2876002)(2906002)(36860700001)(36756003)(16526019)(70206006)(5660300002)(6286002)(356005)(1076003)(8936002)(186003)(336012)(7636003)(6666004)(55016002)(70586007)(8676002)(83380400001)(26005)(6916009)(316002)(4326008)(7696005)(508600001)(2616005)(82310400003)(426003)(47076005)(107886003)(86362001)(4744005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2021 10:45:41.5538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bea59b81-9b79-423b-276d-08d9aa80911b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT008.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2620 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 From: Elena Agostini This patch introduces ethdev in test-gpudev app to provide: - an example to show how GPU memory can be used to send and receive packets - an useful tool to measure network metrics when using GPU memory with io forwarding With this feature test-gpudev can: - RX packets in CPU or GPU memory - Store packets in the gpudev communication list - TX receive packets from the communication list It's a simulation of a multi-core application. Changelog: - Address review comments - Minor improvements Elena Agostini (1): app/test-gpudev: introduce ethdev to rx/tx packets using GPU memory app/test-gpudev/main.c | 477 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 458 insertions(+), 19 deletions(-) -- 2.17.1