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 4C3A0A034F; Sat, 16 Oct 2021 11:12:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C33EA40141; Sat, 16 Oct 2021 11:12:35 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2042.outbound.protection.outlook.com [40.107.243.42]) by mails.dpdk.org (Postfix) with ESMTP id A44024003F for ; Sat, 16 Oct 2021 11:12:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LLUSoTrnCZ2scMkYqX7DflzZJbPQNs0zoe5D6bb7yok/vxrlRmy7vMtPhLlDQgpWQt9FQye5ekujLhsfO5PKjfUB6BWEimNBqQvs6+Mil9bIErbmA1YB+PT+poZY9H6r07RwMqpDxUm46RzpAcSIFycornSLgRdKVRfeSDfPiMQBYuhwKoptLFLVhc0rH8P/wd2YFztkoEQ2gV7aAG6Ly7V2byt0BwdkpQUGyueD/S7pufF5Jh5/xyVkJWgxAYDdo2A9Vnj2o70InYk7E8IbFIYq5fNtx/MJ26f1LGhjVAiQx06PNYWlNOHQUGtqy0EPD4jPBe5BDseEsKjKtUF3BA== 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=xyhNCt6Csis6CuHPvlJADH26Ei/l2eYQAzioVproXNs=; b=XTuXrQVglVhFaAorl+K/ojPtWGEdtaU7Mj2H8gyYUWSbxnBrx2mVO1GavFl3IbodZLaCGlQzHP7AKYZJMYYRAZ22MhYRjZMkHsvbxFjpPOw3v5UreVv/YYhUB9I+ZsTRGJFIr5VHeOwo+PPcYMekOJOVytxr8HJPVlf6dss9dqqbkYbHODFx43a/0d0TjxnJCJPfgl+1NrPCeCw4L87QFKKW9GhHX3uYTuHKHR8K8VJiif3zcNTy89StdiPA5QuQQFyWVqfh//vYzU7r+DoEW1zz7wLWrw++PVbX+5nXWqmaQUgniyrxGWfuX1WYHMiuivdyMkuLTYbSyGQaXGHaWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=xyhNCt6Csis6CuHPvlJADH26Ei/l2eYQAzioVproXNs=; b=H6+c/+PVVtXnKdywazH2nMt1BqNFj3XDm1Akc8aWsMJqEM0/G5NShqkySMG763D9FECvHgHgu74lWWMeXOj4NFFh8dpICU24Pzc2kCstVXwjy+BnNYoYfyxtlP3+LtZpjGPCg52KrnopEuTNzx86oOtfT1gBLZOPe+gZqBhTKYUguSwZgf0TPd4N+tnqdlgh143Og2dEssR9xBtBGNkHAifbmKoc0mrhFcdz69DohT2J56mrq5GVVgiS39fnD+xNL71HNtsjqCxcrJ5hlqu5RDI6nE4ujGSHOHs737A7HTy21TuRecnSU1OKg14o0XwL880bmhRAt8K7X65d4ecKIA== Received: from BN8PR04CA0055.namprd04.prod.outlook.com (2603:10b6:408:d4::29) by DM5PR1201MB0122.namprd12.prod.outlook.com (2603:10b6:4:57::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Sat, 16 Oct 2021 09:12:31 +0000 Received: from BN8NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:408:d4:cafe::a1) by BN8PR04CA0055.outlook.office365.com (2603:10b6:408:d4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Sat, 16 Oct 2021 09:12:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) 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.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT020.mail.protection.outlook.com (10.13.176.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Sat, 16 Oct 2021 09:12:31 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 16 Oct 2021 09:12:30 +0000 From: Xueming Li To: CC: , Lior Margalit Date: Sat, 16 Oct 2021 17:12:00 +0800 Message-ID: <20211016091214.1831902-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210926111904.237736-1-xuemingl@nvidia.com> References: <20210926111904.237736-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 15d4e5f7-e0dd-4b00-6ad7-08d9908515a1 X-MS-TrafficTypeDiagnostic: DM5PR1201MB0122: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JfG5CfnaR1dd3PC6gb2GXXNuuUDTXob+/sWbSXRgPnocMKG77S6hozb1Y8ap2Lyz5dEzl1ZutaOBZXo2gxWcCq2UV5UO+WioeJONIlp3HEDjr8lu1JEAW9PjkhClEQfiwOavVCurxDcwGWW93+WgkEobANq0ljYA1g7K184u790VfsPKdRtlUFTCndl8RzOKPxyrVWAlqWELvLR0cAou7A1v410tRFC/fHoTcp5g+WeKnU1peqD2NGss1YNMoGLenr4mDPM1UHSSGGLN2BQNgAizFUmIVkwFjP3wGYxqMrIVWSZ57I7siXwhzOdhx1IrXKFPrVmL+SCnK67eVC3qipBIKUAH2dfuhcfpVy+tRFyJ3AaL/XrvShlDM4yAHj/CpRoMz5oIPciH9zDNqyFWv3i4JyNlW+toaWn6Kyh09eIdjzOuhXuCRN8LYIwkK+Ea0C0qEFpvBZcnd7jDC237ywEt1Da1Auelo5yMyi5jl1BrN0YZEPytYy8AMwpSD3jb3lLAVVueGpfr/q1LEvXqQxNB61m9e59RifWxEtZjQgvVMrTZTNMQpQ+dvmYdwKKbSuK+7gEEgcSE3EjcjlpB8plWFOKFGygKzhpD0cggHwmapMX8d1yYmSHvCs7XXphGzzhC4hty6PqA59EZherzAFj+QNlFvIxFL8k/4KhTWUz9ddkt5xc0xcc27eyTN2ZYyzGDEFE3OeQn2GVKVKg0mQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(8936002)(508600001)(55016002)(5660300002)(356005)(47076005)(6916009)(4326008)(426003)(36906005)(70206006)(36756003)(2906002)(54906003)(83380400001)(1076003)(2616005)(316002)(336012)(8676002)(6286002)(186003)(7636003)(70586007)(7696005)(36860700001)(82310400003)(107886003)(26005)(6666004)(16526019)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2021 09:12:31.5907 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15d4e5f7-e0dd-4b00-6ad7-08d9908515a1 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.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT020.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0122 Subject: [dpdk-dev] [PATCH v2 00/13] net/mlx5: support shared Rx queue 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" Implemetation of Shared Rx queue. Depends-on: series-19708 ("ethdev: introduce shared Rx queue") Depends-on: series-19698 ("Flow entites behavior on port restart") v1: - initial version v2: - rebased on latest dependent series - fully tested Viacheslav Ovsiienko (1): net/mlx5: add shared Rx queue port datapath support Xueming Li (12): common/mlx5: support receive queue user index common/mlx5: support receive memory pool net/mlx5: fix Rx queue memory allocation return value net/mlx5: clean Rx queue code net/mlx5: split multiple packet Rq memory pool net/mlx5: split Rx queue net/mlx5: move Rx queue reference count net/mlx5: move Rx queue hairpin info to private data net/mlx5: remove port info from shareable Rx queue net/mlx5: move Rx queue DevX resource net/mlx5: remove Rx queue data list from device net/mlx5: support shared Rx queue doc/guides/nics/features/mlx5.ini | 1 + doc/guides/nics/mlx5.rst | 6 + drivers/common/mlx5/mlx5_common_devx.c | 296 +++++++++-- drivers/common/mlx5/mlx5_common_devx.h | 19 +- drivers/common/mlx5/mlx5_devx_cmds.c | 52 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 16 + drivers/common/mlx5/mlx5_prm.h | 93 +++- drivers/common/mlx5/version.map | 1 + drivers/net/mlx5/linux/mlx5_os.c | 2 + drivers/net/mlx5/linux/mlx5_verbs.c | 173 ++++--- drivers/net/mlx5/mlx5.c | 11 +- drivers/net/mlx5/mlx5.h | 17 +- drivers/net/mlx5/mlx5_devx.c | 275 +++++----- drivers/net/mlx5/mlx5_ethdev.c | 21 +- drivers/net/mlx5/mlx5_flow.c | 45 +- drivers/net/mlx5/mlx5_mr.c | 7 +- drivers/net/mlx5/mlx5_rss.c | 6 +- drivers/net/mlx5/mlx5_rx.c | 35 +- drivers/net/mlx5/mlx5_rx.h | 46 +- drivers/net/mlx5/mlx5_rxq.c | 633 +++++++++++++++-------- drivers/net/mlx5/mlx5_rxtx.c | 6 +- drivers/net/mlx5/mlx5_rxtx_vec.c | 8 +- drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 14 +- drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 12 +- drivers/net/mlx5/mlx5_rxtx_vec_sse.h | 8 +- drivers/net/mlx5/mlx5_stats.c | 9 +- drivers/net/mlx5/mlx5_trigger.c | 161 +++--- drivers/net/mlx5/mlx5_vlan.c | 16 +- drivers/regex/mlx5/mlx5_regex_fastpath.c | 2 +- 29 files changed, 1350 insertions(+), 641 deletions(-) -- 2.33.0