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 0CA0A439EC; Sun, 28 Jan 2024 10:40:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90CD8402AB; Sun, 28 Jan 2024 10:40:43 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2067.outbound.protection.outlook.com [40.107.93.67]) by mails.dpdk.org (Postfix) with ESMTP id 436B040265 for ; Sun, 28 Jan 2024 10:40:41 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OD7ChLH3HFgDjUXjVx7k+YMdZ0a/Pn4wxAmdQi9J0Z5pf60hI8Yl2ArrCZ7RHkNWfU691UytwbezXxHzIquDwhJ0dTbrWE1N3gg3v13RGHMgHHRpojtQNo5YOel8viA+7tabRU6Hb+x8RQadQevW8o/n2ifM19r+n4E5s8nIDrmFGs2azXZ91yi4eXpMDqF8JmUIYyo/U020ZsKpzyKHXTwuYqhICfwjlriY6AACzcZXVrKMd6FMkXSIKQnUeQdnedqQA6zj++gw3vjPKF9I5165PO5bwqdJwq8O7SP4aO9F3pRkQmVgVouj9wLLHO21LADNEdpvK049C+5WiFdCrA== 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=add4Y+R68M+X3yfaaiDPI56Y89tdBTb3FSMpgCnF2Jg=; b=UAY3yDSYePSPR7i5nirbQfWbuQ7L8GI9wi1HWjvN4eibtxziprx4jX9JAsze1+lvXmYw+ovy3tgyrdrY51gsvkug4nSWtVIhE/hmpj5FWBZm3phcCAyjg0BwWEiEnS9inYYaasLj2AtV6kJkAw5evWD43EI6vbCjfFUDeJzsb/31+6W0p4swC89h6IPF70n5wkseLgqN8qNfPtcLQhMJlv2BWUVLQTkSjuADANWs9pkMPRMilGS/nubCpYVhL6+ULYUZFrzLpO5GNEZD+3ian8wWSly1I8JowdyUrZ4JNcVTnNR9vKAx31fgWjiQpt8K3yiMKYCfvQugYjf9PvIpag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=amd.com 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 (0) 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=add4Y+R68M+X3yfaaiDPI56Y89tdBTb3FSMpgCnF2Jg=; b=laLbz+saVCiYYbKjQvRGmfgLWY7YCFwFVIPpktvgz/6F68QvaXp3UZxjwY4GETaLSPxqVJBoc5b8YvEHBZtiwW6XKMAPLMwARkyxuv6Lr6UptCPg3+PZ5UM2uw7V1eEfFmJaXVGfpJF9P5yLaJoqnGpTiC7cGdgxLO0ubbMnqnmkE6MSDO70juKbVcL87xA6cNLAaRGc9Yp0D8BVfr3IvB8ko8ONYo2wiJJbN+rC+vNYa6udTrT87t7DR91YPAowPNdpZVnExpzKbMVph1AzbMCFEQOq0ODNF9lBFaVv9T9XQdfS685x/KuGhozkulyhi/V5qsywR3On4CjBTrXqyw== Received: from DS7P222CA0013.NAMP222.PROD.OUTLOOK.COM (2603:10b6:8:2e::22) by CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Sun, 28 Jan 2024 09:40:37 +0000 Received: from DS2PEPF00003447.namprd04.prod.outlook.com (2603:10b6:8:2e:cafe::fa) by DS7P222CA0013.outlook.office365.com (2603:10b6:8:2e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32 via Frontend Transport; Sun, 28 Jan 2024 09:40:37 +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 DS2PEPF00003447.mail.protection.outlook.com (10.167.17.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Sun, 28 Jan 2024 09:40:37 +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.41; Sun, 28 Jan 2024 01:40:26 -0800 Received: from nvidia.com (10.126.231.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.41; Sun, 28 Jan 2024 01:40:23 -0800 From: Ori Kam To: , , , , CC: , , Subject: [PATCH 0/4] introduce encap hash calculation Date: Sun, 28 Jan 2024 11:39:38 +0200 Message-ID: <20240128093943.4461-1-orika@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003447:EE_|CH2PR12MB4294:EE_ X-MS-Office365-Filtering-Correlation-Id: 20977cf2-febc-4e0b-637f-08dc1fe52f08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1LGF0Ir0ijiIBGCJwzQb4PtSTD1Y3uX1wBIB4jRPvgiAw2Z6NBWaL689CDpj4ATRnqLe6dSfv74UJJP8zOeDRRJqz1/w7VGHv7iIKRlbtHNlpR9mFxYN2xPNwE2vOZ5k7rEa2oDUp8iC3aqsSGPWZrwrqrYjiC7fWEdJENBe16X7KY2YWacmvVPE7cLRw08m9lNrfiCP0Q79S2IMwovuptjcuCTnMVclMYpuTlUoP+4J8dxbegXdjtsUf5SwSOu+axW6oG/jPvN9Bn6TkMLYkRCaeWz5UkfSrKec7DXVquUtLQUFbSEqbWdJ4IyMu/L21kI3a5m4c3bpFopdjAl+xfGmTQjDmWVnlplIuomUFC3dmZyp1myFkcGbMUPrMmx70gixZazZfli6qVvRRVajcjPfTsDNhk0EFwqQmFPSBa1Bqdjmkd1lLf3SqbRB5pJ6qAr2djNjp9n+GIXLlIZNLKddln9VRqJ/kn9tm1jB/38wZZF7eWQJJx8QKNj1GUjUR1ahkuENPpaj4R+9veVuz6IfzIKPvTsZhWYDRw+X/mgK2LZg/d+4rUgD3SHkk+KjISQUtSWxjuOMABq95ETpvJmhc7ZczTm1yC7Ul7d6M0tXiUfXGLITijc+6yY+i2qHd7RLP4a0sbxsJI1RD6QQGWdTnaGerRjdrC/bsqp1nlqaaK5UEM34m7cssHO9erVWTl+EZbeVS+VVPJ5LleEM98DSyTjsiqFAKk8WLQnbzd2Vy/xcwS5nZffYliBnkc3IbzQO47IksHwb8UJlfukJ4w== 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:(13230031)(4636009)(136003)(376002)(39860400002)(396003)(346002)(230922051799003)(451199024)(1800799012)(82310400011)(186009)(64100799003)(36840700001)(40470700004)(46966006)(83380400001)(336012)(426003)(1076003)(26005)(6286002)(16526019)(6666004)(7696005)(2616005)(107886003)(36860700001)(47076005)(5660300002)(8936002)(8676002)(4326008)(41300700001)(2906002)(478600001)(966005)(316002)(110136005)(54906003)(70206006)(70586007)(36756003)(86362001)(82740400003)(356005)(7636003)(55016003)(40480700001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2024 09:40:37.5412 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20977cf2-febc-4e0b-637f-08dc1fe52f08 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: DS2PEPF00003447.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4294 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 This patch set adds the support for encap hash calculation. It is based on RFC: https://patchwork.dpdk.org/project/dpdk/patch/20231210083100.7893-1-orika@nvidia.com/ Hamdan Igbaria (1): net/mlx5/hws: introduce encap entropy hash calculation API Ori Kam (3): ethdev: introduce encap hash calculation net/mlx5: add calc encap hash support app/testpmd: add encap hash calculation app/test-pmd/cmdline_flow.c | 57 +++++++++++++-- app/test-pmd/config.c | 30 ++++++++ app/test-pmd/testpmd.h | 3 + doc/guides/prog_guide/rte_flow.rst | 22 ++++++ doc/guides/rel_notes/release_24_03.rst | 4 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 21 +++++- drivers/common/mlx5/mlx5_prm.h | 8 ++- drivers/net/mlx5/hws/mlx5dr.h | 38 ++++++++++ drivers/net/mlx5/hws/mlx5dr_cmd.c | 23 ++++++ drivers/net/mlx5/hws/mlx5dr_cmd.h | 4 ++ drivers/net/mlx5/hws/mlx5dr_crc32.c | 78 +++++++++++++++++++++ drivers/net/mlx5/hws/mlx5dr_crc32.h | 5 ++ drivers/net/mlx5/mlx5_flow.c | 29 ++++++++ drivers/net/mlx5/mlx5_flow.h | 8 +++ drivers/net/mlx5/mlx5_flow_hw.c | 66 +++++++++++++++++ lib/ethdev/rte_flow.c | 25 +++++++ lib/ethdev/rte_flow.h | 50 +++++++++++++ lib/ethdev/rte_flow_driver.h | 5 ++ lib/ethdev/version.map | 1 + 19 files changed, 470 insertions(+), 7 deletions(-) -- 2.34.1