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 6DC0A42643; Tue, 26 Sep 2023 15:10:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BE92402F2; Tue, 26 Sep 2023 15:10:48 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2058.outbound.protection.outlook.com [40.107.94.58]) by mails.dpdk.org (Postfix) with ESMTP id 9F8AC402F2 for ; Tue, 26 Sep 2023 15:10:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g/rYJWeZZGaGY0PJOZaL/8R/4+QoaCY2z8v3ADlBFG3A9MlpYtPFsQIRzFhFx98q4+wb5y2a5vaOj4A/5hY8ixG6sqS6QCwBelll10g0TfUSIB4ND+/vF65bnCtY/7SEhu83wK5ctdwRtvwqVBDs8+aXNgX5jnKAZyxibeYmVC8G1Jvh6y04BU6WcUxDf5t+g2FRWSkmZWP+QcVdszGYWra0UYb7VZl4KGa3aV9oZ+kPicF5J+YMfxrSyuc3M5VkDrQJTVlsnhuq8Rc0eBW6GrXqqFxGu1QAI+JPi3aDAYc0f5aIRhjTirg+Mw6Svk3nW8V7ygCN2SDTB5h3O1GRXw== 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=a1caBLN5ZtpmvzTw0fe36hQTdaJO6DsmWhYuCD6rWf4=; b=G4zodWpM7L4ZoUAwWCPbAzPqi6PDPeL1U7GuZq6U3TqKGNKzm4Jc0cclUyw+o5R+VyZoItvk9M5yDVZke8o8k4+NZrSBRKGlbjJHolBswKH4kpMDffVCG16kAoqamCpxtSAiAA7WPdSh98JULwrQyQRPqHSXII7uG1/3KG9w6rAWYPagR6MMjC4JgjaCLAyJp+zRR1aNZEBaOxt94wQer/RREUSkWpTFsjjoJ5947S80SdYleda4H36fCUE1ysKh6USzzmdiQfrozVWbsNvYiukethb1Ovh/cLiTsgAaplN0o72Xe8dKo6gOVTQD0Nt7V84K6Fw6JyritTuH2aQW5A== 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=a1caBLN5ZtpmvzTw0fe36hQTdaJO6DsmWhYuCD6rWf4=; b=riQZlRW6SGluW8hTppaZzo8T5JN16djLs7n9+zzVqIR4EE2WXCT/V3oEjqf3yyxP9NDf1uP8fwxFIVpKhDAjREMPzi8Vp8fAwAGClO2EjJqyIDGMVbGZQBZPxJglajklQxbIt+PB5z05heg3+A6Ul9WXQcu7PZwstSSpcNl1r+4= 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 MN2PR12MB4141.namprd12.prod.outlook.com (2603:10b6:208:1d5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 26 Sep 2023 13:10:42 +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.6813.027; Tue, 26 Sep 2023 13:10:42 +0000 Message-ID: Date: Tue, 26 Sep 2023 14:10:41 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 24/32] net/sssnic: support Tx packet burst Content-Language: en-US To: wanry@3snic.com, dev@dpdk.org Cc: Steven Song References: <20230904045658.238185-1-wanry@3snic.com> <20230904045658.238185-25-wanry@3snic.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/6BQJjb9DJBQkC+3/YAAoJEFRTPtCK Km/6d94P/irGq3mPa7LamXMIioQ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= In-Reply-To: <20230904045658.238185-25-wanry@3snic.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0489.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13a::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_|MN2PR12MB4141:EE_ X-MS-Office365-Filtering-Correlation-Id: 74ac885a-88a5-4533-0e38-08dbbe91fcef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WxIQh6MR6YFStJ7TcHwDI10OybNHbkfi3d4xKVlMMwczPBMtqm62tlb+LjYKWtLK0St1cjFSZdVKkUl1bbODLIPvtTjTu8e0bf5daCl4YUHL3ahLR1fcqWFLv6CEg8JJUH8hU9PGFy/VDB5VbhQ+ZeczHIHweoJbd1N+sZjpGc9K1SKxP/kjVtimkvQQLDCICOmv586+qWHa1/5mf5sgS+aTBMhIBy1H6KS0Y7KYXUrr+JohVUKn8kHGMnc8++ppLuO8G3hlW74nfQFwEjuOUZGQlKqmHgFwtqCLk44WIPEw96RfLm9iqLjMBXqTJ2JJNLnsJtPsIVSyuvZ+kptKe/W8VQlHkSvyoXuaJEmCoFatH8IbelBzDDRI4Id26CjV98TW/xRdZ7CYhx6OiLbPCAxMOKYjjngMNpZ8EebX1iGPHWrLBCRaX7l+3gy6MAKUJdJkGsKwjb2BKzyX0jM3lOQHy7zdIMD4BuBTDzInuaBQf3NXXVz5jetSnGcOD8HPnSISglKVxiSezFzBLU5UuDzN1qFGXWtpxjuHyRusSLRXT1Oyfv4jXBYHbh2xY/Gb4cTL6pPgr3biRfTwVmuEqR2hbtU6chI42HjkjJ4XbFVmJUIFA6GXCLidJP0fYCeO+X+y/FXxi9FhzuYhD2R+3A== 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(230922051799003)(1800799009)(186009)(451199024)(38100700002)(478600001)(83380400001)(6512007)(26005)(53546011)(2616005)(6486002)(6506007)(66946007)(66556008)(66476007)(316002)(36756003)(41300700001)(4744005)(31686004)(2906002)(86362001)(31696002)(5660300002)(44832011)(4326008)(8936002)(8676002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VlU2T0hlWkk1eGZ5aHl6b2FRRjFSY3ZLRXpIcWtmelBFY3lzRHlqc09td3hh?= =?utf-8?B?SUs4djlROVBtRnAyQlVxSUtzNEJ3ZmxKT0RGMDVDS2lNb3d2bGpYbG5lK3Mr?= =?utf-8?B?cjE4RGhFUHlPWmtlRTZ1NHpyaEt5ZmpPekkrZHh2Z0dVemNyUGlVMFJFRXI0?= =?utf-8?B?M0pLTjAvOERUMXVOVlN2TGszaHZ5d1JhNlExY1VRN2o2Q0JYcDl2bk15OFg3?= =?utf-8?B?cUIrY3JsMkdaWEdPR0xFck4vc3lUa213Vmc3dTk1eHRXeFVNVjRyZk8zblp2?= =?utf-8?B?UG9WeVVuKzRIenBUNytycjJLK2U3S1lJL1J2TGFSbGJwbWxDTzZSaGwrc3lU?= =?utf-8?B?c3VZRnA2UXVJZDZOUUZQRnhGVkdqbmJnNEljbzI2Y29uaFBTU0dBYXlndHNI?= =?utf-8?B?TUpoV3hGMjZKL3AxbUQwWmZrOGcweUlCNnhIdG5CTnJGY2hBdnF4UXpEd2Ra?= =?utf-8?B?OFNTcVBmOHVFUXBtcS9yd1B0K1AxNCtDNUYzQTdsTERQbmFnTDF2N2VjY212?= =?utf-8?B?REM2QjhrbTZLT3B2MldzQmgzYm13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VJV2NMMUEyMjR1ZCtjQ0phUnlTblpFQzNXTFZTbmhn?= =?utf-8?B?ajlCTVVOQU1wT1MzdUprWmFOU25MTlBnWVZveXV6Sk9UZkpnUjl6SHFVY05R?= =?utf-8?B?cmZpNVNNd3ZhSVdiS1doWG5UMmY1YjFHeFZVdlM5c0tYRmJlb25DRlY3Qkdq?= =?utf-8?B?dVhQQXF4SzNmaVNYTjJ6UnlFK2ttTFllTGhOZ256clNpUVpvVkx4N2VoMDkv?= =?utf-8?B?WEFmWDRHNzhtT2E4TXlqN29XUVpHSmZwUWpOZjNvOFZ5Ulh2M0d0VFI1UXph?= =?utf-8?B?elRlS2Y3T3BISFdaZEhaUi83bmE2Y09lQ25VNDVRbUd6OTNYRGMrTFh3cXZj?= =?utf-8?B?SGtUZzQ3eWxvakxLTXhOcndVNTMwNVBxMEtpQndDT3VKa2srOTNhNWpNTyty?= =?utf-8?B?cHg3WlpRTUlGeHRPd0MrNEhZTlZwNk1nZGtqSlFWckFuYXB1NHJMVEpGTE04?= =?utf-8?B?RGIzUzM5YklRT3lUU3ZqRVBiWEw0MlV1Yk45dzhPQnBmcktsb1pIN3FxNTh6?= =?utf-8?B?OW8yODFwR3R4VS9vYTBvUTE4eThlanlRU0ZnZzR1UVJQVHZCNUc2dXdweUpt?= =?utf-8?B?WU5DclhTTk10eFVtVkE3TERMRXVtUnpsa1BRUWhhN2hhVkJJQnZ2VjFLKzZC?= =?utf-8?Q?sLdUUfk2/vKgQ31pLxgVsq/nq?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74ac885a-88a5-4533-0e38-08dbbe91fcef X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 13:10:42.7463 (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: OchLBVJtuOQWrwHboCa1ThTmMleBjD2VfsiFeBw9mKYY74juHoapSCPkoVaB4vZk X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4141 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 9/4/2023 5:56 AM, wanry@3snic.com wrote: > From: Renyong Wan > > Signed-off-by: Steven Song > Signed-off-by: Renyong Wan > <...> > +static inline int > +sssnic_ethdev_tx_offload_check(struct rte_mbuf *tx_mbuf, > + struct sssnic_ethdev_tx_info *tx_info) > +{ > + uint64_t ol_flags = tx_mbuf->ol_flags; > + > + if ((ol_flags & SSSNIC_ETHDEV_TX_OFFLOAD_MASK) == 0) { > + tx_info->offload_en = 0; > + return 0; > + } > + > +#ifdef RTE_LIBRTE_ETHDEV_DEBUG > + if (rte_validate_tx_offload(tx_mbuf) != 0) { > + SSSNIC_TX_LOG(ERR, "Bad tx mbuf offload flags: %" PRIx64, ol_flags); > + return -EINVAL; > + } > +#endif > 'RTE_LIBRTE_ETHDEV_DEBUG' kept as backward compatibilty alias, better to prefer fine grained RTE_ETHDEV_DEBUG_TX.