[21.11 PATCH v1] net/mlx5: fix matcher layout size calculation

Kevin Traynor ktraynor at redhat.com
Wed Nov 8 20:24:50 CET 2023


On 03/11/2023 03:07, Rongwei Liu wrote:
> Initially, the rdma-core library only supported misc0 to misc3 fields in
> matching resources, misc4 and misc5 fields were added to handle new
> features. The matcher layout, passing from DPDK to rdma-core, shouldn't
> exceed the size of the engaged library version capabilities.
> 
> For now, there is no way to know what is the maximum capability of
> rdma-core, and DPDK should limit the matcher layout to misc3 if
> possible (no matching on fields misc4 and misc5 are requested by the
> application).
> 
> The check if misc4 and misc5 features were requested was based on checking
> the values against zeroes. The matching mask should be checked instead.
> 
> Fixes: 630a587bfb37 ("net/mlx5: support matching on VXLAN reserved field")
> Cc:rongweil at nvidia.com
> Cc:stable at dpdk.org
> Signed-off-by: Rongwei Liu<rongweil at nvidia.com>
> Acked-by: Viacheslav Ovsiienko<viacheslavo at nvidia.com>
> ---
>   drivers/net/mlx5/mlx5_flow_dv.c | 18 +++++++++---------
>   1 file changed, 9 insertions(+), 9 deletions(-)

Thanks Rongwei. I added upstream commit hash, removed cc's and applied 
to branch 21.11 [0]. fyi - patches only for backport should go to 
stable at dpdk.org only. Just makes things a bit easier for email filters, 
patchwork, ci etc.

regards,
Kevin

[0] 
https://git.dpdk.org/dpdk-stable/commit/?h=21.11&id=6de3135f1e2ec52d25505ae1ea3ef9a242ddcd5d



More information about the stable mailing list