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 81AB645459; Wed, 19 Jun 2024 12:11:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E453542E1D; Wed, 19 Jun 2024 12:11:55 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2098.outbound.protection.outlook.com [40.107.236.98]) by mails.dpdk.org (Postfix) with ESMTP id 0A81D427BC for ; Wed, 19 Jun 2024 12:11:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gEweVTxxFihkjKfo8tMHjY+7t/jhlZRmWl3kqCOAsPx+zXHyDhmBdsIM0QkGAKAW2nA3QhZHyVpcXgQ9tAv5VXwYSWtJuyidRy5aKIBb+S+5uH9VahwDpD6VLtznxONne7DUp4NM56ZmrvGQ90Isne/I499pH4Efm6SktITCfehXvvvkEb0G2FHbWJRbAQqcTt7qYaTW/yt8072ht8UuZaWdSRLhiHWgfuQRTjtAgeDrdujJAqHLYjuQUUn1/FDjL05py8AGo65eBYAW355a7Lpd5+DjX67umeoriJQ1UywTNBc+7UO7xDjhPWU/KhVMAuYtMoKCPBTqUwCWggEx9A== 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=oxVpIDf/Gef62r/5XmX4snzd0dzv1rkSwRP1x6DtqV8=; b=kuMhNXw+gulV121ZQP/4DSSH0WPrL0+Fgg6sH/trtIGBnhNr5xIqMS5Wcb3o+1doUkzuezHVk4HJQGO7lqt7478SdKpl9wT+0jASSxbPslMkx0/oa7AWnspZOPo+MEHVMxhSJV45/InxXSdfpo+iCxnBBPaM7PHfVpV5+awmqygoVyuOx10F3pi4vfvLUsTuS2TKAvmnc2afUwNEjsCoFlrzblmCnClO+MkobrCyeOqzb/XYJY/8MGpyyTvxQ7mdgtg1oO93kuwt7bScuhdtk1z9EDuH4oeMnqpLUPcPpBN+8T175hp/HxTCy4VYYlM7HS7HiBv/7dPRHeQ437ZnXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oxVpIDf/Gef62r/5XmX4snzd0dzv1rkSwRP1x6DtqV8=; b=QhXeUHaGN2w6FXWF2z+zocylhWphUVtmnsEO6JQObgDKGYOoQ5v0mKOECwVPtII5lyDAvI66B/RMpfUxAU99ViF//4ePK4VsXZnVf6shIbZW5Rr7EyoWvEfIi7RPzTCJQrVaIPQsIduQVbmmj7NZ1PdMd7U0cl0xb6gtgmeDo7Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by MWHPR13MB7153.namprd13.prod.outlook.com (2603:10b6:303:283::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 10:11:52 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7677.030; Wed, 19 Jun 2024 10:11:52 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu Subject: [PATCH 1/2] ethdev: add Rx packet type offload control flag Date: Wed, 19 Jun 2024 18:11:33 +0800 Message-Id: <20240619101134.3480274-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240619101134.3480274-1-chaoyong.he@corigine.com> References: <20240619101134.3480274-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY3PR05CA0038.namprd05.prod.outlook.com (2603:10b6:a03:39b::13) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|MWHPR13MB7153:EE_ X-MS-Office365-Filtering-Correlation-Id: 8cc5fddf-d236-4fe7-c153-08dc90483d9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|376011|1800799021|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ukxO3T7rwygL4cR96P9+CvhW8PUUfOuV5pPaYVXU70QrL3etSJrYUuRqy3CR?= =?us-ascii?Q?6RRofh6JMZf+4HcEIhndGaJxrnkrSRqYo+ntbhR620u0sMFrPkjsrLAXJ4xI?= =?us-ascii?Q?z0cHP8mYj54WiPbpMga5hSv//dAXIyswsKk1TRaU9Ntu7CDCGZou0gmSziTJ?= =?us-ascii?Q?rjYa4HyFiqxy8DgtH6tLv2OvxQYKaIk+qqgLkayOyvEvQTDpkABpwdiqFcCJ?= =?us-ascii?Q?zl3kEMCThoH3luI9O+jYtnl1AE84KsTtdpdFldnjUktSRf4u/N2ODIJ4G7uX?= =?us-ascii?Q?QILURXOsuaXyLXvRTAS2MITrQGB9AIb8T2AB4SlGednRmWsc+P8dLMxoHdyT?= =?us-ascii?Q?eF/OP62yjVVoRPygmdI3J/vuQgJ56kVSxQmO117tkJtboxE7xumu4PlIQVwe?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ssfp+oTLdlmvXFWuHn+k1hLusjXjyA+ZK?= =?us-ascii?Q?7cpbZT6mwMwptUjN6hmgY/YOqLelxtUt8g+nnwlwdK5kUJo0Ldwvw0czxZIL?= =?us-ascii?Q?8SeBy5M=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(52116011)(376011)(1800799021)(366013)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?B7IXA4UUTzGyzGyRft0MfJuqAnB/zHgGphjIVdkOYAww5NUVEb0vvgVMKRoM?= =?us-ascii?Q?otDuJS8YJGkmmsuX6J9ZTlYt8vN+eKnCmTu0qFkqZ4kRPhiHeuqLJrEWdejz?= =?us-ascii?Q?Y2bLOKHBy8BCT0cmcDI3G/O4Ecj1n7LyH+93ibzym+hJ0Exm5xkvKaQQmp0M?= =?us-ascii?Q?g4D58ThjfVgesOsncgF2ZTNPThD/DTFTKnL2ETBe/XREQlhLOwNPtflzcthd?= =?us-ascii?Q?vlESJ1wBO2jk4SIbnVY0TwYg21nk9/YvQ+2ewu04v/Yxlj4UFDWBg9cTb83q?= =?us-ascii?Q?HA9rFBPOURLqooTSgx/5qtfCbuYXfR52vvwc3I4/+HtK5KR4g6iAKqYZrl7E?= =?us-ascii?Q?I7m3yJa16BI5FfNRRH64lmShzrjhxgaXwtBVAwTFjG/rdfwqvZT1gOXE5pfT?= =?us-ascii?Q?w1aSIWUicnlq5A6lYOMG6d70JakU1NSktwKxX5BxjczTmc4se/USNBRL4akw?= =?us-ascii?Q?iQvW2HPR3KOFwtSprST+zD9uYp+SbottavrqZlVcWUSy09b5i6R4m9CX2/w5?= =?us-ascii?Q?MBfhFB2ZUlfUKmg0oklutjG4PSklInqSVHSx1jtHmQfnPY9k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BvWbHkdrY+YbKPKYt+3DiOLOitOkd6yzRFdYkn?= =?us-ascii?Q?zX9msvnCzIf99rUD2Ob424o/KEyuJfE2gK/7++wGPsHDVUl2kgObYO5XnO7g?= =?us-ascii?Q?HcnRmr5+VgnT8XIKZ8R9Z3HqIgyT3hSayfryQDD62zpGZ5QwQVYtLHmQokip?= =?us-ascii?Q?iA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cc5fddf-d236-4fe7-c153-08dc90483d9a X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 10:11:52.8389 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /zsNmpIhq8lvr9qOCdF6wr53eZ2EAMqTOXBTzaEbR0RU7vW3NioFctLzAgcC/BfyLXk3nX/Mzjee3TY55i0Trb/DoliA40N47ZDcYtPqyoI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR13MB7153 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 From: Long Wu The Rx packet type offload feature may affect the performance, so add a control flag for applications to turn it on or off. Signed-off-by: Long Wu --- lib/ethdev/rte_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index 548fada1c7..be86983e24 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -1555,6 +1555,7 @@ struct rte_eth_conf { #define RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM RTE_BIT64(18) #define RTE_ETH_RX_OFFLOAD_RSS_HASH RTE_BIT64(19) #define RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT RTE_BIT64(20) +#define RTE_ETH_RX_OFFLOAD_PTYPES RTE_BIT64(21) #define RTE_ETH_RX_OFFLOAD_CHECKSUM (RTE_ETH_RX_OFFLOAD_IPV4_CKSUM | \ RTE_ETH_RX_OFFLOAD_UDP_CKSUM | \ -- 2.39.1