[dpdk-dev] [PATCH] net/mlx5: fix meter profile validation

Raslan Darawsheh rasland at nvidia.com
Thu Jul 29 22:04:50 CEST 2021


Hi,

> -----Original Message-----
> From: Bing Zhao <bingz at nvidia.com>
> Sent: Thursday, July 29, 2021 7:04 PM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>
> Cc: dev at dpdk.org; Ori Kam <orika at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; NBU-Contact-Thomas Monjalon
> <thomas at monjalon.net>
> Subject: [PATCH] net/mlx5: fix meter profile validation
> 
> After the support for yellow color and RFC2698 & RFC4115 were added, the
> profile validation adjustment was missed. With this fix, the validation is like
> below:
>   1. Legacy metering only supports RFC2697 without EBS.
>   2. ASO metering can support all three profiles.
>   3. For backward compatibility, none EBS with RFC2697 profile is
>      still supported and the checking is done in the meter
>      creation stage.
> 
> In the meanwhile, some checking which was done in the parameters
> calculation stage is moved in the validation in order to skip the useless
> checking.
> 
> Fixes: 33a7493c8df8 ("net/mlx5: support meter for trTCM profiles")
> 
> Signed-off-by: Bing Zhao <bingz at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> ---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list