net/mlx5: fix VXLAN VNI matching on ConnectX-5
authorRongwei Liu <rongweil@nvidia.com>
Mon, 2 Aug 2021 12:20:48 +0000 (15:20 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 3 Aug 2021 12:43:28 +0000 (14:43 +0200)
commita1fd0c827b0c88d969dd9673dc55cae3a8745ce2
tree21184d6eeb8eaf8cbe676fda6288cbc3e3e38100
parentce4062cb10b3ce20086bbffa1af7bd3c08acfb9e
net/mlx5: fix VXLAN VNI matching on ConnectX-5

In the recent update, the misc5 matcher was introduced to
match VxLAN header extra fields. However, ConnectX-5
doesn't support misc5 for the UDP ports different from
VXLAN's standard one (4789).

Need to fall back to the previous approach and use legacy
misc matcher if non-standard UDP port is recognized
in VxLAN flow.

Fixes: 630a587bfb37 ("net/mlx5: support matching on VXLAN reserved field")
Cc: stable@dpdk.org
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/nics/mlx5.rst
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c