net/mlx5: reject inner ethernet matching in GTP
authorLior Margalit <lmargalit@nvidia.com>
Tue, 20 Jul 2021 15:17:18 +0000 (18:17 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 22 Jul 2021 15:13:09 +0000 (17:13 +0200)
commit4e5ba38d56e3a037271547c90fbfc25c81938a4f
tree576cfd4a848ae1cc693e7055266bc122133c02d9
parent3e455a97dcb23b6e3684aa48a0302cf0429f4286
net/mlx5: reject inner ethernet matching in GTP

The user is able to create a flow rule pattern with ETH after GTP
although it is not supported by the flex-parser configuration.

Failed the rule validation in such case with proper error message.

Fixes: 23c1d42c7138 ("net/mlx5: split flow validation to dedicated function")
Cc: stable@dpdk.org
Signed-off-by: Lior Margalit <lmargalit@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c