net/mlx5: fix matching for UDP tunnels with Verbs
authorRaslan Darawsheh <rasland@mellanox.com>
Wed, 6 May 2020 06:57:56 +0000 (09:57 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit8a2e026add3a6a7161a7273aedcf396f2a05f3f1
tree2d44af1dbd34c50839f8e6ab9224a1d5acbc180d
parent92818d839e8eb0ce479db826f00aa6d62384fc92
net/mlx5: fix matching for UDP tunnels with Verbs

When creating flow rule with zero specs it will cause
matching all UDP packets like following:
 eth / ipv4 / udp / vxlan / end
Such rule will match all udp packets.

This change the behavior to match the dv flow engine
which will automatically set the match on relative
outer UDP port if the user didn't specify any.

Fixes: 84c406e74524 ("net/mlx5: add flow translate function")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow_verbs.c