[dpdk-dev] [PATCH v3 0/2] net/mlx5: share Memory Regions for multiport devices

Viacheslav Ovsiienko viacheslavo at mellanox.com
Sat Apr 27 06:32:55 CEST 2019


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 at 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(-)

-- 
1.8.3.1



More information about the dev mailing list