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 6D1CA43279; Fri, 3 Nov 2023 12:53:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 517B04027F; Fri, 3 Nov 2023 12:53:19 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2044.outbound.protection.outlook.com [40.107.101.44]) by mails.dpdk.org (Postfix) with ESMTP id A84B240273 for ; Fri, 3 Nov 2023 12:53:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iVhOC/D9urSFfVUnz5BczFtFTvNkfkifzcaYOhyfjcBO+WAef/lte4n12EJzGwDwp34/nfHOfoEiq4tE85ZMVGNcvolnOPsMv6UA+nEiQ6x6lmUB5uslMSkzLIcRzPx+jKMj90ynF9w7+0443UgFzwh9+XIu5PMTer9o5RGzOsbErQwiCwJ5cN3iPmw/q629jbiab8il8wygdXrrsSqHnk7UKqeCpvu21PZILEQBf4LCJp3QsBn9dXNu6R3L+T0hhOLDlbGlOPXuGhZnO7d3QQFMD4h4NbHtYbRqvP6thhvhjdR8jFAvGzpZHy6T74VozhWlRtP4fZDp2vFipIjbDA== 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=AlKDvVC1jWV3chFipO5M4KdusROatiikNnySZ4OT9JA=; b=Q8FaTFIyk5uwKC9+/9NuqdPuIPnE20aycfnLWr2gkMjzuAdR0B9xNFUX+EbGzRmf2HGa31HLKfPihWy/gkXhaAfR21VkCPHbxcBUbPNM6ZX500LBRgmlD3HgKWUmE3Xx/5BRLGYQO59ocJdIajoikjjBrlSnAH0awrtd+09mOE7KdmwpPs+Y+p+pTckJepqNdwdHNyAvzWBPoyXTJEuMiOu/ayqPrcv7rQ1KPavD4Sb4uMWDpGdU34Ix3z61MZlWHA22wIM177wEYdLaSFJda/NMBnqr2AfLCfULBZ1T/ebFzaxWkFoz/27Vb+YESkS4KoXA1mzyUOApOG1Iy8afIA== 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=AlKDvVC1jWV3chFipO5M4KdusROatiikNnySZ4OT9JA=; b=IpeLnzHQV1H/AbmLU+4bVJVeu0cYrHg2KPnMj6Wr8oP67mg9vP3WGsvZ3CSz7Pphng+6h+rmXvP0VpIEHjja2G+fMNsvruH4ubm2Q3Fx5dQTjJxkSOrCIaaknJriezpjxQDAYx3jucCVGn4Aeh65wqxmJuQtvT8yEgXQA6S9y9s= 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 BY5PR12MB5511.namprd12.prod.outlook.com (2603:10b6:a03:1d8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.24; Fri, 3 Nov 2023 11:53:13 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.6954.019; Fri, 3 Nov 2023 11:53:13 +0000 Message-ID: Date: Fri, 3 Nov 2023 11:53:02 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/3] introduce maximum Rx buffer size Content-Language: en-US To: Huisong Li , dev@dpdk.org Cc: thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, liuyonglong@huawei.com References: <20230808040234.12947-1-lihuisong@huawei.com> <20231103102759.18886-1-lihuisong@huawei.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/6BQJkdyEEBQkE3meNAAoJEFRTPtCK Km/6UdcP/0/k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uyO 8Zk= In-Reply-To: <20231103102759.18886-1-lihuisong@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0152.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::7) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|BY5PR12MB5511:EE_ X-MS-Office365-Filtering-Correlation-Id: ecbcb757-7139-46b8-8987-08dbdc637517 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mKKdJYFa2SUCTkDyGHYcG3YdXTOnIGMD8Z2biu9P6h7ohm9mgiD//i4VFCRaLymc1e2XbtyFw2Kn+2KVrnTbGOmqKS8xlz26yDbvrI/1Bp4sDeVfKyxAopFgtVhW4Sk5Gvp31M1VkNXMKzdL6oPj586SiEaDuj5zr/9CGLOS6xi+qUbGfFqjyEXKkka0CCWxQW7B9QcovTvUdWbNpYlV3Db4JeQssW9xukwJPBC4yFMGaos1BPAa68EI9N/7ZU4q1xJQDZNJB3xyfhEcXsKlBYMx+B9JTixwhzDLG0QO5myi9ap2WOX+vUxqLU4H00+IQ4PV71EhO4crqZ3zd+h5aTUOouAZpqXiV7DDQInYxJb4Ef6rsiPNjEw3q51uhIXb/7XU1wrMADolFPpfY3y9hgsNMRq2pXRnWtGDJINOC1uxX/Zjy2znd0nJapqdsTlKrLYEJoHTfeMfoh+1wJt0hq2RBFd25LWC+nK/vwtzvIY6ISYsz3qeE7RzkzXyLS3FmufH2zAS7lM4+hH3y8E9XY14sWhWO/5F21Ffp1tkTrqngqYsUClFIfevwYazq6uehda1omHlz4XvrrdHo85WFa1jS/9V5sSV3x4oeBCo3MRe/YcSjCzVf3mBsRXsdp0MJTNADU8tEdNF/E5aPcjbcg== 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)(376002)(366004)(396003)(136003)(346002)(39860400002)(230922051799003)(186009)(451199024)(64100799003)(1800799009)(53546011)(6506007)(26005)(6666004)(478600001)(6486002)(31696002)(2906002)(66946007)(66556008)(66476007)(31686004)(2616005)(36756003)(6512007)(38100700002)(41300700001)(44832011)(316002)(5660300002)(83380400001)(86362001)(4326008)(8676002)(8936002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R2JWQUtqTjYwRThWU09RSnRXL0lhNTdkTTJ6N0dWSG03MkRSKzR4MmVSMThZ?= =?utf-8?B?YWJNaURNMmdLVjNld095bFo3YTU2SUNQK0RudVVJSVZBT3RFNUtkQ2dOSVF0?= =?utf-8?B?SWFHRUFBeXpudm5tOWEyVkpKYWxJNTQwYVlSZm4yK2VYb09pT01KczVacDU0?= =?utf-8?B?Q0E0Wktya2RBSXEzZGd2N2l6U09QWWVhQ0NBSmlpOWRxYksySWNEbU5iSmhl?= =?utf-8?B?SkpwT01xOEpYMzdTa2VvR3MvQ1dublJLOTJmM3FUVExrRytGWWlaWVhFQUtx?= =?utf-8?B?ZHhTVzRLelJPelNKc01XcjU3MGtwU0Z3VEs3TS9NZnJpN2RpQkpVV1FIemw4?= =?utf-8?B?dUFhb2Z6LzlHRTNYbnVVSkhUTjNGeTl5V2l4RVhqMlB6dnVPaGR2K0VCZm1H?= =?utf-8?B?NXNVZFAyRFozMG5iQk85V0VlaHNmZEJxOExhUGFQZzgxWjVwaXdqcjVqSGVw?= =?utf-8?B?bmlVRWxiOExWQnV1WDJVK3BVb1daUDYwa1orVFhZUlloaE5obWFCOXBmQmFM?= =?utf-8?B?VElmZUYyaGZYdU1UOXNROGxNTHZabXR3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SHppSmQrWkgxOU0weDlZbFk5QjJLQUx4cjVV?= =?utf-8?B?Z0hSVzJuTjREaHpNb1ZBZkxxQlp5cGhIMUgxSHZsWjVxdk5scFhZK1dNbDls?= =?utf-8?B?NHptTTdaQ1d3SHBUZERsc2dkOUQ0bHVKVGpadFpyM3hkaUk0TUZrK2M4MEIv?= =?utf-8?B?aGNucmtBV01vNnREWHhNT0dvdWFOcy84anlhQ0dGL0hQckZiM3BtTGRFZWhG?= =?utf-8?B?S0ZicUZJL2djNTJETVFuVlYxdDQ5NkVtVlZOZGU3Q2U4cFVMTXB5cnBKMjBp?= =?utf-8?B?c2tHdFd1R3VUM1dwWitBcGFPRzNEN2hNa0svY1F2cXFONkNrK1RCWHhmL1NL?= =?utf-8?B?ZXZ2bVNhWkVaTWpFZmZWQXN2N2hsL0hoc3JXbm5Wd08xMUNrdUFhdENvRDRi?= =?utf-8?B?S1BtUmdFRGNnVi81MkNzYThIU2dFcjVGNGl0MjdkTi9VYmRGSnc4TDNjcDcz?= =?utf-8?B?WkxUQ2p2Y0M2SVhPWTdtN3U4TU1uQkpiVUNVMWUzbFRJT1g0VlZvZUV6anhK?= =?utf-8?B?cnBEU29yZlpnNG1YejcxTXg1bTF6cDY0SSsrRG5WRHArZ0sweWh3ZDV6OHhB?= =?utf-8?B?a0NxNnFmOURqRTJnQ0NzNk8zL3JiYTZkdllmRXVSdVc1QUFrM2NtOVNlcUVv?= =?utf-8?Q?jmmS2KDFrRtFlVih2JQsUVkMo?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecbcb757-7139-46b8-8987-08dbdc637517 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2023 11:53:13.0010 (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: iRcTX2i6YuhIaNE3wZ8BCpQqc6MVVrm6KPxy1Gh9Z83h+kD4SOhu3RVvmHbZEv7B X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB5511 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 11/3/2023 10:27 AM, Huisong Li wrote: > The "min_rx_bufsize" in struct rte_eth_dev_info stands for the minimum > Rx buffer size supported by hardware. Actually, some engines also have > the maximum Rx buffer specification, like, hns3. > > If mbuf data room size in mempool is greater then the maximum Rx buffer > size supported by HW, the data size application used in each mbuf is just > as much as the maximum Rx buffer size supported by HW instead of the whole > data room size. > > So introduce maximum Rx buffer size which is not enforced just to report > user to avoid memory waste. > > --- > v5: > - fix a valiable name > - fix the log level and context in rte_eth_rx_queue_setup. > > v4: > - fix the log in rte_eth_rx_queue_setup. > - add a comment in rel_notes. > > v3: > - fix some comments for Morten's advice. > > v2: > - fix some comments > - fix the log level when data room size is greater than maximum Rx > buffer size. > > v1: > - move max_rx_bufsize to min_rx_bufsize closer in struct rte_eth_dev_info > - add max_rx_bufsize display in testpmd. > - hns3 reports maximum buffer size. > > Huisong Li (3): > ethdev: introduce maximum Rx buffer size > app/testpmd: add maximum Rx buffer size display > net/hns3: report maximum buffer size > For series, Acked-by: Ferruh Yigit Series applied to dpdk-next-net/main, thanks.