From: Jiawei Wang <jiaweiw@nvidia.com>
To: <matan@nvidia.com>, <orika@nvidia.com>, <viacheslavo@nvidia.com>,
<thomas@monjalon.net>
Cc: <dev@dpdk.org>, <rasland@nvidia.com>
Subject: [dpdk-dev] [PATCH v2 0/2] control rules with identical pattern behavior
Date: Tue, 6 Jul 2021 11:12:26 +0300 [thread overview]
Message-ID: <20210706081228.32672-1-jiaweiw@nvidia.com> (raw)
In-Reply-To: <20210528132524.32451-1-jiaweiw@nvidia.com>
In order to allow\disallow configuring rules with identical
patterns, the new device argument 'allow_duplicate_pattern'
is introduced.
If allow, these rules be inserted successfully and only the
first rule take affect.
If disallow, the first rule will be inserted and other rules
be rejected.
The default is to allow.
Set it to 0 if disallow, for example:
-a <PCI_BDF>,allow_duplicate_pattern=0
Jiawei Wang (2):
common/mlx5: add glue function for duplicate rule ability
net/mlx5: control rules with identical pattern behavior
doc/guides/nics/mlx5.rst | 14 ++++++++++++++
doc/guides/rel_notes/release_21_08.rst | 6 ++++++
drivers/common/mlx5/linux/meson.build | 2 ++
drivers/common/mlx5/linux/mlx5_glue.c | 12 ++++++++++++
drivers/common/mlx5/linux/mlx5_glue.h | 1 +
drivers/net/mlx5/linux/mlx5_os.c | 10 ++++++++++
drivers/net/mlx5/mlx5.c | 6 ++++++
drivers/net/mlx5/mlx5.h | 2 ++
drivers/net/mlx5/mlx5_flow_dv.c | 12 ++++++++----
9 files changed, 61 insertions(+), 4 deletions(-)
--
2.18.1
next prev parent reply other threads:[~2021-07-06 6:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 13:25 [dpdk-dev] [PATCH 1/2] common/mlx5: add glue function for duplicate rule ability Jiawei Wang
2021-05-28 13:25 ` [dpdk-dev] [PATCH 2/2] net/mlx5: control rules with identical pattern behavior Jiawei Wang
2021-07-06 8:12 ` Jiawei Wang [this message]
2021-07-06 8:12 ` [dpdk-dev] [PATCH v2 1/2] common/mlx5: add glue function for duplicate rule ability Jiawei Wang
2021-07-06 8:12 ` [dpdk-dev] [PATCH v2 2/2] net/mlx5: control rules with identical pattern behavior Jiawei Wang
2021-07-07 16:55 ` [dpdk-dev] [PATCH v2 0/2] " Raslan Darawsheh
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=20210706081228.32672-1-jiaweiw@nvidia.com \
--to=jiaweiw@nvidia.com \
--cc=dev@dpdk.org \
--cc=matan@nvidia.com \
--cc=orika@nvidia.com \
--cc=rasland@nvidia.com \
--cc=thomas@monjalon.net \
--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).