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 96AAF41BAE for ; Thu, 2 Feb 2023 17:26:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C29A43002; Thu, 2 Feb 2023 17:26:03 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2050.outbound.protection.outlook.com [40.107.212.50]) by mails.dpdk.org (Postfix) with ESMTP id 1A6D642FD0; Thu, 2 Feb 2023 17:26:01 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Npi7hSoNXflNZw/DF0K4p1gzqv1xNCKgEB/aADHGi4SkhCRiiANgAYls8neRxbfR450lfLe8jwYM0TCDg96pkJO/l9sr7tPMGe83tG3054lIFYQMry8ZSEkyanv5Qze74wjA7/s95+Fm/jGIR6ybsQdOoOxDKcWILpo6aHuMg56w6AqSJc7qDDGx2PDIbKXBy7xrL8j69PxA0Ng5DqtZQ4ng4fJhV8ubW93NZjFnRMwEoA2cZ2zTx5c0Z0A20+sh3ISedgp6gvagHCMQH9TeiV8L6SF2nXNKousUcJ8kSXZAgYNDGc41WCfxzgIQkk3XUICRRV09XenTZA+fkBvZdg== 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=8teiuoP4rYWbQvEmx2LpbVb+Gjaic2scWb+kK+h/J2U=; b=fN9fMJ0udTkvPH1hzTJmBeOvc+rdLNvjVCemwkANY+5O1df99JCrGR+jWE/s69Gy/PLY24fpgZB5etCi2DmnQu2dLlXFZnE0XF2axJlFIZVREh1hpHWuPYBrLVZeqO1Yy7RZ9UQD7F7RwW+jCJxFw7mdPecshj+PcMiPXAx8dYJIkQgKGtIHv6EcnKJV9BHYcQHBf+1QzzglJr1/Fh0SqxPEca4F4C0V0B8/Y8fTyGu03fzJeHqSDnRjOQmPKaAf4KJEAjjj+9lODU/DbxU9Q3ekrokg7ihvXWC8oaOApM7TmuvyFSC2x6c5D/lN7240w/h6EsveVlS81ZK3lSnsyg== 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=8teiuoP4rYWbQvEmx2LpbVb+Gjaic2scWb+kK+h/J2U=; b=M3kFLdJDGoDYJ613kSAik/OR7jN/wKJqJCAJamCHcm8QQfvH8woTUnAEp6lztA2W5TfkGUsLwp/ZaCvC+burQbBAR3DnBSqtW+wPO3livFI8nqt/8DM2DNPAKzop8re5k5b+JKkfiC/XBmrhX+egoIt4GIVQ5BAgsOCSz3ZMqUf02sfLTPfxOdSsNEr/XgfYRjCkI3s8nUg1I5Bj9cd5RvqZgT8HaOlkylr92ybKmhYqnIyNlyIcGv1XD0XQ4j0j4Bf6Xe9CBkAtfj4nCjWffU6RdYjWUxapcq/gTJJwDCKXq9NWWY6JbAiVHRrSsua2bksbUx+/iQVqxWDCqmIPOQ== Received: from DS7PR03CA0149.namprd03.prod.outlook.com (2603:10b6:5:3b4::34) by DM4PR12MB6184.namprd12.prod.outlook.com (2603:10b6:8:a6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Thu, 2 Feb 2023 16:25:59 +0000 Received: from DM6NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b4:cafe::5f) by DS7PR03CA0149.outlook.office365.com (2603:10b6:5:3b4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.24 via Frontend Transport; Thu, 2 Feb 2023 16:25:59 +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 DM6NAM11FT035.mail.protection.outlook.com (10.13.172.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.25 via Frontend Transport; Thu, 2 Feb 2023 16:25:59 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Thu, 2 Feb 2023 08:25:50 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 2 Feb 2023 08:25:50 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36 via Frontend Transport; Thu, 2 Feb 2023 08:25:48 -0800 From: Michael Baum To: CC: Matan Azrad , Akhil Goyal , "Thomas Monjalon" , , Subject: [PATCH v2 3/8] compress/mlx5: fix QP setup for partial transformations Date: Thu, 2 Feb 2023 18:25:32 +0200 Message-ID: <20230202162537.1067595-4-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230202162537.1067595-1-michaelba@nvidia.com> References: <20230109075838.2508039-1-michaelba@nvidia.com> <20230202162537.1067595-1-michaelba@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT035:EE_|DM4PR12MB6184:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f629455-78ea-4246-c1f5-08db053a2b5d X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hZ6NqU7yW0pPaTFwOELN1i0h7vNue/W6+2dkxdZ8eP17Y/8fukjHCXrbB2MV1OTc/v/wau+6OUvTy1dS0tiVyvxMF1H7WFbcH8IjIRY7c98hPcnUUtpMfBhbN/E6auIN84IC1eGRQ5fcPKtSkxO/1mVgiW/rWCk61grHZlP48Eo3qybG321JRTwhHq9ZCA6Q+9L8n8SyjjHoVhWF6sZct8Cxd+OI+WXzLJc3Oqso9RUI8wkr4iJABQnRtgy7iC3zLzsfI7Cn8Gm1Q8iWPjgMFJpMfsFTEQWOkt1Ik9RVjjLv0VnaTinG80ntwSw/hOdq6klA15LjxM8xDzqTAW/MALvXOzCcSzZstBk8Ha69BYOAZJYKOBcJ3+qJcritFTH7jU9t/JEa8K04uAin853j9a1HzQLAejpTmuF0b6MHtfP0aQVuYPlOogjWjKQ4riD9lbQzbXD3zWs/ko41Uumj4iMlTL2zBIY1JTinr8vsOPructRUCQbVmakfgjGf4bEhPGGAqVMgAgm878T+2mj1s0DHbqA4zrOzuvbckv1l54le/pCXxo1sx2bpJhy8YI1gs+jMqKB4Ly7sSCN3+lnem11Ln+a5lzBxRZnPYEEidb/TEF3Z+QDUHKz4+7t5eUs9CIhFdhd92KnU6bPqvo968Zl50Ok3FjXeRd3jEnY8nOuA06NVfdeSnGL0dguwNR6qQS0AV9Lm73jn0DvzBv6uYg== 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:(13230025)(4636009)(376002)(396003)(346002)(39860400002)(136003)(451199018)(36840700001)(46966006)(40470700004)(2906002)(36756003)(336012)(82310400005)(54906003)(83380400001)(426003)(6666004)(316002)(47076005)(186003)(478600001)(40460700003)(26005)(356005)(6286002)(7696005)(70586007)(55016003)(8936002)(4326008)(70206006)(41300700001)(8676002)(5660300002)(36860700001)(40480700001)(86362001)(1076003)(82740400003)(7636003)(6916009)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2023 16:25:59.5301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f629455-78ea-4246-c1f5-08db053a2b5d 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: DM6NAM11FT035.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6184 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The mlx5_compress_qp_setup() function creates QP for compress, decompress and DMA. Thus, the MMO flag is turned on only when all operations are supported. However, since partial transformations have been allowed, it should be turn on for part of them. This patch removes the compress MMO support requirement. Fixes: 2efd26544554 ("compress/mlx5: support partial transformation") Cc: rzidane@nvidia.com Cc: stable@dpdk.org Signed-off-by: Michael Baum --- drivers/compress/mlx5/mlx5_compress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c index c46fb4eb89..c4bf62ed41 100644 --- a/drivers/compress/mlx5/mlx5_compress.c +++ b/drivers/compress/mlx5/mlx5_compress.c @@ -243,8 +243,8 @@ mlx5_compress_qp_setup(struct rte_compressdev *dev, uint16_t qp_id, mlx5_ts_format_conv(priv->cdev->config.hca_attr.qp_ts_format); qp_attr.num_of_receive_wqes = 0; qp_attr.num_of_send_wqbbs = RTE_BIT32(log_ops_n); - qp_attr.mmo = priv->mmo_decomp_qp && priv->mmo_comp_qp - && priv->mmo_dma_qp; + qp_attr.mmo = priv->mmo_decomp_qp || priv->mmo_comp_qp || + priv->mmo_dma_qp; ret = mlx5_devx_qp_create(priv->cdev->ctx, &qp->qp, qp_attr.num_of_send_wqbbs * MLX5_WQE_SIZE, &qp_attr, socket_id); -- 2.25.1