DPDK patches and discussions
 help / color / mirror / Atom feed
From: <michaelba@nvidia.com>
To: <dev@dpdk.org>
Cc: Matan Azrad <matan@nvidia.com>,
	Raslan Darawsheh <rasland@nvidia.com>,
	Viacheslav Ovsiienko <viacheslavo@nvidia.com>,
	Michael Baum <michaelba@nvidia.com>
Subject: [RFC 0/3] net/mlx5: add external RxQ support
Date: Sun, 2 Jan 2022 09:06:35 +0200	[thread overview]
Message-ID: <20220102070638.2211160-1-michaelba@nvidia.com> (raw)

From: Michael Baum <michaelba@nvidia.com>

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

-- 
2.25.1


             reply	other threads:[~2022-01-02  7:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-02  7:06 michaelba [this message]
2022-01-02  7:06 ` [RFC 1/3] common/mlx5: glue device and PD importation michaelba
2022-01-02  7:06 ` [RFC 2/3] common/mlx5: add shared PD support michaelba
2022-01-02  7:06 ` [RFC 3/3] net/mlx5: add external Rx queue michaelba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220102070638.2211160-1-michaelba@nvidia.com \
    --to=michaelba@nvidia.com \
    --cc=dev@dpdk.org \
    --cc=matan@nvidia.com \
    --cc=rasland@nvidia.com \
    --cc=viacheslavo@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).