Message ID | 20200413211748.20500-1-vuhuong@mellanox.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34D1BA0577; Mon, 13 Apr 2020 23:17:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F3BD1C027; Mon, 13 Apr 2020 23:17:56 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 368351BFEB for <dev@dpdk.org>; Mon, 13 Apr 2020 23:17:55 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from vuhuong@mellanox.com) with ESMTPS (AES256-SHA encrypted); 14 Apr 2020 00:17:53 +0300 Received: from mti-swat6.mti.labs.mlnx. (mti-swat6.mti.labs.mlnx [10.9.20.106]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 03DLHpYv021454; Tue, 14 Apr 2020 00:17:52 +0300 From: Vu Pham <vuhuong@mellanox.com> To: dev@dpdk.org Cc: viacheslavo@mellanox.com, orika@mellanox.com, matan@mellanox.com, rasland@mellanox.com, Vu Pham <vuhuong@mellanox.com> Date: Mon, 13 Apr 2020 14:17:46 -0700 Message-Id: <20200413211748.20500-1-vuhuong@mellanox.com> X-Mailer: git-send-email 2.16.6 In-Reply-To: <20200402192105.11606-1-vuhuoong@mellanox.com> References: <20200402192105.11606-1-vuhuoong@mellanox.com> Subject: [dpdk-dev] [PATCH v4 0/2] refactor multi-process IPC and memory management codes to common driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
refactor multi-process IPC and memory management codes to common driver
|
|
Message
Vu Pham
April 13, 2020, 9:17 p.m. UTC
Current mlx5 net PMD and future mlx5(regex,...) PMDs that run and share the same HCAs need to use common memory management driver. Memory management codes embeddedly use multi-process IPC for primary/secondary processes to register and sync on memory registrations MRs. That's the main reason to refactor and move multi-process IPC APIs to mlx5 common driver and make it become the base commit, then refactor and move common MR codes to common driver in subsequent patch. Vu Pham (2): common/mlx5: refactor multi-process IPC handling codes to common driver common/mlx5: refactor memory management codes drivers/common/mlx5/Makefile | 4 +- drivers/common/mlx5/meson.build | 2 + drivers/common/mlx5/mlx5_common_mp.c | 188 ++++ drivers/common/mlx5/mlx5_common_mp.h | 98 ++ drivers/common/mlx5/mlx5_common_mr.c | 1108 +++++++++++++++++++++ drivers/common/mlx5/mlx5_common_mr.h | 160 ++++ drivers/common/mlx5/rte_common_mlx5_version.map | 27 + drivers/net/mlx5/mlx5.c | 19 +- drivers/net/mlx5/mlx5.h | 55 +- drivers/net/mlx5/mlx5_mp.c | 242 +---- drivers/net/mlx5/mlx5_mr.c | 1169 +---------------------- drivers/net/mlx5/mlx5_mr.h | 87 +- drivers/net/mlx5/mlx5_rxtx.c | 4 +- drivers/net/mlx5/mlx5_rxtx.h | 10 +- drivers/net/mlx5/mlx5_rxtx_vec.h | 2 + drivers/net/mlx5/mlx5_trigger.c | 1 + drivers/net/mlx5/mlx5_txq.c | 3 +- 17 files changed, 1692 insertions(+), 1487 deletions(-) create mode 100644 drivers/common/mlx5/mlx5_common_mp.c create mode 100644 drivers/common/mlx5/mlx5_common_mp.h create mode 100644 drivers/common/mlx5/mlx5_common_mr.c create mode 100644 drivers/common/mlx5/mlx5_common_mr.h
Comments
Hi, > -----Original Message----- > From: Vu Pham <vuhuong@mellanox.com> > Sent: Tuesday, April 14, 2020 12:18 AM > To: dev@dpdk.org > Cc: Slava Ovsiienko <viacheslavo@mellanox.com>; Ori Kam > <orika@mellanox.com>; Matan Azrad <matan@mellanox.com>; Raslan > Darawsheh <rasland@mellanox.com>; Vu Pham <vuhuong@mellanox.com> > Subject: [PATCH v4 0/2] refactor multi-process IPC and memory > management codes to common driver > > Current mlx5 net PMD and future mlx5(regex,...) PMDs that run > and share the same HCAs need to use common memory management > driver. Memory management codes embeddedly use multi-process IPC > for primary/secondary processes to register and sync on memory > registrations MRs. That's the main reason to refactor and move > multi-process IPC APIs to mlx5 common driver and make it become > the base commit, then refactor and move common MR codes to > common driver in subsequent patch. > > Vu Pham (2): > common/mlx5: refactor multi-process IPC handling codes to common > driver > common/mlx5: refactor memory management codes > > drivers/common/mlx5/Makefile | 4 +- > drivers/common/mlx5/meson.build | 2 + > drivers/common/mlx5/mlx5_common_mp.c | 188 ++++ > drivers/common/mlx5/mlx5_common_mp.h | 98 ++ > drivers/common/mlx5/mlx5_common_mr.c | 1108 > +++++++++++++++++++++ > drivers/common/mlx5/mlx5_common_mr.h | 160 ++++ > drivers/common/mlx5/rte_common_mlx5_version.map | 27 + > drivers/net/mlx5/mlx5.c | 19 +- > drivers/net/mlx5/mlx5.h | 55 +- > drivers/net/mlx5/mlx5_mp.c | 242 +---- > drivers/net/mlx5/mlx5_mr.c | 1169 +---------------------- > drivers/net/mlx5/mlx5_mr.h | 87 +- > drivers/net/mlx5/mlx5_rxtx.c | 4 +- > drivers/net/mlx5/mlx5_rxtx.h | 10 +- > drivers/net/mlx5/mlx5_rxtx_vec.h | 2 + > drivers/net/mlx5/mlx5_trigger.c | 1 + > drivers/net/mlx5/mlx5_txq.c | 3 +- > 17 files changed, 1692 insertions(+), 1487 deletions(-) > create mode 100644 drivers/common/mlx5/mlx5_common_mp.c > create mode 100644 drivers/common/mlx5/mlx5_common_mp.h > create mode 100644 drivers/common/mlx5/mlx5_common_mr.c > create mode 100644 drivers/common/mlx5/mlx5_common_mr.h > > -- > 2.16.6 Fixed first commit title too long, Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh