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 18C99425F0; Wed, 20 Sep 2023 15:11:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E125141156; Wed, 20 Sep 2023 15:11:00 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2064.outbound.protection.outlook.com [40.107.93.64]) by mails.dpdk.org (Postfix) with ESMTP id 5ABAF40A79 for ; Wed, 20 Sep 2023 15:10:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V0f77su8R0HPG6kQOopC0gs8YEg03i49VjIbeOQ53sxwNw5dGUDSSyWXKVeCokMg0ogGHed6hpyxSP6edj34xBZRzbGyZDKwXAAD10cBV0iNH6NGlKFJcENj79WeyfsbG1TYLEaYF+JOasCF26OWStKjiq6ot7XmXlOWq54c3uSNPlyCmvc9YTZ7oW1xdV72wdlJxbXNZ1whIYCnai7uNZZZXkEGXimShMQNn1vyPwXUvYAcIdFh8VJqYmRbmu2U4eIjVJr7BH/zvgA+gqZkCkS2UdgWs6L00+tvTLf/SRqy79diHhG1ar6gccVC/4ZkAcO5Ip+rvh60f7/ERnr6Eg== 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=6q0VwYIbU5D53prT7gg7JhDSpwe6uM/VW3TTQdNRUsk=; b=TDq6uo4Km+Zh9w4QnngKXEorArG8s9OVglh1vfMWLv3L/aJN94kp4hV8hy3cJzZWtccuOigsBjvlfEHHs52VMeQgBgEQEy+vo1vfjTqgV4h6n+Q16n6FmPM7hOh+1/wqtfgLopXRG5GhIpPFDJwebXq+sWLAfV1eVk79Q39AYcQs8Ct4ijzoMF2pGNOwCJjWldwzF7NU+L8tXZVHTSQAmCs40qy2eLOgbDeyild0aLPW9CVAbf9lVZlUTU1b3b59CPVRTrYR1b2IT+t4ViaRWZVssev5r2Dwqb/cL3kIXvR/EQ+8l0yKP6TxDoge8EJPrPiv6dPnjoZ3HPSYplUNcQ== 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=6q0VwYIbU5D53prT7gg7JhDSpwe6uM/VW3TTQdNRUsk=; b=OwNWN/+1T2kLJnSEAWlXwsfjgJssEw8gUUzJaeatKae0HvSfMIuVsErQUEryju1Y7C/ykH4+Ngi4qptKZBeLmY5GChsyuNS8xJJwpEvb2BlOqzTY5fHI0tI9NgdSDPEjj/BiCKUS/RV7iYCs/hHrvVCtw2wxwCSOmPYHMbHJCs0= 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 SJ0PR12MB6808.namprd12.prod.outlook.com (2603:10b6:a03:47a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.28; Wed, 20 Sep 2023 13:10:55 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8%4]) with mapi id 15.20.6792.026; Wed, 20 Sep 2023 13:10:55 +0000 Message-ID: Date: Wed, 20 Sep 2023 14:10:48 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v12 1/4] ethdev: add API for mbufs recycle mode Content-Language: en-US To: Feifei Wang , Thomas Monjalon , Andrew Rybchenko Cc: dev@dpdk.org, nd@arm.com, Honnappa Nagarahalli , Ruifeng Wang , =?UTF-8?Q?Morten_Br=C3=B8rup?= , Konstantin Ananyev References: <20220420081650.2043183-1-feifei.wang2@arm.com> <20230824073629.2577864-1-feifei.wang2@arm.com> <20230824073629.2577864-2-feifei.wang2@arm.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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQ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FwnoUJqIJY9wTJo5gD9EgGIbItv3qWTq29dihLYpzd6dqB708k7 4RBz9051oLaFVGkguFw/tXmA17nx+c2uR5jx8wb4j68umG2X++0dSta5eHAVhmtXvrqPW6Ku 3FQ= In-Reply-To: <20230824073629.2577864-2-feifei.wang2@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0298.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:391::8) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ0PR12MB6808:EE_ X-MS-Office365-Filtering-Correlation-Id: 7586b5d5-4880-4f82-db5c-08dbb9db05d6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9pYSbr5yvZ/AXwT2+Kv9IHai0twjDKNzyn0a7kpXgmTF72nRdh31Lqa/ySbGNqHWiuBsQPXkA1Z/dnvEcL3O5PMnJUa/NpJqOvpoLkiR+uLYGJlIBIHLKMLKjenlB1ZTNY8w+29BHVuEk2Y0apoCG9fcD+Ik/4jfaxagzHhYZo+EgQ7CG1z4DfVlIbTgBLjHJuaoSJa2StKO5+QjGz/ScdMRIR6WbdGXmDEYqOmDNycCcUi2sO2/EYAhI+8glxQc80QYcwx6u/aars5/77dVq8MPGGDXr8PlwV70tO7xcInCRFrlJbs1CekDzZY+3etQOMsZciZnMaujPRj/RSPewDoAEyzWj9UyQmPEiUMRsUxkiWEEzuppwml5hY4ItVqUjXl5/oV8/RZqKBm52hDiecPO2EqzwSYKjPQQ2wuYk5GulyM20hSh3zY9Q6tk2biYrx9WXKIKrAKjaKleaDetGugZ9Xr/NbXTg0tMEC13oKx3J0KXmASKqQg7OitQcspNTC5h+xfEgtjjpKQQSoz6gYaDHbPAiTrKVXxT1bE7BvMq39p3dsOUMZ2gBS5pw9qhXpAxcaOBdroxPGUStG5KYcYwx+F/nbDnEg4NBcw0u5gU+/eWZkRKRW18FMBIypP808dSif6fXO9vfZlq8G4Boz09dMn2THYYynx6I+V3VVcgmqAWBLNgEylLTzm7uUWF 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)(346002)(39860400002)(136003)(396003)(376002)(366004)(186009)(1800799009)(451199024)(31686004)(6506007)(6486002)(53546011)(6666004)(478600001)(36756003)(38100700002)(86362001)(31696002)(2906002)(4326008)(2616005)(8676002)(26005)(6512007)(44832011)(8936002)(41300700001)(5660300002)(110136005)(316002)(54906003)(66476007)(66946007)(66556008)(23180200003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cmsrd09jdFB4VXhHTloxL3lHbzR3WlpMRk83NzI1MGFOYStlYUgwSGlOcFhz?= =?utf-8?B?aU9ORUZBaFQ0QnJWaXBzWmE1d28wMTl3RnNZQkg5VVMzakhFN0lQN0UxZVZC?= =?utf-8?B?WG56M1RiZjhGSDYzV3ZlYTlacTJkMWZwVDZTSUNDdjVDQ245MzVWRWhCZjVq?= =?utf-8?B?Z1BCUlFrOGo2YzdqSjY0elI3c0JoM0h4anRYZ0tWZTIzWTczWXF1QlZFeWhh?= =?utf-8?B?RkxVT1hkb3l5U2N2cXdvWFV6NjJOVkttSHdva05UV2c4MUgyRmhVNEpXMEJ1?= =?utf-8?B?NFRpeHBTOFY3Q25oUUhETDI5Sm02cHIwdDVJSWwzTWFUNVJ4TkpYM0d5am9F?= =?utf-8?B?T0tEblgyTU9QdG0zUnlBOVpVMjA4QjJYZUVDTTNtTm1vanNtS2xNcFJmTGdi?= =?utf-8?B?MStPRys2MlJoS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yQjc4Q3JWSGppNXdzTGlNVndQcUhyTHlqcmwyNHQrWkFScVlEbStC?= =?utf-8?B?bXFJb1BGSlRSZ3NRYnN6SDFpd01tdHQ4S0htZ1dILzdZT1RqM0tYQjF1b3FU?= =?utf-8?B?bVdsM3pQcW1Wd09Wa3NjVm9wTlhqMWU4WndWc0lMMjhYZHpTbEYyak5zL2Yx?= =?utf-8?B?N0tqOHJLQ0k0ejVDMlNHSFpsM2tkMGlCaER5WHlHc3FSL3R2cXpKcXRhT0pB?= =?utf-8?B?U1ZkVi9KdGw0bEUwNUFtK3VlOUpnWUFseWdMOEp3eHluWDA0UkZ2aXNYRjV4?= =?utf-8?B?VjZkK1UwL3JYWmljcngrQ2kxMmt4Q25Kd2xNbGphOG94MGsySVlyWUx6NFZD?= =?utf-8?B?QU1nUkhmbzVna0dha1M1TmtqRjFTa2RGNEZvd256OG9TamZUTTFWWGp4NG5q?= =?utf-8?B?UWx0TDVjOTEvbHFMUUFHVTJFZWd5dWVBcHIvRGdWT1ZMMGxvM3YxODRXc1hk?= =?utf-8?B?NyswNkltMkRpY3NWNHNEbHlIY2ttd09CbVlsMCsrWHVHeWVDSHVUUjJBU29o?= =?utf-8?B?QUJrZTVIUmJzbGpBcG5vcVVRODVDdEJtSGYrbVhKdDNwVkpIbmdZbUFaeXBz?= =?utf-8?B?RXFqUXNHV282UVFyaEY3WWxVMHlCTzBFTG1qL3BZckxFMVlpOERKazBtTkkr?= =?utf-8?B?NW5lTGlnSVRlTC9ITEFWRUs4T29qNHYwU04zWmsxc0FuSmlSRDFEMDErWCtR?= =?utf-8?B?eVhwb2V5QzB0VGVTdEZPdlV5UDJKdVp0MktZUUZLWkRlN2RpTHYzbFA3OW1D?= =?utf-8?Q?aeAze55CyO/DrvunupUl+i8UF?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7586b5d5-4880-4f82-db5c-08dbb9db05d6 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2023 13:10:55.2560 (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: kMtwM6Imxdu8alphDhBNTkfXPY2F6Ecc+LFs6sa7TfK5+gZNZv0MdFFXT/St02s4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6808 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 8/24/2023 8:36 AM, Feifei Wang wrote: > Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs' > APIs to recycle used mbufs from a transmit queue of an Ethernet device, > and move these mbufs into a mbuf ring for a receive queue of an Ethernet > device. This can bypass mempool 'put/get' operations hence saving CPU > cycles. > > For each recycling mbufs, the rte_eth_recycle_mbufs() function performs > the following operations: > - Copy used *rte_mbuf* buffer pointers from Tx mbuf ring into Rx mbuf > ring. > - Replenish the Rx descriptors with the recycling *rte_mbuf* mbufs freed > from the Tx mbuf ring. > > Suggested-by: Honnappa Nagarahalli > Suggested-by: Ruifeng Wang > Signed-off-by: Feifei Wang > Reviewed-by: Ruifeng Wang > Reviewed-by: Honnappa Nagarahalli > Acked-by: Morten Brørup > Acked-by: Konstantin Ananyev > Acked-by: Ferruh Yigit