mbox series

[v1,0/2] Fix src port match in meter hierarchy

Message ID 20221108100401.878296-1-shunh@nvidia.com (mailing list archive)
Headers
Series Fix src port match in meter hierarchy |

Message

Shun Hao Nov. 8, 2022, 10:03 a.m. UTC
  In meter hierarchy, if policy flow contains modify_field or port_id
action, a src port matching will be added to determine the position of
meter in action list.

Currently the src port is static, using the port id policy belongs to.
This patch set enables creation of multiple policy flows using src port
from user flow dynamically to match different src port, so the meter
hierarchy can always be used by different src ports.

Shun Hao (2):
  net/mlx5: fix meter hierarchy with modify header
  net/mlx5: fix meter policy with port ID destination

 doc/guides/nics/mlx5.rst        |   3 +
 drivers/net/mlx5/mlx5.h         |   8 +-
 drivers/net/mlx5/mlx5_flow.c    |   2 +-
 drivers/net/mlx5/mlx5_flow_dv.c | 126 +++++++++++++++++---------------
 4 files changed, 77 insertions(+), 62 deletions(-)
  

Comments

Raslan Darawsheh Nov. 8, 2022, 5:35 p.m. UTC | #1
Hi,
> -----Original Message-----
> From: Shun Hao <shunh@nvidia.com>
> Sent: Tuesday, November 8, 2022 12:04 PM
> To: Slava Ovsiienko <viacheslavo@nvidia.com>; Matan Azrad
> <matan@nvidia.com>; Ori Kam <orika@nvidia.com>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>
> Subject: [PATCH v1 0/2] Fix src port match in meter hierarchy
> 
> In meter hierarchy, if policy flow contains modify_field or port_id action, a src
> port matching will be added to determine the position of meter in action list.
> 
> Currently the src port is static, using the port id policy belongs to.
> This patch set enables creation of multiple policy flows using src port from
> user flow dynamically to match different src port, so the meter hierarchy can
> always be used by different src ports.
> 
> Shun Hao (2):
>   net/mlx5: fix meter hierarchy with modify header
>   net/mlx5: fix meter policy with port ID destination
> 
>  doc/guides/nics/mlx5.rst        |   3 +
>  drivers/net/mlx5/mlx5.h         |   8 +-
>  drivers/net/mlx5/mlx5_flow.c    |   2 +-
>  drivers/net/mlx5/mlx5_flow_dv.c | 126 +++++++++++++++++---------------
>  4 files changed, 77 insertions(+), 62 deletions(-)
> 
> --
> 2.20.0

Series applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh