net/iavf: fix ethernet header size in flow rule
authorXiaoyu Min <jackmin@nvidia.com>
Mon, 16 Nov 2020 07:55:17 +0000 (15:55 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 Nov 2020 22:10:50 +0000 (23:10 +0100)
commit38d5ea90943b329f0898c89cb844980465657dfa
treedec754f8998c6a3c853e05b5742b72d80dcdb4c8
parent61bd270c4adc7dff1f9c8af1f2c72618860d4395
net/iavf: fix ethernet header size in flow rule

The rte_flow_item_vlan items are refined.
The structs do not exactly represent the packet bits captured on the
wire anymore so should only copy 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")

Signed-off-by: Xiaoyu Min <jackmin@nvidia.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/iavf/iavf_fdir.c