From patchwork Tue Feb 28 16:43:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kozyrev X-Patchwork-Id: 124574 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2CF8E41D9E; Tue, 28 Feb 2023 17:43:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C345740EE6; Tue, 28 Feb 2023 17:43:37 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2059.outbound.protection.outlook.com [40.107.244.59]) by mails.dpdk.org (Postfix) with ESMTP id 935354021F for ; Tue, 28 Feb 2023 17:43:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SFjrx1TB09466Hidm1QtgvYivhIr1h1EFARZAPDY66jOwABR1t6PNXzV2XCJtg29JTbrkY/n+tYyM0GBzIXgWM3ZKV1t1PV46nOoH2K3+VYQafK2hDB583/QzZdQKgoBdPxBLa1gndHVembySH3F/cnNWKAweYsJB+LAZnguvG0DyfuErCtZ2BsqA/FjvSez6J1S/wCbiIn3J0SWQHkZ92CBdqAWgS8eI0CSFJhAysIv2OCTbsfDuMf+ZKRHj3zCmTGQkw/MtpQOeQFXe4y2FOYUiR4F3TQXPMuTDtrCu16J+3UaEhrF/SlFpY5KEnPbwA/tnccFQtbBWCi9ew1lXg== 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=HeuberkySKhGgdje0v/62zwhW582UWdYCI8gdKdn+/s=; b=MybJC6/rWlmZSv34duwwa0LRrCJ5qOfvHgWSHGgnZzGElqqaCOB9LtcVwaWliHPBET4RJC81XI5SKQkn5GoDuRxta0Y7nYm8Sz+IPKBzlI4+V1VrWYix9KJUysm11ib7cxlFk+P+2P3S3h19HVAc8QJHJp4GT/9MFt68Rk/KNoO41+L6eK4oBMdI4rjLIhdWzU4TcKtDmxrnNcv0qtk+4XgprYPvh5obqk91ngfysh3LYIU4IwG1QlKOoAqWLKWRmFI2NFkh00ljPFSec4qHAi/KH1NVcaqH082wd2nJrte3+eQaXPOiZZnPjptQJie+fE5kPbVT1wvbLmIH6AUwUw== 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=HeuberkySKhGgdje0v/62zwhW582UWdYCI8gdKdn+/s=; b=Cjgb6D5clsainGLdMndL6YMpP8+RA+aEz1B91aOkV8nVcDnVD/z9BqQeyFNIZcwgy8xJcRjtIkFpdLte58p8E3H0eTO3XDYOFZWw0oF42yKm9cz8B/bKQRZZJwCPeFRk9FhPeonDosXDyZCScsXho4SG+GAoCsodrtU/1Gg04+WDj/6sUAsngPgiWAsfNDa1Xe+3T8wpELfQZkVhygXzIkq0M73PxcL6tqpgbbgzz6iCY2cr3fHSatBk5TloMVuDjPCv8SmL4mPKi6V+1PvjffwVaeAv1yQ210zKVO3VdB4EImJp1ppzHgfFFXVRVMeuPeHeEdJQlwvlFuXNKxp++g== Received: from DS7PR03CA0282.namprd03.prod.outlook.com (2603:10b6:5:3ad::17) by CO6PR12MB5443.namprd12.prod.outlook.com (2603:10b6:303:13a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Tue, 28 Feb 2023 16:43:34 +0000 Received: from DS1PEPF0000E63A.namprd02.prod.outlook.com (2603:10b6:5:3ad:cafe::10) by DS7PR03CA0282.outlook.office365.com (2603:10b6:5:3ad::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Tue, 28 Feb 2023 16:43:34 +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 DS1PEPF0000E63A.mail.protection.outlook.com (10.167.17.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Tue, 28 Feb 2023 16:43:34 +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; Tue, 28 Feb 2023 08:43:26 -0800 Received: from pegasus01.mtr.labs.mlnx (10.126.230.37) 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; Tue, 28 Feb 2023 08:43:24 -0800 From: Alexander Kozyrev To: CC: , , Subject: [PATCH 0/5] net/mlx5: enhanced CQE compression layout Date: Tue, 28 Feb 2023 18:43:05 +0200 Message-ID: <20230228164310.807594-1-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Originating-IP: [10.126.230.37] 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: DS1PEPF0000E63A:EE_|CO6PR12MB5443:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c3a1bce-f9b0-41dd-3e7f-08db19aaeef5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BeD+GyJjHg/O5WP+Y3rgGT3q8UKNShIP4pLjoVs7RHtunJGFWrOApGFfis0GoGpE+bpnRnBb6GPR28apJR0puY5yoiBPiS0m/7mKZqoap1hBQIKa5j8z4mL210gDCsED2+uaAFzmCUXOCa5yJuGxlNy3edTnZPzx7SLZvuYVa8NTyn+64rR80ZHcvZGF69q7phEySATExjw7g/uiaiGlSkaU68e9f2iNvMB8qc9tYCmRLLi/94A3D1LIkGf/bk6Rpcrm4D0YFrvKotMme0sG22jtZlYgrU132tdIY10eCDtzZodXNN4ENc6v4lCu675kx/z4vDj3hNmjqg292/ZJHf1X8ABZNsYH5TbXgcLopDn2SRE47eNCIU52GcfJ9EZallIG6jbqsj8BL1zemqFUejn48NZvjg5wGrCz/AclCXdFFEhxPOgnc8grMYUQmOHjphdxcBGoPI2e3xLpaH7uf1pGoDZMIvFtAz0l3RRUPRh9uN/m6OFyfmsKZKG5VI/KCruSusOhey0hd1PgPSxHJV/FtRjsvXWyVb/Q+ZZx3WdX7HNu07ToApnBzLpHF+TJ/ztSXHN+oPJ+TdoV2GjoVHOY8+bK1Y2Fx8BE19ZIa5xe1bewBCIikqZPia3yAYt9VDA63pNYJ8iByBWe5ShPDHznjjoL8EGNSVZ513gT3UucgJcK1iKMGASr8DrKaOi54GdHQ9DyODiarQ3BJQoqKw== 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)(346002)(39860400002)(396003)(136003)(376002)(451199018)(46966006)(40470700004)(36840700001)(86362001)(82310400005)(2616005)(316002)(36756003)(54906003)(16526019)(40460700003)(186003)(2906002)(5660300002)(36860700001)(426003)(8676002)(6916009)(4326008)(70586007)(41300700001)(70206006)(1076003)(107886003)(47076005)(26005)(6666004)(478600001)(8936002)(40480700001)(336012)(7636003)(356005)(82740400003)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2023 16:43:34.5679 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c3a1bce-f9b0-41dd-3e7f-08db19aaeef5 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: DS1PEPF0000E63A.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5443 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 Support Enhanced CQE Compression Layout in mlx5 driver for better latency and SW utilization. Alexander Kozyrev (5): common/mlx5: detect enhanced CQE compression capability common/mlx5: add CQE validity iteration count net/mlx5: support enhanced CQE compression in Rx burst net/mlx5: support enhanced CQE zipping in vector Rx burst net/mlx5: enable enhanced CQE compression doc/guides/nics/mlx5.rst | 14 +- doc/guides/rel_notes/release_23_03.rst | 1 + drivers/common/mlx5/mlx5_common.h | 57 +++++++- drivers/common/mlx5/mlx5_common_devx.c | 4 +- drivers/common/mlx5/mlx5_devx_cmds.c | 3 + drivers/common/mlx5/mlx5_devx_cmds.h | 2 + drivers/common/mlx5/mlx5_prm.h | 42 ++++-- drivers/net/mlx5/mlx5.c | 17 ++- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_devx.c | 2 + drivers/net/mlx5/mlx5_rx.c | 175 +++++++++++++++-------- drivers/net/mlx5/mlx5_rx.h | 13 +- drivers/net/mlx5/mlx5_rxq.c | 5 +- drivers/net/mlx5/mlx5_rxtx_vec.c | 24 +++- drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 108 ++++++++++---- drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 91 ++++++++---- drivers/net/mlx5/mlx5_rxtx_vec_sse.h | 94 ++++++++---- 17 files changed, 475 insertions(+), 178 deletions(-)