mbox series

[v2,0/2] control rules with identical pattern behavior

Message ID 20210706081228.32672-1-jiaweiw@nvidia.com (mailing list archive)
Headers
Series control rules with identical pattern behavior |

Message

Jiawei Wang July 6, 2021, 8:12 a.m. UTC
  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(-)
  

Comments

Raslan Darawsheh July 7, 2021, 4:55 p.m. UTC | #1
Hi,

> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw@nvidia.com>
> Sent: Tuesday, July 6, 2021 11:12 AM
> To: Matan Azrad <matan@nvidia.com>; Ori Kam <orika@nvidia.com>; Slava
> Ovsiienko <viacheslavo@nvidia.com>; NBU-Contact-Thomas Monjalon
> <thomas@monjalon.net>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>
> Subject: [PATCH v2 0/2] control rules with identical pattern behavior
> 
> 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

Series applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh