From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2534DA0562; Thu, 2 Apr 2020 21:21:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BAC611BEAE; Thu, 2 Apr 2020 21:21:14 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 7371D1BEA8 for ; Thu, 2 Apr 2020 21:21:13 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from vuhuong@mellanox.com) with ESMTPS (AES256-SHA encrypted); 2 Apr 2020 22:21:12 +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 032JL9dh017989; Thu, 2 Apr 2020 22:21:10 +0300 From: Vu Pham To: dev@dpdk.org Cc: viacheslavo@mellanox.com, orika@mellanox.com, matan@mellanox.com, rasland@mellanox.com, Vu Pham Date: Thu, 2 Apr 2020 12:21:01 -0700 Message-Id: <20200402192105.11606-1-vuhuoong@mellanox.com> X-Mailer: git-send-email 2.16.6 Subject: [dpdk-dev] [PATCH 0/4] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Vu Pham 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 move multi-process IPC APIs to mlx5 common driver and make it become the base commit. Vu Pham (4): common/mlx5: refactor multi-process IPC handling codes to common driver net/mlx5: modify net PMD to use common multi-process APIs common/mlx5: refactor memory management codes net/mlx5: modify net PMD to use common memory management driver 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 | 1106 +++++++++++++++++++++ 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 | 1167 +---------------------- 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, 1690 insertions(+), 1485 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