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 C714342FFD; Mon, 7 Aug 2023 13:55:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C537410D3; Mon, 7 Aug 2023 13:55:51 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2083.outbound.protection.outlook.com [40.107.92.83]) by mails.dpdk.org (Postfix) with ESMTP id B88D940A8B for ; Mon, 7 Aug 2023 13:55:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MOB36UXdCVh2G399N+4Xiy/bx2Vkv5pd9rdPKy9GxEO8kJCmLB+CQS8AGk201RTTkNDm+juQk9Fukkc9ZRr/yXI2uVn6hVI12ZaJEupHoLa7cTv9wczIEYbMOQm4RqGFkscUo7Q42DCnp2uLY3MEZMcz2vbvBpZ3lEceehVhD6hqwSzxSpXzCnkEVxVdtdYv9ScVhC1lz3QEeCX7zxglYZe3y+UtctKJ2n+TmEpIiCLXEDeCSTB8MGMTERDHhW9GBmseC7GbAAsZrbHKGJcZFJ6oeT0X+4F1pwbbPBfMlc2B+7ZrfmWKO6oqpE0yx/21ILv0ej9Oopy8rpph9DD5bg== 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=uG+5kPOBsLTnm0UNBIkLlUcwjKCiYnp0IGDf8thgq+w=; b=NYvCtKHPXeOYoNaGSLnPUIamp8pVz6muOt/LiEpNn1QKqmdISVbedGG8kMR8Nq19h6ybcLMuQanbcYBOY5y53q/paxXmncWHefNR2nVTrkdqVgERvTmQ5d8CtWkiMOfFusnI2GpL+nsFNSPCvAt2ocw9DW8xnVDJb2t3Qfp9OuEwutS02UMSxWaC3eNT21dX5Wcb2FYPdN/VP+73xVq0FuSr8SkJZji4kw6TpKIt7V4148sLwLoT1mKWQUl6xEccSQhw6EWKBtmLnQoF3OUu3y6pNfHyvHxzYhVNEr1Q627kc5eF/adwUgd/BPawUdSGhhITz4tFj/rcmF8AMJc++g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uG+5kPOBsLTnm0UNBIkLlUcwjKCiYnp0IGDf8thgq+w=; b=hfhIpdQVb0Y8Cf+LPMF9V55xDDZeuW0QE3QKQZn7PinpFR3pYxQd6vnIshi8FKuu7JNdQzGT9hBI9n/X+a0wclhJXaxfs2+brh/KhYw4Fg5zUuZomJZNAXild3kzPRvvIlHAt/IVgvWXGpfonoOUosN2cO3YwFQdq+FgxYSKuwg8iMoUYkPxBwG/DN1WC5mi3KoezKE2B/UzcZqXMCaCek6DoQKx/YypFEpJdCgsN25o6gy4gT44tIHjbLzsvxSedmjxMNneIQBh75IXPyWchuuAuvga2BOz+xzgiL8zezRPyONZvgZLY2NvMZ2v/OVLm9ffiCAJi72OE/vatPlPOQ== Received: from BN9PR03CA0901.namprd03.prod.outlook.com (2603:10b6:408:107::6) by IA0PR12MB8840.namprd12.prod.outlook.com (2603:10b6:208:490::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Mon, 7 Aug 2023 11:55:48 +0000 Received: from BN8NAM11FT061.eop-nam11.prod.protection.outlook.com (2603:10b6:408:107:cafe::27) by BN9PR03CA0901.outlook.office365.com (2603:10b6:408:107::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.19 via Frontend Transport; Mon, 7 Aug 2023 11:55:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT061.mail.protection.outlook.com (10.13.177.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.15 via Frontend Transport; Mon, 7 Aug 2023 11:55:47 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 7 Aug 2023 04:55:25 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Mon, 7 Aug 2023 04:55:23 -0700 From: Xueming Li To: Ori Kam CC: , Subject: [PATCH] ethdev: add new symmetric hash function Date: Mon, 7 Aug 2023 19:54:56 +0800 Message-ID: <20230807115456.17478-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230524113827.7351-1-xuemingl@nvidia.com> References: <20230524113827.7351-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT061:EE_|IA0PR12MB8840:EE_ X-MS-Office365-Filtering-Correlation-Id: 5486b01e-ed2a-4ccf-5664-08db973d3d1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1Hk9dCR2NpLtT0UARGIF23z8kFGO1NDv/UoYAr5/Td3Uk0QYVGipXMvDDv51AQ+UIHWL8XnXbw+5yVPAJsSK4MtzLTQi3SsW0w7z4jY6xIX9i47eandiuSxNCI6FF+jVOjrZ4u/O7v/WaXeM7ujbzvTRt4F5VUGgjUdvX1Xvrv8VqzycUsjSQ9DiBYrYggn174lsd7UiX4eaKxuWXq3Ran3oiF+Y5YWJ5EwjuuzMuvupUHdJeB4RmKCFk+7HP6AO1ix8OQPZOc2Ev7j6c/HoWyk2+sF/TnLCL9desquXj4nJaGbrhR9V1OdobxINitfUZ/HtXWkrOCC6NV+nVYZ2EGSKgzeuT/3UyJWcp/anUG5I9irusbT1gSNlPMqLTy26vXTEjabqPTA+r4durJtLrJ0uZlQICvbldVJd3vO5ysbePJafe7aFWApRYnicTA1bliMtqIvcwbRAwGmMU6aq4fPlkWEueIC8rKkZZym7G7HTIIwPef74gbOYuinMVxIW4npNMQ4nTNBTKm3yiZCPVvW3eLEAyZ4M8pfHKI9j5HKUVXvfXQNqsuetUIN+bwFARkObTIXZ4DSu+Xw0NWfw5St+h2cBrh6wZtlizLJOiIHPW/0GEOd7sLpFrVhPOLtygiPBhfa8jPvo/xNI6NL1J6Dv0gbasUquCy2Opf1yg9BX2wtsa5GigsrfV04ylUuqELV2etMRrQw5GWaXveI3oo/CMQ1VW2z/bS7lVse9U2PP1j3ryUfYTg3Wtst2t05+ X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(376002)(346002)(39860400002)(396003)(136003)(1800799003)(82310400008)(186006)(451199021)(46966006)(36840700001)(40470700004)(40460700003)(55016003)(4326008)(70206006)(70586007)(316002)(7696005)(356005)(7636003)(6666004)(82740400003)(36860700001)(107886003)(426003)(2616005)(47076005)(36756003)(6286002)(1076003)(26005)(16526019)(336012)(40480700001)(86362001)(2906002)(4744005)(6636002)(37006003)(54906003)(478600001)(8936002)(8676002)(6862004)(41300700001)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 11:55:47.5248 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5486b01e-ed2a-4ccf-5664-08db973d3d1c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT061.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8840 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 The new symmetric hash function swap src/dst L3 address and L4 ports automatically by sorting. Signed-off-by: Xueming Li --- lib/ethdev/rte_flow.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 86ed98c562..ec6dd170b5 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -3204,6 +3204,11 @@ enum rte_eth_hash_function { * src or dst address will xor with zero pair. */ RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ, + /** + * Symmetric Toeplitz: src, dst will be swapped + * automatically by sorting. + */ + RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT, RTE_ETH_HASH_FUNCTION_MAX, }; -- 2.25.1