net/mlx5: fix GENEVE and VXLAN-GPE flow item matching
authorAlexander Kozyrev <akozyrev@nvidia.com>
Wed, 24 Nov 2021 13:26:09 +0000 (15:26 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 24 Nov 2021 16:25:36 +0000 (17:25 +0100)
commit94421842de9a821778b95b928945ed8ea382302d
tree99bfad1f75e696db40a45cc03d0abdf34c3dc36a
parent9e61533df27fc4d76080da20a7e8f9c9e7e1b90f
net/mlx5: fix GENEVE and VXLAN-GPE flow item matching

GENEVE and VXLAN-GPE item matching is done similarly to GRE matching.
Users can skip the specification of the protocol type and expect that
this type is deducted from the inner header type automatically.
But the inner header type may not be specified in order to match all the
protocol types. In this case, PMD should not specify the protocol type.
Check if we have the inner header type before setting the protocol type.

Fixes: 690391dd0e8b ("net/mlx5: fix GENEVE protocol type translation")
Fixes: 861fa3796f75 ("net/mlx5: fix VXLAN-GPE next protocol translation")
Cc: stable@dpdk.org
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c