Skip to content

RFC net/mlx5: add external RxQ support

[email protected] dpdk-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3common/mlx5: glue device and PD importationdrivers/common/mlx5/linux/mlx5_glue.c drivers/common/mlx5/linux/mlx5_glue.h+25 -00 replies
2/3common/mlx5: add shared PD supportdrivers/common/mlx5/linux/mlx5_common_os.c drivers/common/mlx5/linux/mlx5_common_os.h drivers/common/mlx5/mlx5_common.c +3 more+196 -380 replies
3/3net/mlx5: add external Rx queuedrivers/net/mlx5/mlx5_rx.h drivers/net/mlx5/rte_pmd_mlx5.h+51 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] net/mlx5: add external RxQ support

From: Michael Baum <[email protected]>

These patches add support to external Rx queues.
External queue is a queue that is managed by a process external to DPDK, but uses DPDK process to generate its flow rules.

For the hardware to allow the DPDK process to set rules for it, the process needs to use the same PD of the external process. In addition, the indexes of the queues in hardware are represented by 32-bit compared to the rte_flow indexes represented by 16-bit, so the processes need to share some mapping between the indexes.

These patches allow the external process to provide devargs which enable importing its context and PD, instead of prepare new ones. In addition, an API is provided for mapping for the indexes of the queues.

Michael Baum (3):
common/mlx5: glue device and PD importation
common/mlx5: add shared PD support
net/mlx5: add external Rx queue

 drivers/common/mlx5/linux/mlx5_common_os.c   | 160 +++++++++++++++++--
 drivers/common/mlx5/linux/mlx5_common_os.h   |   6 -
 drivers/common/mlx5/linux/mlx5_glue.c        |  21 +++
 drivers/common/mlx5/linux/mlx5_glue.h        |   4 +
 drivers/common/mlx5/mlx5_common.c            |  32 ++--
 drivers/common/mlx5/mlx5_common.h            |   6 +-
 drivers/common/mlx5/windows/mlx5_common_os.c |  29 +++-
 drivers/common/mlx5/windows/mlx5_common_os.h |   1 -
 drivers/net/mlx5/mlx5_rx.h                   |   6 +
 drivers/net/mlx5/rte_pmd_mlx5.h              |  45 ++++++
 10 files changed, 272 insertions(+), 38 deletions(-)
Signature · 1 line
2.25.1