]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix integrity match on inner and outer headers
authorGregory Etelson <getelson@nvidia.com>
Tue, 26 Oct 2021 09:25:42 +0000 (12:25 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 28 Oct 2021 08:14:38 +0000 (10:14 +0200)
commit06741117ec168da52a52f64c33e01575e24ff606
tree9eeb599c9991b5fff19cd4bcb796ab508058eeca
parenta7ac7fae4919530dd2ad5aff8f82665018fd928a
net/mlx5: fix integrity match on inner and outer headers

MLX5 PMD can match on integrity bits for inner and outer headers in
a single flow.
That means a single flow rule can reference both inner and outer
integrity bits. That is implemented by adding 2 flow integrity items
to a rule - one item for outer integrity bits and other for
inner integrity bits.
Integrity item `level` parameter specifies what part is being
targeted.

Current PMD treated integrity items for outer and inner headers as
the same.
The patch separates PMD verifications for inner and outer integrity
items.

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