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 7E51F43238; Sun, 29 Oct 2023 17:32:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2481C40269; Sun, 29 Oct 2023 17:32:34 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2054.outbound.protection.outlook.com [40.107.237.54]) by mails.dpdk.org (Postfix) with ESMTP id 3CB0B400D5 for ; Sun, 29 Oct 2023 17:32:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kq4BVIo9WNXRGLSNh32SViLJRz3szYkACpyg4sy1VWoBirimFeE7McnTo4HZ8jRCyni/3SpG59jNuVqWCHuTdOZXvHFAdR2WLRa8nWb3kDgTpeqqPuJTXQ6q/tDbxOZ7zzR0t2zSZnic4J1Xq7haB6LUS+Sp3lfgSVJF/9txszuSVjNuf1fXnOdANacLRa3n3fivxX3bIDng1sNGjsfijyJfT5H19+ZeHpAKGwzkDmNcRJTQFtjWEFgEKRY9MnsTgeAHCC8zo+lQsLo4JRghu4zdfNrP2/1la946bAaRRiS6g3DG843Gxwzh4xErJS5/yDH0nGpmKyOPlev6OuSOSQ== 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=okrGKa01X4dP3twJys8Qd8Kp2V4XdHMQY5hOFfueU/k=; b=d3+O2c1UCusabJR8+FJq6gtiy2/9Yq70+KBKB1ABn56Gi2eUtmR3Lqyae91LAH2rEcn3QgpPNNLk4+KIs77Rlx6ZHqymUxqY8mKTfyR/5Bs1cVJlhZCkpoQzE5Kqv9iQwfNacLc2ya7HHwxhXP6wW9Nnts4xWxrHgAfH6KtPcs5VA/WSFNTekQL0AY3bvQ11TuISUxRpPUflfIHT0dSwlRWFObyn4Zq0LDGFoH+ghLc+8GuM2DGw8vbuQpbbhLS1Zh9ebl1mT7hQQjM43QXD38S3Y07NzkC1CHtJ1gf3ZF3bc+o4lPGzcBcG1zmgIavQmpqQpJdnXawfb2PBaQJF5w== 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 (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=okrGKa01X4dP3twJys8Qd8Kp2V4XdHMQY5hOFfueU/k=; b=SPqLdFvGkGqlou+eint0m4L6gTG+58xpXgBQz/m+km23HAavBdEO11ExiUM2Hh6bBj38H8LgnZkRoEp+x5R9Ex96yHgyHJmHtVkyEO7DlMtLrO7YPnRfUWuWDWHfy/yMm5KXBRuIz0ZpNJuzCNLiHLN89hTzYiN86ETDzXsWNmKkSHH7GUH3f9y/S679V/O042f4p0HswMlRDhH12wCKM6AJAz4vDrVvcOc0XAZltgkr33QEVcEXqSZQxaOMR0Om7qiX4rd8ZNFthXKtDZv8RQFnYp0i3n0ST/56lZyC9jrWDzP0Z7XablfLoRpklYuNDj9XF2mz8U7HlU5uMinv7g== Received: from BL1PR13CA0119.namprd13.prod.outlook.com (2603:10b6:208:2b9::34) by LV3PR12MB9356.namprd12.prod.outlook.com (2603:10b6:408:20c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.26; Sun, 29 Oct 2023 16:32:31 +0000 Received: from BL02EPF0001A0FD.namprd03.prod.outlook.com (2603:10b6:208:2b9:cafe::db) by BL1PR13CA0119.outlook.office365.com (2603:10b6:208:2b9::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.14 via Frontend Transport; Sun, 29 Oct 2023 16:32:31 +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 BL02EPF0001A0FD.mail.protection.outlook.com (10.167.242.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.15 via Frontend Transport; Sun, 29 Oct 2023 16:32:31 +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, 29 Oct 2023 09:32:20 -0700 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, 29 Oct 2023 09:32:18 -0700 From: Gregory Etelson To: CC: , , , "Ori Kam" , Matan Azrad , Viacheslav Ovsiienko , Suanming Mou Subject: [PATCH 01/30] net/mlx5/hws: Definer, add mlx5dr context to definer_conv_data Date: Sun, 29 Oct 2023 18:31:33 +0200 Message-ID: <20231029163202.216450-1-getelson@nvidia.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A0FD:EE_|LV3PR12MB9356:EE_ X-MS-Office365-Filtering-Correlation-Id: c72deab2-b0f0-4b09-c08b-08dbd89ca5e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dh9aF43WMG8CjP1s6y62ipxduCzViAEvuciSTkOhhmBAvyU3J2pBqO/42SqQvQhRda5GvkOHqZgDcUa5yUq6qjGhXHPQ0jt8Bo06eqH6VMLmSCYcVlUZg0r15B4xf9x5uiTCRHoiuMGy9lJFgpaIwr4bwDd9hJR7ofTPinRupjuFMw0TkFK2ZCnJqb8GbrjQwWpArVTh3bixwMd3w0Ws8AHkawjz4wOqnTTLwC4OM/pq48StW3nVWIl8otaS0+E21P6Qh0ZQA6YmI++S4UJEBWrX3DO6mOYiVEnth3mx+Q0F0+PocDUZRob3A9b2F0UayEYJTQoBFanOREX0APVkcNz5FXm+QDvf2OTI9sMW9szwLn9hgSJHMKttrK/dFpRmrfjmtkQFfG6aP+dSjieNRQUcxL06ASW2A8IOY9jZOrAIbFVqiw++1zLBG4mAvKJbBPat0T//xMqzJdTAz8XuEgXujOzUFehNEiHFanFXb/MHGPUI9StCaxgf4oBQZSEA8vGPRUO6kDsaIenlrYiwfmLkLeaNu8yvEZhVrhr9IvPxLCjBEmeQ2MJeIFD6TF54Hj7MfNar2zIN1qJRWDKJCuI/YV00r0DuTl5qQo2O5K0lfdHjJIYtvydpiZrghCZoy5GLB6gyGO5dImDWzXf0SZ3o9bzVfo0qxt3zWh22nX+BHv0beP9N0VhOgIGB4i/ASxsT/07IZXn0UNs7B0e8ya9PGkJ4JwdDk0EQ+KHv5PafqDeREbmUdU1xzIo1Fx/ZKYlaGlXJGnB3D1Z+Qf+xlJlwMO//y+zU6LkPVskzZcKBYPh6KVGi0b1pwf9OT5sbBnn8AW1n5FkDlDDBeX64fw== 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)(346002)(396003)(136003)(39860400002)(376002)(230922051799003)(82310400011)(451199024)(64100799003)(186009)(1800799009)(40470700004)(36840700001)(46966006)(40460700003)(36756003)(26005)(16526019)(6286002)(1076003)(83380400001)(7636003)(426003)(336012)(5660300002)(356005)(6666004)(7696005)(2616005)(107886003)(82740400003)(8936002)(8676002)(47076005)(54906003)(316002)(41300700001)(6916009)(36860700001)(55016003)(40480700001)(70586007)(86362001)(478600001)(70206006)(2906002)(4326008)(42413004)(32563001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2023 16:32:31.0715 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c72deab2-b0f0-4b09-c08b-08dbd89ca5e1 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: BL02EPF0001A0FD.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9356 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 New mlx5dr_context member replaces mlx5dr_cmd_query_caps. Capabilities structure is a member of mlx5dr_context. Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- drivers/net/mlx5/hws/mlx5dr_definer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c b/drivers/net/mlx5/hws/mlx5dr_definer.c index 95b5d4b70e..75ba46b966 100644 --- a/drivers/net/mlx5/hws/mlx5dr_definer.c +++ b/drivers/net/mlx5/hws/mlx5dr_definer.c @@ -1092,7 +1092,7 @@ mlx5dr_definer_conv_item_gtp(struct mlx5dr_definer_conv_data *cd, return rte_errno; } - if (m->hdr.teid) { + if (m->teid) { if (!(caps->flex_protocols & MLX5_HCA_FLEX_GTPU_TEID_ENABLED)) { rte_errno = ENOTSUP; return rte_errno; @@ -1118,7 +1118,7 @@ mlx5dr_definer_conv_item_gtp(struct mlx5dr_definer_conv_data *cd, } - if (m->hdr.msg_type) { + if (m->msg_type) { if (!(caps->flex_protocols & MLX5_HCA_FLEX_GTPU_DW_0_ENABLED)) { rte_errno = ENOTSUP; return rte_errno; -- 2.39.2