From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 54375A05D3 for ; Sat, 27 Apr 2019 06:33:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 585A91B71D; Sat, 27 Apr 2019 06:33:03 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 6C8171B659 for ; Sat, 27 Apr 2019 06:33:01 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from viacheslavo@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Apr 2019 07:33:00 +0300 Received: from pegasus12.mtr.labs.mlnx. (pegasus12.mtr.labs.mlnx [10.210.17.40]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x3R4X0eW020373; Sat, 27 Apr 2019 07:33:00 +0300 From: Viacheslav Ovsiienko To: shahafs@mellanox.com Cc: dev@dpdk.org, yskoh@mellanox.com Date: Sat, 27 Apr 2019 04:32:55 +0000 Message-Id: <1556339577-18185-1-git-send-email-viacheslavo@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1556095470-11407-1-git-send-email-viacheslavo@mellanox.com> References: <1556095470-11407-1-git-send-email-viacheslavo@mellanox.com> Subject: [dpdk-dev] [PATCH v3 0/2] net/mlx5: share Memory Regions for multiport devices 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190427043255.QjJ_WIcKDc01X6GHwkp2mw9phSKAOcshNjTfJPZmlks@z> The patches [1] and [2] are both related to Memory Regions sharing and their applying order matters, this series just combines ones. The multiport Infiniband device support was introduced [3]. All active ports, belonging to the same Infiniband device use the single shared Infiniband context of that device and share the resources: - QPs are created within shared context - Verbs flows are also created with specifying port index - DV/DR resources - Protection Domain - Event Handlers This patchset adds support for Memory Regions sharing between ports, created on the base of multiport Infiniband device. The datapath of mlx5 uses the layered cache subsystem for allocating/releasing Memory Regions, only the lowest layer L3 is subject to share due to performance issues. [1] http://patches.dpdk.org/patch/53040/ [2] http://patches.dpdk.org/patch/53041/ [3] http://patches.dpdk.org/cover/51800/ Signed-off-by: Viacheslav Ovsiienko --- v3: - combine two patches in pathset - commit messages spellcheck v2: - intendation issues - comments cleanup v1: http://patches.dpdk.org/patch/52723/ Viacheslav Ovsiienko (2): net/mlx5: share Memory Regions for multiport device net/mlx5: update memory event callback for shared context drivers/net/mlx5/mlx5.c | 42 +++++--- drivers/net/mlx5/mlx5.h | 21 ++-- drivers/net/mlx5/mlx5_mr.c | 245 ++++++++++++++++++++++---------------------- drivers/net/mlx5/mlx5_mr.h | 5 +- drivers/net/mlx5/mlx5_txq.c | 2 +- 5 files changed, 162 insertions(+), 153 deletions(-) -- 1.8.3.1