net/mlx5: add GENEVE TLV option flow validation
authorShiri Kuzin <shirik@nvidia.com>
Sun, 17 Jan 2021 10:21:21 +0000 (12:21 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:16 +0000 (03:30 +0100)
commitf7239fce69c5e00e5765f06335c3051d8cedead2
tree7aec6124c336e323b27c76c49995682144726d66
parentf15f0c3806d0314cdce64bdeaa53b1c04325dfcb
net/mlx5: add GENEVE TLV option flow validation

This patch adds validation routine for the GENEVE
header TLV option.

The GENEVE TLV option match must include all fields
with full masks due to NIC does not support masking
on option class, type and length.

The option data length must be non zero and provided
data pattern should be zero neither due to hardware
limitations.

Signed-off-by: Shiri Kuzin <shirik@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c