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 7B4F2A0C45; Sun, 12 Sep 2021 18:37:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8E2740042; Sun, 12 Sep 2021 18:37:18 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2076.outbound.protection.outlook.com [40.107.92.76]) by mails.dpdk.org (Postfix) with ESMTP id E71034003D for ; Sun, 12 Sep 2021 18:37:16 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QMGIS+EWD210do4rVlQ45RgK41SrTwrqJRreL14NTBsXAVwxhiC0wUzC5aYQRgBNsWapQBxbKnNJ1P6+E3PUyzTFTAS4rK6ELQNcvX/NuxrXEyXD+uZLi7I0TkUpJJZuaSZ3utOp+4kZ+MognfjIr3ON8fbwk4ADuBN7CimToulACk2DEbq8slN8Q8T/x2+R0h6fUKUuqNQaZX2yZmRZbLGjzuMgvMDm4UcIHM98jI5M1/JWchucdHjElE+5Gh4XfHaEkraqpynvzy7LgtpJCY2etenb7DDRHxAroye2WZuJMNb9dplsUqrWZhcxZLd6rEkC7eGEsCGA4PyhbBPUGw== 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; bh=IA17uRypzah/L5OY3+p5J1IFQFae0JHyxrvfTxdhrHw=; b=PkekduPPHJ0TwnL1YqUyu2IEtXkT+hA9v0PkbtQXFRp2RKbeBJt2SHEkZVmwEGjHp0DGPbyi5oKzqoL/3QlWKwxSxhFxw2h0WrNgIsPRabHDm1gOc1cwtj4xeRiHIi4qb7GRXNT/iHzOW7a76ZDL1F8t3dldXB7WA6+N5b3Eg4DFm4jEYDJ4CiBmqC1QsGt4spxieIFiX2VAjadDl4BpmjSs3JSb6+SNQcGHiRvvCQ9nI3A3OGNycQQprVoixDaent89QMtWcRrV2lREdENJwCkEcxY75+Ny9BDijW0jsihc5wMO2REOKnL58iJcGLxgzHw1v6ryvuL3Gm8Q8ns3Kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none 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=IA17uRypzah/L5OY3+p5J1IFQFae0JHyxrvfTxdhrHw=; b=hAxi8wPcdcPXNoWdP9FQ34oYdKU8FGxW+n4VsmRFhYOkUKf9VvCHaXb0y6pq8OCQfr3RgiR7BU3MSoUQ9EQ2/fStWCjExo3YO4WWiGTMTqpQVX4mmesAvh1v70fDWvQp6w8USbnv3B/DlMN1uPFdomkQS1l4PN/l8ePg9xHO4LYflrR0YYTfpFxfehzZZAheAwaIDehmBUqVHVcYU7H/uiLv1Cap+5vA4kBlCeCIsLmqPp77AaGpGRwxhk9rvAWvtF9RKF/YR0O6voDF5nX8yi7gCRHWrhjZ0P6QtNCJgMVG0Zvmy/trkLNdl1XWos1ud0mnOhexvgxlRIzQu23D9Q== Received: from MW4P221CA0006.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::11) by DM5PR12MB2406.namprd12.prod.outlook.com (2603:10b6:4:b7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Sun, 12 Sep 2021 16:37:15 +0000 Received: from CO1NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8b:cafe::b6) by MW4P221CA0006.outlook.office365.com (2603:10b6:303:8b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Sun, 12 Sep 2021 16:37:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by CO1NAM11FT055.mail.protection.outlook.com (10.13.175.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4500.14 via Frontend Transport; Sun, 12 Sep 2021 16:37:15 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 12 Sep 2021 09:37:14 -0700 Received: from nvidia.com (172.20.187.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 12 Sep 2021 16:37:13 +0000 From: Raja Zidane To: Date: Sun, 12 Sep 2021 16:36:47 +0000 Message-ID: <20210912163652.24983-1-rzidane@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210903142157.25617-2-rzidane@nvidia.com> References: <20210903142157.25617-2-rzidane@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8368a354-68b1-4e0e-00db-08d9760b9439 X-MS-TrafficTypeDiagnostic: DM5PR12MB2406: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pew0E6VDaXNnBylTpf9hqD+JjkybyMwi6P6pFWnm8XaUmzPPLuLTEbVhQ8LKNTqqHjAwmyUl0AY4MyF4QbqsMrqQ38o+xF23KEYY8+ONvZIlcKKSg1OiNvq9ZGKCOxsLVSDivE5TWArFdYkqORHPKqF4m9yQDmKBqCnGHzV3Lytmi0J+0gZ7UUzKUwMfjY2hCCmBkZLi4tNEA0dnXi5YgDMDjrgnMqtOvdLPwMFd0Y9pJUp4Zzm7iem77NbGts7bRWPAeJYbuwT8UJVC32OR2wX/kCNYhcJKd24Y1w9Rof+q+OoOrfHbeX7W52u+br2A6OLtWeaMP+BySXaeqBWxZnitn2ChDOj7kHo56jnAOZKsWKwxxwSOhZh8kKb8LwtTm0gpIFSSGGNwNlxq442xrPlfbzak2wWA5ivuo6gKq3Y4sqr6eWO7kXaRdbCpFMdy5wyp0GKVhjanQy9lqhEFgtO3JtPd5rPfhpdlObUjw3V9Vhx1mqegD0DzATjMuzoezbExjUHLRzTzXzhxusoKobSHPNCsyrnyZHi0zmvvi/m9i/ClKGwYz3XnBbobqWAmckGO9h3mbkCTEwMwRIZ/LWMLhyOWnaCZ+TNuc82RgxC37VdAit+Y9rRVtt4ibgket1Nuv0LCmwklPcOsYJOMwDsh8XEZrim/2x3bFr9Xnk5HwlpdATuhbaFuCtf/dpdPS6GDkVb1SN8gfcWddmGGyg== X-Forefront-Antispam-Report: CIP:216.228.112.32; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid01.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(136003)(346002)(46966006)(36840700001)(6286002)(26005)(1076003)(8936002)(8676002)(47076005)(70206006)(70586007)(82310400003)(5660300002)(2616005)(16526019)(2906002)(186003)(7696005)(7636003)(426003)(55016002)(6916009)(316002)(356005)(36860700001)(36756003)(86362001)(83380400001)(478600001)(6666004)(82740400003)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2021 16:37:15.1998 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8368a354-68b1-4e0e-00db-08d9760b9439 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.32]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2406 Subject: [dpdk-dev] [PATCH V2 0/5] mlx5: replaced hardware queue object 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 Sender: "dev" The mlx5 PMDs for compress and regex classes use an MMO WQE operated by the GGA engine in BF devices. Currently, all the MMO WQEs are managed by the SQ object. Starting from BF3, the queue of the MMO WQEs should be connected to the GGA engine using a new configuration, mmo, that will be supported only in the QP object. The FW introduced new capabilities to define whether the mmo configuration should be configured for the GGA queue. Replace all the GGA queue objects to QP, set mmo configuration according to the new FW capabilities. V2: fix coding style issues. Raja Zidane (5): common/mlx5: share DevX QP operations common/mlx5: update new MMO HCA capabilities common/mlx5: add MMO configuration for the DevX QP compress/mlx5: refactor queue HW object regex/mlx5: refactor HW queue objects drivers/common/mlx5/mlx5_common_devx.c | 144 +++++++++++++++++++ drivers/common/mlx5/mlx5_common_devx.h | 23 +++ drivers/common/mlx5/mlx5_devx_cmds.c | 23 ++- drivers/common/mlx5/mlx5_devx_cmds.h | 13 +- drivers/common/mlx5/mlx5_prm.h | 48 ++++++- drivers/common/mlx5/version.map | 3 + drivers/compress/mlx5/mlx5_compress.c | 73 +++++----- drivers/crypto/mlx5/mlx5_crypto.c | 100 ++++--------- drivers/crypto/mlx5/mlx5_crypto.h | 5 +- drivers/regex/mlx5/mlx5_regex.c | 7 +- drivers/regex/mlx5/mlx5_regex.h | 16 ++- drivers/regex/mlx5/mlx5_regex_control.c | 65 +++++---- drivers/regex/mlx5/mlx5_regex_fastpath.c | 170 ++++++++++++----------- drivers/vdpa/mlx5/mlx5_vdpa.h | 5 +- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 59 +++----- 15 files changed, 460 insertions(+), 294 deletions(-) -- 2.17.1