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 D8347A0C53; Wed, 3 Nov 2021 08:59:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67FD440E0F; Wed, 3 Nov 2021 08:59:11 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2063.outbound.protection.outlook.com [40.107.100.63]) by mails.dpdk.org (Postfix) with ESMTP id 5AFCF40E03 for ; Wed, 3 Nov 2021 08:59:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G0XC3kXxHEOxJQvk90efIOMVmoCYTxlWYiqhx2yIqLWeh8Vw69D/7SoMuJxGVMy0pw3Nrdfaggf0N9FrrAV7h5qKGJwbSwjful77O3CwghRWFkYlkJcxUDwMzVNLOnrNj68AwRk/O2z6g7/LrXrztHU2ZEfrnTB7uf5yO+oUwWOrSRjZHtGHlbaoTiO8HmNXSCtSgTIDYYGVBcrSyiqJOsyzIAX4xcWWJA3IJ5ijPKdMof9VFGptmCtvi2zJi6Id1lLdyyP8dmLcB6Fj8JcoUb/QJ/zgE2WbW5eRHlBYNfdQzJ5gXzDC/LMvWkHDyXW42mfw9WpBXT+M9tw/m3ZYSA== 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=XRjafmlMuIRdoXBbEGSalJe6DKr4ikb3JGwRAtGg2vA=; b=IemNLOuS3dKyYXwjCWOWQuVVLAQXYhx/sTGSWkuSGfcCUBcZBqrcC2qyx7D9VnuFRYyimWhZbYR76RaTxhP2dsrM/Y0T+9ZLsz6y8yBv9S6ve5sUW88xZ/NJZENYHUmP+WAK2t7ld5XCjBA/ndXb78rUEURg4GoMqiCm1jm5siPORXtq3NoLrqYhJhBZNgMRlVIpOMYlfTQr/nmKsccr7VSC0sFoawdu+uarVT1twla0Tq43+QDYStdJusY6NvYzI1pe60NjGUTYTWArVhRkRFsiRatKrSJ4PUj7Q4N4ujHgpbx4ExILbEUJTMlKdYfC/y1JAo7clnnuyrkIZMRtBg== 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=XRjafmlMuIRdoXBbEGSalJe6DKr4ikb3JGwRAtGg2vA=; b=KzMmPwztylxezTzR9i+v0D0gDf2m4Hpe7LP4T3nSRW/SD8X8KvJGMuCuiRnqzqxwnlh6gP1ZAinB7jA2vVP4dcr7gyUAphrEfnTb34Yyf2UhTM+ufiIJrvYOzPRko9MZKUr8vL10cvbpEjoPHaDLHWpCm44buXw+iIQUMHLKDKe34mpAdJSSg+MGlRKnYchn0yH/JZrOYspDGxZ3G8dBhFONJOhbeRKxtifwb25B8FsLXVwq/JFvlitvp7VASuu2R8T5iYFaI7iZeMzSyWjycr4jbKAWWuujXqf8y1wGnWRKXnNYIz+MD5a51JqbEggnc2f5d1w7TCWi4HRwReRVlg== Received: from MW4PR04CA0230.namprd04.prod.outlook.com (2603:10b6:303:87::25) by MN2PR12MB2893.namprd12.prod.outlook.com (2603:10b6:208:107::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Wed, 3 Nov 2021 07:59:07 +0000 Received: from CO1NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:303:87:cafe::3d) by MW4PR04CA0230.outlook.office365.com (2603:10b6:303:87::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 07:59:06 +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 CO1NAM11FT066.mail.protection.outlook.com (10.13.175.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 07:59:06 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 3 Nov 2021 07:59:04 +0000 From: Xueming Li To: CC: , Lior Margalit Date: Wed, 3 Nov 2021 15:58:24 +0800 Message-ID: <20211103075838.1486056-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210727034204.20649-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4078e226-0d81-4978-aa1c-08d99e9fcf34 X-MS-TrafficTypeDiagnostic: MN2PR12MB2893: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jJRalNLW0OTxyrZguZ4TQNJbTNSpZF+8jcbM3mXB0CueDkS+ti44Y6kaPoML9+N4M3jfC1c9rcI9VEhA799/pt2An/25Coq/mg7BrPchBeDmZfRPbRu6tIBpbt29ny1FFiWcj6oXif+jPl9sexQe23NgSayWQJLFO+wq+KhfWHSBq/+vcNVQMAhErZAHV/9G9bWykPUek8aJc/AS0CAp/7P2Z1eHcXgNhTT8dURIRZF5H+Icr9POo/GU2AmyWocuqi2z/37Vf5PgItybThq8S1YDlMz7g7nLSpl8UUhNkNGFcLGxw7dYCk7K/bL6u5ODBSWYpXe5su4TKBALffNy3Ra0fwvKeA9TWyhIHrNAEc9ZbxtAiH+ifYBTwR6J1A1Utn6rwWLprQqQRynFaOZPCipFRh/Yk/4MQyLepH+deRK2DtGev6UY6ZNYs+N9T52wO0Exmey4yJ0OQ/j5zfzzm6RJARStq1D5oyco2kMQQnTVB/JUFrsSH81ff8ex8XvW2awTTzjw35Vu7YVHvNDpsPqekNldLHHY6YY2Jki23KMtmUhNTQKzRA08HGLjd+N9yfHBq4OJ80INIXzEeoIEUy+rCg9PYRki9uyWVRIEZrhQdjONwUlrwUtpm/EkHoCAR1Kk04GauYK0zps1BgP/JI4TGmje5pcW3nmuqo4pFzZtFm3pBQwI0m/wEhB74M/dnF2uXxuyy1FB0WuSXgFJkA== 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)(107886003)(70586007)(26005)(6286002)(7636003)(6666004)(70206006)(86362001)(7696005)(2906002)(1076003)(336012)(6916009)(316002)(82310400003)(36756003)(356005)(55016002)(47076005)(8676002)(83380400001)(186003)(2616005)(426003)(5660300002)(8936002)(36860700001)(54906003)(508600001)(16526019)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 07:59:06.1950 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4078e226-0d81-4978-aa1c-08d99e9fcf34 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: CO1NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2893 Subject: [dpdk-dev] [PATCH v3 00/14] 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-20232 ("Flow entites behavior on port restart") v1: - initial version v2: - rebased on latest dependent series - fully tested v3: - support share_qid of RxQ configuration v4: - internally reviewed - removed MPRQ support - fixed multi-segment support - fixed configure not applied after port restart Viacheslav Ovsiienko (1): net/mlx5: add shared Rx queue port datapath support Xueming Li (13): common/mlx5: introduce user index field in completion net/mlx5: fix field reference for PPC common/mlx5: adds basic receive memory pool support common/mlx5: support receive memory pool net/mlx5: fix Rx queue memory allocation return value net/mlx5: clean Rx queue code net/mlx5: split Rx queue into shareable and private 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 | 295 +++++++++-- 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 | 169 +++--- drivers/net/mlx5/mlx5.c | 10 +- drivers/net/mlx5/mlx5.h | 17 +- drivers/net/mlx5/mlx5_devx.c | 270 +++++----- drivers/net/mlx5/mlx5_ethdev.c | 21 +- drivers/net/mlx5/mlx5_flow.c | 47 +- drivers/net/mlx5/mlx5_rss.c | 6 +- drivers/net/mlx5/mlx5_rx.c | 31 +- drivers/net/mlx5/mlx5_rx.h | 45 +- drivers/net/mlx5/mlx5_rxq.c | 631 +++++++++++++++++------ 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 | 155 +++--- drivers/net/mlx5/mlx5_vlan.c | 16 +- drivers/regex/mlx5/mlx5_regex_fastpath.c | 2 +- 28 files changed, 1378 insertions(+), 584 deletions(-) -- 2.33.0