From: Bruce Richardson <bruce.richardson@intel.com>
To: Radu Nicolau <radu.nicolau@intel.com>
Cc: Kevin Laatz <kevin.laatz@intel.com>, dev@dpdk.org
Subject: Re: [PATCH] dma/idxd: add allow/block list support
Date: Tue, 30 Nov 2021 10:29:55 +0000 [thread overview]
Message-ID: <YaX9I17kdgIzK5h0@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <20211130095439.784229-1-radu.nicolau@intel.com>
On Tue, Nov 30, 2021 at 09:54:39AM +0000, Radu Nicolau wrote:
> Add support for allow or block list for devices bound
> to the kernel driver.
> When used the allow or block list applies as an additional
> condition to the name prefix.
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Minor comments inline below.
> ---
> doc/guides/dmadevs/idxd.rst | 10 ++++++++++
> drivers/dma/idxd/idxd_bus.c | 30 ++++++++++++++++++++++++++----
> 2 files changed, 36 insertions(+), 4 deletions(-)
>
> diff --git a/doc/guides/dmadevs/idxd.rst b/doc/guides/dmadevs/idxd.rst
> index d4a210b854..6201d4db1d 100644
> --- a/doc/guides/dmadevs/idxd.rst
> +++ b/doc/guides/dmadevs/idxd.rst
> @@ -117,6 +117,16 @@ the value used as the DPDK ``--file-prefix`` parameter may be used as a workqueu
> name prefix, instead of ``dpdk_``, allowing each DPDK application instance to only
> use a subset of configured queues.
>
> +Additionally, the -a (allowlist) or -b (blocklist) commandline parameters are
> +also available to further restrict the device list that will be used.
> +If the -a option is used then any device that passes the ``dpdk_`` or
Should probably have a comma after "used", and then you can split the line
at that point, having the rest of the sentence on one line. I believe
longer lines are allowed for docs so long as we split them at punctuation
points.
> +``--file-prefix`` prefix condition must also be present in the allow list.
> +Similarly, when the block list is used any device that passes the prefix
> +condition must not be in the block list.
Similarly for this sentence, can put comma and break after "used".
> +For example, to only use ``wq0.3``, assuming the name prefix condition is met::
> +
> + $ dpdk-test -a wq0.3
> +
> Once probed successfully, irrespective of kernel driver, the device will appear as a ``dmadev``,
> that is a "DMA device type" inside DPDK, and can be accessed using APIs from the
> ``rte_dmadev`` library.
<snip>
next prev parent reply other threads:[~2021-11-30 10:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 9:54 Radu Nicolau
2021-11-30 10:29 ` Bruce Richardson [this message]
2021-12-02 12:50 ` [PATCH v2] " Radu Nicolau
2021-12-02 12:56 ` Kevin Laatz
2022-02-13 22:24 ` Thomas Monjalon
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=YaX9I17kdgIzK5h0@bricha3-MOBL.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=kevin.laatz@intel.com \
--cc=radu.nicolau@intel.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).