]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix integrity item validation and translation
authorGregory Etelson <getelson@nvidia.com>
Tue, 26 Oct 2021 09:25:43 +0000 (12:25 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 28 Oct 2021 08:14:39 +0000 (10:14 +0200)
commit23b0a8b298b1c95d5be61c7c2b79a8a2beebb683
tree80ce6d37dec099eefd065d3a339255699ffa8121
parent06741117ec168da52a52f64c33e01575e24ff606
net/mlx5: fix integrity item validation and translation

Integrity item validation and translation must verify that integrity
item bits match L3 and L4 items in flow rule pattern.
For cases when integrity item was positioned before L3 header, such
verification must be split into two stages.
The first stage detects integrity flow item and makes initializations
for the second stage.
The second stage is activated after PMD completes processing of all
flow items in rule pattern. PMD accumulates information about flow
items in flow pattern. When all pattern flow items were processed,
PMD can apply that data to complete integrity item validation
and translation.

Fixes: 79f8952783d0 ("net/mlx5: support integrity flow item")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c