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 816C343270; Thu, 2 Nov 2023 17:42:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70BB04067C; Thu, 2 Nov 2023 17:42:48 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2058.outbound.protection.outlook.com [40.107.244.58]) by mails.dpdk.org (Postfix) with ESMTP id 628B940144 for ; Thu, 2 Nov 2023 17:42:46 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hrgxXyTJ8azYwlE8JMgtJPHPzhozPYrb15AyaShtGeHRTADtn5f+LQzg/fex7QadaJx+kDyloYOk9b41RL3b8+yUHEhlSNLbpfeGZIY17P0SAwTNohGnFmDzVZL01z/8pcsk9LYwacOmt4ozgzkDkhcp7QrgQw98zvf+uvAK6pGPKq8nJXB8WNs4pgwS23w05+Xb6IaPUrqM4XEtCbUh1kAVGc2lgxMpoRAER0YMcU9UNHMuDWeMDADboxa5l9mvB2R7DUnHw5mKWvh3f3xmq+C400xrt160ZpA+AMWW6O32GrnCjhw6kOYbCnqWQdThwupMIFeFQePVkpQbxmzoJg== 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=vqt3QTHHMB1lwDeNjqQSYNxNG2Lk7r/2f+b+ZfYn+6U=; b=d+nivNgDpTGWjrBFsz7xBa9E0eihabhBsqhQ7QY+tXL0Rf6fKu+m1jZLJaqCKBzew/3L71yGFMipNRNHdlJZ5FzpVcdW7aZcEvyiJG50bN0WAd0tdUDC7o9w2szcSADif2qKmfiq9m06V8cfc/2B0INOP22KcVteY7rUX362KEUaMvrwJyO5TcB7RnfAcgAPeDFOTZStqGjXDnu6OWW/uH71TsCwFVQ68pN060a4U/fhWJ7T0Ffdrx4PBqXnchca5ZmLZm3NNnhHDE4i+2BT6tXKdp7dHdoFf4V8c1l09G0a7tQnC0/b2m5UdxWX4zdSHODrtU4PGblCePNcDQ0biw== 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=vqt3QTHHMB1lwDeNjqQSYNxNG2Lk7r/2f+b+ZfYn+6U=; b=dPj1LPJ8ECElp/BaOTDv5bmf2YfSMGaCRhmVCY86nvdtQzur/8CsHqNGFOGv650oBp1Prbi5bKW9Lmt8oauJ9VBN5EGDgTg+4LE7uDIO68G7yFFDt70k/rZc+YHN6nD1uu09pwzOGjuqWhEKc9CcwXuAS3HoTefU+FaXtSHf0EI= 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 IA1PR12MB6281.namprd12.prod.outlook.com (2603:10b6:208:3e7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19; Thu, 2 Nov 2023 16:42:43 +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; Thu, 2 Nov 2023 16:42:43 +0000 Message-ID: Date: Thu, 2 Nov 2023 16:42:34 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/3] app/testpmd: add maximum Rx buffer size display Content-Language: en-US To: Huisong Li , dev@dpdk.org, Aman Singh , Yuying Zhang Cc: thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, liuyonglong@huawei.com References: <20230808040234.12947-1-lihuisong@huawei.com> <20231102121608.10170-1-lihuisong@huawei.com> <20231102121608.10170-3-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 AQIeAQIXgAIZARYhBEm7aYjps5XGsPH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83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231102121608.10170-3-lihuisong@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR4P281CA0045.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:c7::14) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|IA1PR12MB6281:EE_ X-MS-Office365-Filtering-Correlation-Id: a103d377-01ac-4a96-d181-08dbdbc2bc69 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bHNFG96+SkLHQ/CB/014Vc+1yNNoImSGducZwXJs0mrPsejb3i+6+d0pg+vAGy4VW7t6e7mbzcUPO6xMPpYaIqUFNlOFG/S3JBANb8ERFTzTxNmSG2H9PYRTe+Glb6ZuObK0UO5KAefvdz9R2xthrNJeDanW6KeZ/XndTDbGA4nqAkEDVykIL3arpAH8f6FRgUEMjyUlJaVAnlSLfzU7G0UAebH/SrqchP9nFlq5fnH0dZsaqxbb/yUo7SD0s4dwmjn0lV4V18/vAYOnccUAlXOsYR8LTRG6jxe9x5rFf2WVY6ksXrDCXpy700Ym7JsSHMKA0w/1Df7nukInMMue5FplsJjvsb16ND/ckKXjdrpYL9HjvxRdW6gB33jXHWCbcVsC3Q9hc3NoF+Tv57O1ILfV6fOGqCd+Ak9gltjYHZSXEm/RXAqcUuy0uig1xQQSZWLNy5E7c/7qMc2KSXS+nUO57xXn7nJYn9kZAjfOwNZSiNTC6KI9iFdEO1yMRlrO6X10cG0X/PHCgEiX2OjRGGAL2SzYoe+RKcF0NH+ivKe+RhsDIw9xwqZ4FAsAZyO1xS5FVXqYN7S5Vd5TTQ4wLhHwY5ZdZoTTDzl3CmDTvSu4VrIK0mzJakhr+kW7Gz32PZy1HIh5PSP0QDIHKch9zg== 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)(396003)(136003)(346002)(376002)(366004)(39860400002)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(31686004)(66556008)(66476007)(4326008)(316002)(66946007)(110136005)(478600001)(53546011)(6486002)(6666004)(44832011)(41300700001)(8676002)(38100700002)(8936002)(6512007)(6506007)(31696002)(86362001)(2906002)(5660300002)(2616005)(26005)(36756003)(83380400001)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Rk5IcWFMZ21zWVlpL0hBZ0pzVDFad21XREN4cUh0SEpwRi9CWHhtaDNhbHVK?= =?utf-8?B?aUdzWXhrUmZIdUszcGFOUHUvUGI3dUxEZXc1bWpNQWhLbHlVUWROeEYrNUlY?= =?utf-8?B?eGp1cXl1eDQ3OEJvbjF6b1NNTFhZRHlpZXY0WFZIVytycXR2MHNZZXltOWky?= =?utf-8?B?ckVVZVFXaWJHRUdUWDZUekt5SmVQTnAwaGFQUkpmQ0FMM3NnaUUwQ3dUVzVC?= =?utf-8?B?dUh3VWFMRFNtVkx3RENLQ2I0UXU5RTZWN1RyVEV1a1dXd2hqRVFxaVY0YUEv?= =?utf-8?B?MnA4bHZjQ1NNV3NQQjBRNE1QQ2ZJM3EvNG1LWXdyeXBxN0kwNndzSUJ1V1dt?= =?utf-8?B?eEVVd0tyRWFtb3p0VEtqWmsvamFrL3h0R2xQSmdyK2MxNWZLTkpuTk43WnF2?= =?utf-8?B?eDc2WVpmOHJJdTBGaEJaTWJNQ3RWSzd1alE5K3NQSzdnMHc0ak1PK2hYN0xh?= =?utf-8?B?N1ljMitmK1JPbU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2?= =?utf-8?B?VXRLRTZoYXhRZGczUU1XR2UvakNiY2FJZ2ozTWlSSHVOMHNvME1FUXBiNWo1?= =?utf-8?B?VWdKa2F6Z3NXeWYzd1R6S0hpTHQ4M21mV3NPMngzczJ1Y2NvdTV0WTFaYmsz?= =?utf-8?B?ZFNtTWt2cTArYzUyTGtIYkxwTEFmekFDT0ZBSWtWYk13VGFyeFIxd2lVdjBp?= =?utf-8?B?VzZWRXpYZmFNbXVnK0Mrcm8yOWFhRmxuQ2VDNE1OV240R2VKZWxyd3MxMy9O?= =?utf-8?B?dlA4c1FTYmkvS2FraitlZTNsNFJlSFRWeUdQYTV0WHFZaWdHd0Z3TFAyMmV2?= =?utf-8?B?czd5QVJHWE41RUJCSFQ3RG1la1BsYnFCTlFWcmNjelMrNTZINGxESkQrQ3M1?= =?utf-8?B?ZVFyT01maXFLc3M3VjhZNTVoTDF2Wm9EOGk4b0xIN2N1QUorNllvWDV3Y0Rp?= =?utf-8?B?bFZrWU1OTk0zMEQ4RDdrUUc3QjBYYlBXTENwWVVLa0dPZFRhS1ZURExtaG00?= =?utf-8?B?TUs2cGwwU1EvUVNQSWc2QVAvMTVZZU5BeG9EZlNJVUtnSll2THVzMXJhZ2dv?= =?utf-8?B?dzFUUng3MVhMQkF5aWppckZ6a1JnbXgzVHhVaGdvRVhYSGdaQXJiSHAwMEJu?= =?utf-8?B?bWRKR21jYUp5YWtwZE0vcS9MKzlYM1hXK0lpWFlZQ2Y5TlFrVUczTnd5QzJC?= =?utf-8?B?ZjZFSmZSVnJna1JKV1hzNlVEcDZRRmN4N0J1NmJjTngyTXFuN3ZWT3V1YUxJ?= =?utf-8?Q?aiv1MobYzRoSPlJc1Yvn2/Z3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a103d377-01ac-4a96-d181-08dbdbc2bc69 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2023 16:42:43.7722 (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: HIl3NPruHCJLKgpUro3JJWsalgDR63aMDkYii8ubduG5SqNoB7je/gV8+5R6froX X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6281 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/2/2023 12:16 PM, Huisong Li wrote: > Add maximum Rx buffer size display. > I think there is a value to show what is the intended usage of this new field in application level, that is why what do you think to use testpmd? Testpmd can be updated to check if mbuf data size is bigger than device buffer size, and just log, similar to done in ethdev layer, just to showcase how application should use it. For many drivers, this won't have anything functional, because of UINT32_MAX size, but it is still valuable as sample. > Signed-off-by: Huisong Li > Acked-by: Chengwen Feng > --- > app/test-pmd/config.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index b9fdb7e8f1..2ac6f15773 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -881,6 +881,8 @@ port_infos_display(portid_t port_id) > } > > printf("Minimum size of RX buffer: %u\n", dev_info.min_rx_bufsize); > + if (dev_info.max_rx_bufsize != UINT32_MAX) > + printf("Maximum size of RX buffer: %u\n", dev_info.max_rx_bufsize); > printf("Maximum configurable length of RX packet: %u\n", > dev_info.max_rx_pktlen); > printf("Maximum configurable size of LRO aggregated packet: %u\n",