net/mlx5: fix flow items size calculation
authorRaslan Darawsheh <rasland@mellanox.com>
Thu, 16 Jul 2020 12:14:55 +0000 (15:14 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commitd13f9760866884d81563624fbf160f3054b70f19
tree2216104e5e813f2e8542e0dfb2ab8575c06882ce
parent385c19397ed55c903c29c85d882e7cfed7aa8104
net/mlx5: fix flow items size calculation

flow_dv_get_item_len returns the actual header size of
an rte_flow item.

Changing any of the structs for rte_flow items by adding
or removing some extra fields will break this function.

This fixes the behavior by returning the actual header size
of each item.

Fixes: 34d41b7aa3bf ("net/mlx5: add VXLAN encap action to Direct Verbs")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c