Raja Zidane 5ddb903824 net/mlx5: reject negative integrity item configuration
Negative integrity item refers to condition when the item value mask
is set, but value spec is cleared:
    ... integrity value mask l4_ok value spec 0 ...

ethdev library defines integrity bits `l3_ok` and `l4_ok` as accumulators
for all hardware L3 and L4 integrity verifications respectfully.
Hardware `l3_ok` and `l4_ok` integrity bits refer to L3 and L4
network headers only.
Integrity bits `l3_ok` and `l4_ok` are not compatible between
ethdev library and hardware.

PMD translations for ethdev `l3_ok` are:
 IPv4: `l3_ok` and `l3_csum_ok`
 IPv6: `l3_ok`
ethdev `l4_ok` is translated into PMD `l4_ok` and `l4_csum_ok` bits.

Positive IPv4 `l3_ok` flow item configuration is translated into
a single matcher that AND corresponding hardware bits.
Negative IPv4 `l3_ok` is translated into 2 hardware conditions where
each condition probes a single integrity bit:
  ethdev::l3_ok is 0 => MLX5::l3_ok is 0 OR MLX5:l3_csum_ok is 0
MLX5 hardware does not do OR condition in flow rule item.
Negative IPv4 `l3_ok` must be translated into 2 flow rules.
Similarly negative ethdev `l4_ok` condition is also translated into 2
hardware rules.

Current PMD roadmap does not allow implicit flow rule split.

Bugzilla ID: 948
Cc: stable@dpdk.org

Suggested-by: Raja Zidane <rzidane@nvidia.com>
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2022-07-05 20:04:02 +02:00
..
2022-06-08 10:38:39 +02:00
2022-07-04 14:47:03 +02:00
2022-05-10 15:43:09 +02:00
2022-06-15 10:19:18 +02:00
2022-01-20 16:24:09 +01:00
2022-06-08 14:38:44 +02:00
2022-06-24 14:28:14 +02:00
2022-07-05 03:55:32 +02:00
2022-07-05 03:55:32 +02:00
2022-07-05 03:55:32 +02:00
2022-02-27 21:26:06 +01:00
2022-03-03 12:30:51 +01:00
2022-02-15 14:53:41 +01:00
2022-06-23 11:06:41 +02:00
2022-02-12 12:07:48 +01:00
2022-06-23 16:02:02 +02:00
2022-06-08 14:39:13 +02:00
2022-01-12 15:36:32 +01:00