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 BD77343ABD; Fri, 9 Feb 2024 18:46:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56B7542E6F; Fri, 9 Feb 2024 18:46:15 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2044.outbound.protection.outlook.com [40.107.244.44]) by mails.dpdk.org (Postfix) with ESMTP id AA10A42E64 for ; Fri, 9 Feb 2024 18:46:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d5StuItEiMwSBgvnMoHQcrUDWxBpN3tlj5Cf0cjwrmMpvns1/oCMtC1sPQu2Y/Hp8jL7lp4spBD4v6qgewHVo9sT1RtHviOifMsuceMKCPIED3NiC0phwuv9RO2dsAKziz9iuHC1UHs2g1I3QRaDfVejO55agjQIc6VVeMKl4hHMmlfPVRqhWt0nvkUhNABWg987UxXPSIchrgTv7lTt63qPEvps9HzoOVIwfYxtQBDhtfLjSrERYtKvxF5FA+V1TNE5Y0+fZUCFBib9ywq0sN1Zt1mP3y9epZbPhA34m3xlO8yxY8lNeOoTRd6kiDAWw8lBR+LElruArLAmfI9QUQ== 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=c6TFvML/UD0IXu1HFRXrcYT5Iv4HRj9QktndnklgAp4=; b=KR2ts7Rb6Eayt4o24QVaANq/BAVWZwmI+AxPpJJ5fIQ8QO52fa1Xc4X5poMxSYAk33i/oL6hSLhQbjhGIxNFn7u6x8w7GLbyYO+roNT8RvrrAbVMxugPULKcg0AwOby+XtM7FJzbUh6rcZP3XKYuG4bh1NbAyX0QaWVC2D99q4HMsaDmooyTTMbCXHVjQvPZCjxJzB0ElTexXU+80gM31ZF4Bv5v/VFTAGXIVWDvQA8Qoh3zvIQZGBr3z3Zh1AAIeEBJF75/y9AsK2Ywqw33Vp8jcoFKuixOSYi80QFB8aDHo23/d2rZyDzYTky2tctTLmY7Y7fWFTfBt/En2kJE9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c6TFvML/UD0IXu1HFRXrcYT5Iv4HRj9QktndnklgAp4=; b=2kr+Bhyh38e2yGtsdZeQHis1JizynIzL+Ug1Y4o6b7ZXrSaQKBYN2u5wfapr4VHaf/AZMm8s6QmmGsGOmZ+qe5wn3Ju2MV5MsJnalUXUrBWCIUuD05FixAMp2rLWbLiz9MGKQN7Qmy12REqviMIpYZgp9kZY3pMGPWhbLDSxwTM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by IA0PR12MB8894.namprd12.prod.outlook.com (2603:10b6:208:483::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.14; Fri, 9 Feb 2024 17:46:09 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f%4]) with mapi id 15.20.7292.009; Fri, 9 Feb 2024 17:46:09 +0000 Message-ID: Date: Fri, 9 Feb 2024 17:46:05 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [Patch v5] net/mana: use rte_pktmbuf_alloc_bulk for allocating RX WQEs Content-Language: en-US To: longli@microsoft.com, Andrew Rybchenko Cc: dev@dpdk.org References: <1706836761-29733-1-git-send-email-longli@linuxonhyperv.com> <1707436949-23137-1-git-send-email-longli@linuxonhyperv.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAAoJEFRT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M1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <1707436949-23137-1-git-send-email-longli@linuxonhyperv.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0097.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::13) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|IA0PR12MB8894:EE_ X-MS-Office365-Filtering-Correlation-Id: 65a1875a-cbe6-4a56-33ff-08dc2996ff9d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sDWibGLq2mBZ+zI1qemvL5FkBMUpuM0HzVS5ztiu/TALD+aIgGYdqJCZQnX3csnQBDy897GCoT1hs36uOf99KijRzX6yPSbWWz048LLnB+wbcAZQP+iFN60BOs+y3Mf3AuQzuvVnGU7+zXQnlAhopTTTrkrFWr8BvDllZNHe3HnDtuQtyM86753njK8h9turQRdqozDble1HDjxKbhDknxMZarGCovLRZoSHcD6i8lY1Ib7Cz0xR0UlsIfXyapq6rqq9aF5Qv+ay0NXlW0Q9CcvTXjiV/ypb5p9X3T8j3cfxOLMJbtdW9dZhSYCHdXU+Zhk0Idg8j565Ja4ovFU07ygUbtbHSnEj6Hd129PfKdZMT/uVJV60eapfr9sxxjTIhwxt3B2dYgpz5jVxPT1i2R6kfOR4wjwKgPCb2CjIIHwBYgilyOyWeZ0IJIBE8g7Miyj72AtXo/kgxXLFPS3yhJUA0rmhIWUluZcb0QtppAgWdqZjHa7npQoMbEdgfTwL+hUcy8NI/sy92hz3S+ekioxFtN0BP0OBhnZr5ljF1Vkl8HhZarX70TpbaQ7eNU2K X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(396003)(39860400002)(136003)(376002)(346002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(44832011)(4744005)(5660300002)(2906002)(31696002)(2616005)(26005)(6512007)(53546011)(6506007)(38100700002)(36756003)(83380400001)(6916009)(66946007)(66476007)(316002)(4326008)(8676002)(8936002)(66556008)(45080400002)(6666004)(6486002)(478600001)(41300700001)(86362001)(31686004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VW9GMU1HNXgrejVkMFVNdDdyZzMvOUJ5K2xlRE9RcmNQUzNneklXZXJiaURV?= =?utf-8?B?MTZzNlU0VElCVFdkUUFkRER6dmxLeTg0S3FCdVlXTHhsbys2c0pjZzQwR2M1?= =?utf-8?B?VS9SU015QVNWMkk4UGVnSGc2RzZPa1ZzYkdGaDU4NmtDUDY1OExncTFhZ29D?= =?utf-8?B?eWl6RTJQaHpMMlN1TXM2R0tkVFZGamU0b3MvbTI1aVlCMDdoQ3NweFF5WXVv?= =?utf-8?B?cnd0TFJHUE56ZTBvN3hVUlduWHArTFd5Um4wWFhmMk56d2ZKTjhpL2NMMEdX?= =?utf-8?B?ekZHSm8yb2tLR3g5dVkvbXhxV1I4NzhtbCtZYzBvQ3JXWFluQWF3bG9xUVJF?= =?utf-8?B?RWM5K1BRcnVWc0NCSHZMYVR2aTNIZDc1RWpRTjAzekhQSjFQRmNmYkhiclV0?= =?utf-8?B?ZFErMTVIRXVJYUswY2pCK21EaG82RTVJR0ZFZEcybzBHbkExY20xZXBoT3dQ?= =?utf-8?B?YkZZV01qeWlOTmZkVFZVTnpaT2oyOUZGUnlLalloZFAxeUFBVmUvVTJFS2J2?= =?utf-8?B?WVpuUm91NktsdnpsYmJRQnJ3bm1OVk9oUEdiVXdVbkdIWmVaTnRNRzVnOFdW?= =?utf-8?B?NEU0QUppZ2pTMW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cXYwK2JM?= =?utf-8?B?b1RHVnhpUUJld1VmemJKbG5OVUpLUFp1ejJUQmpGOHFtODNNSHhwQm5jVFdo?= =?utf-8?B?MjkyRG9zbG1iclQ5RGRtenJQaDVjRzNlT2d2RFk1T0VtbFZQZ0RRNzJCRjJU?= =?utf-8?B?WGFEdDRJWmYvUGV2a3drRGhmc0EzMEwxb3dVOFpyZVd4aWZQMUxJVERnMkJI?= =?utf-8?B?ajFHN3ZuRWR6KzIyNm1pYVc0RmQ3Uk5rcEZzcDlqTTBQQkNiOEtZdm1URm53?= =?utf-8?B?R2hsa3Q0ZjhCanI3RlRBcmxpYTBQSTVqdEZVR0tMdVVlWnZCTjlzMHh2Q0dr?= =?utf-8?B?U2xDeEhoTFFnWkwyZzJjZ2tZTVR3bUk1d1ZrcWhJNnB3bW82T0xNblhNSWQ3?= =?utf-8?B?MVNDdmk1UUllOFpIUTYvQW1FVTBnZFN4eURnVVhtK01ERERwdjVyZ2twOFZm?= =?utf-8?B?czhSeHU5TzhCcnVxM0NhN3VJTU5mSDNOTnBpNDFmbnpKK1ArcGtyZExYM3l6?= =?utf-8?B?OG44dzFmR05vQTNOVnBlbjVBcVh4OXNkU3NPL1J6RXhJOFFKbnoxd0FOWDJ4?= =?utf-8?B?QmpwS2ZieFhoUEJyaERiQTg1ZTFMRWNqWTVVVmt6T1VmSmI0c3FYTU9lQmo2?= =?utf-8?Q?dr0YbYfKjGVpAjfv4oIB0vZHr?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65a1875a-cbe6-4a56-33ff-08dc2996ff9d X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2024 17:46:09.2164 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lkvQAsf4BsCeTT2F9mhveHZWaEWlGYehZEC1um6LfMyD5FG2G6ur1SmznaDzXWVl X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8894 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 2/9/2024 12:02 AM, longli@linuxonhyperv.com wrote: > From: Long Li > > Instead of allocating mbufs one by one during RX, use > rte_pktmbuf_alloc_bulk() to allocate them in a batch. > > With this patch, there are no measurable performance improvements in > benchmarks. However, this patch should improve CPU cycles and reduce > potential locking conflicts in real-world applications. > > Signed-off-by: Long Li > Applied to dpdk-next-net/main, thanks.