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:rongw...@nvidia.com
Cc:sta...@dpdk.org
Signed-off-by: Rongwei Liu<rongw...@nvidia.com>
Acked-by: Viacheslav Ovsiienko<viachesl...@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 sta...@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

Reply via email to