net/mlx5: fix encap/decap limit for hairpin flow split
authorXiaoyu Min <jackmin@nvidia.com>
Mon, 16 Nov 2020 07:55:14 +0000 (15:55 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 16:07:27 +0000 (17:07 +0100)
commit388dd1c9a6d4f9c3c4b788fa05049220e289345b
tree057cae294d56fd1255c4da7f822e73b28e55e8ef
parent0d23f95d70910cca2204bbf78ecc3c50f1aa5a7a
net/mlx5: fix encap/decap limit for hairpin flow split

The rte_flow_item_eth and rte_flow_item_vlan items are refined.
The structs do not exactly represent the packet bits captured on the
wire anymore.
Should use real header instead of the whole struct.

Replace the rte_flow_item_* with the existing corresponding rte_*_hdr.

Fixes: 09315fc83861 ("ethdev: add VLAN attributes to ethernet and VLAN items")
Fixes: f9210259cac7 ("net/mlx5: fix raw encap/decap limit")

Signed-off-by: Xiaoyu Min <jackmin@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c