[v3,0/2] net/mlx5: share Memory Regions for multiport devices
Message ID | 1556339577-18185-1-git-send-email-viacheslavo@mellanox.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org 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 <dev@dpdk.org>; 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 <viacheslavo@mellanox.com> 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 <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> |
Message
Slava Ovsiienko
April 27, 2019, 4:32 a.m. UTC
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 <viacheslavo@mellanox.com>
---
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(-)