net/softnic: fix header size calculation
authorDekel Peled <dekelp@nvidia.com>
Mon, 16 Nov 2020 07:55:18 +0000 (15:55 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 16:07:32 +0000 (17:07 +0100)
commit1ce051a4cc636698359b31008674754690c15e1c
tree9e8ce30bc85b5891cfee0dcc30b39ad3d649a51a
parent388dd1c9a6d4f9c3c4b788fa05049220e289345b
net/softnic: fix header size calculation

The rte_flow_item_eth and rte_flow_item_vlan items were updated in [1].
The rte_flow_item_ipv6 item was updated in [2].
The structs now contain additional metadata following the header data.
The size to use for match should be the header data size only, and
not the size of the whole struct.

This patch replaces the rte_flow_item_* with the corresponding rte_*_hdr.

Fixes: 09315fc83861 ("ethdev: add VLAN attributes to ethernet and VLAN items")
Fixes: ad976bd40d28 ("ethdev: add extensions attributes to IPv6 item")

Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
drivers/net/softnic/rte_eth_softnic_flow.c