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 589D843AB1 for ; Thu, 8 Feb 2024 01:07:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5182C42E08; Thu, 8 Feb 2024 01:07:59 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2066.outbound.protection.outlook.com [40.107.243.66]) by mails.dpdk.org (Postfix) with ESMTP id 16EFD40144; Thu, 8 Feb 2024 01:07:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ahajkaAE95eneTzXt9WxX8fD6Z5ImEi8x8D1i2e+EkgFkXWEcvcQmNyykkSW1PFGs9Gk3pB2d0/Ly7JSa4xDbidrQNxfow/Dbn4gKM7+jfLHOaijdxlDAQ6EmdL+e3JOMJULC5MhsGY3QxD5dnm+wPhy2eC7IV4Upa9Ax88ZzSVxzat57/kZYk1oQwF38Z8r1Mp7BxgdJ6lGbO1cjdy4jRx8390UbH1TQdi/cYRPPtEp6m5wzMsgYWdc4auFNRy4G5Q+SbEdcjyFeETqGUV8VPXraOmovl0sabJ7k28SDFtF2jcgonoogbkoQRnAIi2w0zeKzePHm2B0xkFZsMhDuA== 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=EGfx79zVdPCkPQGMLpvIICdtpakC8PzRctnG/dImz7E=; b=PMZuzknTL4/kmkeKzi1Wm/CX9OyhoX24UIO98pu1RpzacvFAb5VdCKJwTsXS1RYDs7DTLk08u+hBSO5PvAepfLx9RBCnw39KL8gO7bixZ/4RwhJkHZpya3J1aMEg9e4ZAoEKY2l0M0tJZxbB1PHgcYpKjJTuj4sBq6w8aB8MoM/CKcqA1yRzD5Gnq8OSX/w+GpsFsDORrRIZo+JIu63qQ6tTENa/sIz5Vzny/CD/xeOVlfKe6XtWm16wx3VOpm5qZSXhxFazq6aPzgqHYONW9ztQXQJEBX2By1ti1pixeNNX85CtXpLsrdrFzet3rXzECYnqoI69PXAD/joRU8+7rQ== 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=EGfx79zVdPCkPQGMLpvIICdtpakC8PzRctnG/dImz7E=; b=NIv3FmQqypJbXRZaskGeI/vZux83rvudx2lfgWrwGu6z5zny8X5VsGZTbabkHetj25bMSf17NlHaldLVqC8agL1uisj60iGAo0iOyRz4LEsBdqLe4UO8QC1w+ufkstInOwOSgce+lgUkk0rEoJvsvLcnpt6/8lcCT8anCqu+fjo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB4301.namprd12.prod.outlook.com (2603:10b6:208:1d4::22) by CYXPR12MB9426.namprd12.prod.outlook.com (2603:10b6:930:e3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Thu, 8 Feb 2024 00:07:55 +0000 Received: from MN2PR12MB4301.namprd12.prod.outlook.com ([fe80::716d:e3ce:141a:f22d]) by MN2PR12MB4301.namprd12.prod.outlook.com ([fe80::716d:e3ce:141a:f22d%6]) with mapi id 15.20.7270.016; Thu, 8 Feb 2024 00:07:54 +0000 Message-ID: <38baef9c-103a-4be4-8546-e9ea35abc46f@amd.com> Date: Thu, 8 Feb 2024 00:07:50 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] app/testpmd: use Tx preparation in txonly engine Content-Language: en-US To: Kaiwen Deng , dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Aman Singh , Yuying Zhang , David Marchand References: <20240103012912.4334-1-kaiwenx.deng@intel.com> <20240111052555.35930-1-kaiwenx.deng@intel.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 AQIeAQIXgAIZARYhBE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MTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240111052555.35930-1-kaiwenx.deng@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0468.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::24) To MN2PR12MB4301.namprd12.prod.outlook.com (2603:10b6:208:1d4::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB4301:EE_|CYXPR12MB9426:EE_ X-MS-Office365-Filtering-Correlation-Id: 5782fd25-122b-48fa-97da-08dc2839ff9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DBBZr5lzRcbCLPpxdYOhQoeKBnjFDGk7O67ZFJcLcChcKd9HolND30LoMAqnGZfr50WuGqTLrteWWfxIua3LJUFHi/DJC4S78pJv4oRlt0EOzhJgZAn6AefzUvzxQR5SHf0BWMk+CLNVzJxAcIDJiTKjNREzHhNC/BfHPhQU5StZZgRgGmBlHv6g2aD37SwJmhslxgXomz4tp9oFw/lzR9+KsqGf1PXLv9huNArz3c+iJVwtq/PANAQ4eAXJr8+qiI/Mka61c7e2F0Vij0e7bYxUrFeoY7L5QonWIbxfTr4gm5u3WEO0ajznF8vQ7W6LEqlAcj0LIh+7dgIb6zXlIIEv70gDlJDGr0jIE9AMHNhQsJ+mj/ffxZ3up5oMkXOy9KK+07BGbNnyAiq8liNeReStZPDJWVUkQb3Ff9cDjKDnvfHHbNrSLO/q59fWetsozwMIyKkVYjWNM8CZ8WaIOAA4mXRNPTeJ9gwoa8Eted/Qd3ocKEltQI6H+vUmd2AvzkvetaD/cbfAe1wcQDBI57k/GNW5K15p6Jr7Pb20EJ7HwrXMq5FLc5FLrxtLaBHq X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4301.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(376002)(346002)(396003)(136003)(39860400002)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(4744005)(31686004)(5660300002)(8936002)(44832011)(2906002)(4326008)(66476007)(66556008)(54906003)(316002)(66946007)(8676002)(478600001)(6486002)(53546011)(6506007)(36756003)(6666004)(2616005)(6512007)(26005)(38100700002)(31696002)(41300700001)(83380400001)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Yi9INHpMMWVJYzNMcWN4cy9KdXAyOFpNekhlNFF3Sk5sTThhYXB1T0M1OVlR?= =?utf-8?B?S0ZUZFJ2QURseE1xZUZlS09tc0tuQWRxK04wL29PNXJvZFpCdHhYMngxQXdZ?= =?utf-8?B?WGw3Uy94ZUEwNWVsU3k4U1o5d25PN3NwTEttYXp5bEtVQk51ZHV3akpPQ3Z4?= =?utf-8?B?Ymxmbk1WN0NFalNUODEzVitmOEtQYlRHL2lEbEdPV05TbytRVUpVT0c4ZkFE?= =?utf-8?B?eFJYTHpxOEc5S1Y4eWI3Tit2ZFZTVGV5U21wZDJNeFkwQVFFUTJCNnZHRXNa?= =?utf-8?B?MVFiVU04aHFNMVdrcmd3dmlCUU9DTCtOZUM5eUR1clB1TENJb3JpVUhmY1ps?= =?utf-8?B?Ukk3V09NUUVGZ0E0a252YlI0cUZMWThUOUZ3U0lzSzJaamZjbDNCdUFqajRJ?= =?utf-8?B?S09YZzBnUThXVzlDTHdrR2pYbUpKcE5tNDkybDQ2cmpESjQzMHoxaG5oQ0I0?= =?utf-8?B?dFMvQlppckU5VWNVM09Fdk5ZTFFVTUVQQzNpcFg2YkZCOTlPMjdLWVJwcUN0?= =?utf-8?B?UUtaYzREVEdlQkEwMkVBb1FVTy9hcDZFQ2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lsNEtObGpUc1UrSVdCLzgwNndWdEx5b2ZQYUZpeUdX?= =?utf-8?B?T2txcVp3SVNab1B0bVhJbDNUK0J4K294UmF2K2RsL0QwQzJMUSswSmxoSHpJ?= =?utf-8?B?UGVud3ptenNVZG5KSmpmNXg5aFhzbENJcGRXbHpITXZzZHlWMVNoVDc5TnNQ?= =?utf-8?B?UlJaL1l3TUxpdWRqaGRYWDU2ZXJwcjhQQ0E5MFNFaDFFUGpUU0xzV1ByNUVY?= =?utf-8?B?L1pkSForVzJ3NEg1QWVwY21ZUmVSU0FMV1pUaXUvbDlHTjI3eU5OdlJ5Y21N?= =?utf-8?B?NDIrdi8zT3hNei85OGlrdHQ0M1NNa3BON1lHZ2llaWd2b09aR2lzMVRsWXVJ?= =?utf-8?B?c0FicjIvNG0zUWlUK3ZDTGFqWkxnSGxNR05ObUdrT3hPUmU2ZjJNSWVkZDRj?= =?utf-8?B?RVVTZDh4L3dqc3dlYU9DUjkyR3VFSmgzQTVxTWdHTnRHZHdDOEZRd1BveGor?= =?utf-8?B?aGdPN2pLWGt5bFRIaStuOW1xUHdFaFMza0psVGFTSEEyWmU5NVZtT0RnTU1K?= =?utf-8?B?d0hhK0pQclVFNVJxYWs4QlMydk5memE4Q0ZneTRpTG1Ed2ROU2ZwOWtObjA4?= =?utf-8?B?eXJnemhNb1pDanBOYXMvUnR4d1c3WU1UYUFQVFVERUtxZHBOcGdzTUtPRUd0?= =?utf-8?Q?8GRlfwB1xeKCJU5iHNKPgFHzh?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5782fd25-122b-48fa-97da-08dc2839ff9e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4301.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2024 00:07:54.8643 (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: rtw24k6gTX62a45+xEACte7EcMUuC+fQMMfmIlMcnnhlGbsHJCmGFkj9NCgk3am7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR12MB9426 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On 1/11/2024 5:25 AM, Kaiwen Deng wrote: > Txonly forwarding engine does not call the Tx preparation API > before transmitting packets. This may cause some problems. > > TSO breaks when MSS spans more than 8 data fragments. Those > packets will be dropped by Tx preparation API, but it will cause > MDD event if txonly forwarding engine does not call the Tx preparation > API before transmitting packets. > txonly is used commonly, adding Tx prepare for a specific case may impact performance for users. What happens when driver throws MDD (Malicious Driver Detection) event, can't it be ignored? As you are already OK to drop the packet, can device be configured to drop these packages? Or as Jerin suggested adding a new forwarding engine is a solution, but that will create code duplication, I prefer to not have it if this can be handled in device level.