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 4603B440A2; Thu, 23 May 2024 09:40:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34B1A402A8; Thu, 23 May 2024 09:40:53 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 974834026B for ; Thu, 23 May 2024 09:40:52 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 6DBD22099E; Thu, 23 May 2024 09:40:52 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 23 May 2024 09:40:48 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F491@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v2] net/af_xdp: fix umem map size for zero copy Thread-Index: AQHao2YTmeB1E66cJUCYtzW336D4ZbGiCeoAgAB1C/CAAFvw0IABl/8wgAAGuuA= References: <20240426005128.148730-1-frank.du@intel.com> <20240511052618.1890677-1-frank.du@intel.com> <0d02e8c6-0ef4-44e3-9dd2-94685b46136a@amd.com> <98CBD80474FA8B44BF855DF32C47DC35E9F487@smartserver.smartshare.dk> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Du, Frank" , "Ferruh Yigit" , , "Andrew Rybchenko" , "Burakov, Anatoly" Cc: "Loftus, Ciara" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DP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